Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beginner Issue ? #15

Closed
ianfretwell opened this issue Jun 13, 2021 · 10 comments
Closed

Beginner Issue ? #15

ianfretwell opened this issue Jun 13, 2021 · 10 comments

Comments

@ianfretwell
Copy link

Having added the integration and the small amount of YAML for LUT mode - with a subset of 5 lights....I simply can't find any sensors anywhere that appear to have anything to do with 'powercalc'.

What are they actually called once created please?

I've since dropped to just a single light (from the supported list) - and still nothing.

Thanks for any pointers!

@bramstroker
Copy link
Owner

Did you restart after installing the integration and adding the Yaml configuration?
Any errors in the logs? Could you share your yaml configuration?
Also enable debug logging please maybe this will shed some light (see the readme, last chapter)

@bramstroker
Copy link
Owner

bramstroker commented Jun 13, 2021

btw the sensors should have the same name as your light, but the word "power" behind it. It should be listed under integration "Power consumption". See screenshot of some examples in my installation.
Screenshot 2021-06-13 at 19 27 09

@ianfretwell
Copy link
Author

Hi,

Should have looked in the logs first!

I have this
image

from the readme I assumed that LUT was the default option and didn't need to be specified ? And I am using the official Hue integrations (although I do have two bridges if that could be relevant).

However - I've added in mode, manufacturer and model....and then I get this error in the log instead:-

Skipping sensor setup light.outside_1: ('No lookup file found for mode', 'hs')
18:46:47 – (ERROR) Power consumption (custom integration)

The actual YAML looks like this (it's within a sensor.yaml file that's called by the main configuration file)

  • platform: powercalc
    entity_id: light.outside_1
    mode: lut
    manufacturer: signify
    model: LCA001

I'm clearly making some basic mistake somewhere but I can't see it for looking!

Thanks.

@bramstroker
Copy link
Owner

Ah I see you are using LCA001 light. This light has just been added today by @CM000n, but only the LUT file for color temperatures have been made yet. There is no available for color mode (hs = hue/saturation). He is actively measuring hs mode now, so I expect this lookup file to be available soon.
So for now you have to comment out that light and keep an eye on the repo when it is available.
All other lights listed at supported lights in the readme are fully supported.
Your configuration looks fine now.
When the hs mode CSV for LCA001 has been commited than you should get a new sensor sensor.outside_1_power

Regarding auto selection of LUT mode and light model, not sure why this was not working in your case. Could be related to two bridges, but I have handled that in the code.
If you can enable debug logging and post the full log we should be able to figure out why this is not working.
However there is nothing wrong with supplying the manufacturer, model and mode yourself, this is most robust anyway.

@ianfretwell
Copy link
Author

Great many thanks for explaining that!

I'll see if I can sort out the debug log for you and put it here if I can.

@ianfretwell
Copy link
Author

Managing quite successfully to look like an idiot here I'm sure....

So I've added the debug stuff to config/yaml....and restarted....and where should I be seeing anything? There's nothing extra in the log other than the same one I put above. Does it not go into a separate file somewhere else ?

Thanks

@bramstroker
Copy link
Owner

No worries ;-) Don't know where your previous screenshot is from actually.

You can access all the logs at "Configuration" -> "Logs" (one of the last options). Than click on "Load full Home Assistant log"
There should be some DEBUG entries.

@ianfretwell
Copy link
Author

Right, my first response was after a restart with the original bulb still referenced. No DEBUG entries at all...

I've changed to a bulb that is on the supported list and I now have these entries (but they don't suggest anything particularly wrong to me)

2021-06-13 19:22:12 DEBUG (MainThread) [custom_components.powercalc.strategy_lut] Loading data file: /config/custom_components/powercalc/data/signify/LCT003/color_temp.csv.gz
2021-06-13 19:22:12 DEBUG (MainThread) [custom_components.powercalc.strategy_lut] Loading data file: /config/custom_components/powercalc/data/signify/LCT003/hs.csv.gz
2021-06-13 19:22:12 DEBUG (MainThread) [custom_components.powercalc.sensor] Setting up power sensor. entity_id:light.ian_s_desk sensor_name:Ian's Desk power strategy=LutStrategy manufacturer=signify model=LCT003 standby_usage=0

BUT - I do have a working sensor now! So it was kinda my own fault in the first place.

Thanks again.

@bramstroker
Copy link
Owner

Cool! glad you got it working have fun with it.

You are right, this logs indicate everything is setup succesfully.

@bramstroker
Copy link
Owner

New version 0.1.2 contains support for LCA001 hue saturation mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants