bramstroker / homeassistant-powercalc

Custom component to calculate estimated power consumption of lights and other appliances
MIT License
1.04k stars 266 forks source link

Lifx LED strip (zones) #1571

Closed crystal-way closed 1 year ago

crystal-way commented 1 year ago

Checklist

Is your feature request related to a problem? Please describe.

Hello. Thank you for your software. This is proposal to make it even better!! :)

I just installed your software and it asks for Lifx LED strip (Lightstrip) "sub profile", where i can choose between 1 and 10. The only thing i get in mind is that this is active "zones" or maybe meters? Anyways i'm stuck, because i bought 3 meters, and cut it at about 2,70m. And this strip now have 21 zone. So should i put 3 (as closest by length) or this "sub profile" is zone count?

Describe the solution you'd like

It would be nice to have more precise setting, and more understandable. Are you talking about zones or meters? :) As the max sub profile value is 10, i believe this is in meters. The you should name it "meters" not "sub profile".

Describe alternatives you've considered

As this item can by cut by length depending on the interior used. I see need to have zones, not meters. Please add possibility to choose by zones.

It is not allow/possible to cut this led strip in the middle of the zone. You can cut only between zones. And in the app it shows how many zones it uses. So probably the best way to make accurate setting is by number of zones in the led. Please see print screen from app. lifx_led_strip

Additional context

thank you!

bramstroker commented 1 year ago

@jamiedevivoo As you contributed the LUT files could you elaborate if these lengths are zones or meters? I have read the PR description but I'm not 100% confident.

I can't rename "sub profile" to meters or something else because this mechanism is used for other things than only length. For example for some lights we also provide multiple measurement profiles depending on infrared light on/off

When the lengths are indeed zones than 21 will be missing. To make support that new measurements needs to be taken. See https://homeassistant-powercalc.readthedocs.io/en/latest/contributing/measure.html for the procedure how to do that and contribute to the project.

I have quickly visualized the color_temp measurements of length_1 > length_5. length_4 is yellow and length_5 is purple Until length 5 the power increases quite linear (with 10 W steps), but on 5 zones it suddenly drops and stays like this on higher lengths. I have no way to verify this is correct behaviour, because I don't own LIFX Z myself

Screenshot 2023-03-16 at 18 45 07
crystal-way commented 1 year ago

Hello, Zone is logical unit containing 6 led's and it is 12.5cm length. 1 meter have 8 logical zones, 2 meters have 16 logical zones. This ledstrip can be cut only every 6 led's or every 12.5cm. There is no other way to cut it. As well there is no way to change color for lets say 3 or 2 leds. So 6 leds = logical unit, that user can adjust it colour.

If there would be no possibility to cut this ledstrip, then it would be good to have 10 "sub profiles" and each sub profile would represent 1 meter length of led strip. But as this ledstrip can be cut every 12.5cm, it would be much precise and correct to have max of 80 zones :)

I will of course contribute to your project, as i haven't found Lifx GU10 downlight, that i'm using :) So i will come with Lifx GU10 downlight (as i know this model is discontinued, but still widely spread and in use). Of course i can help with lifx ledstrip, but only with 21 zones :) if needed?

I still have somewhere those 3 zones that i've cut off, and not using them, because my kitchen 270 length, so 3 meters was to long. Maybe i could solder wires and connect it to another 1m./2m. length ledstrip. Then i could provide you data of 8+3=11 zones measurement, 16+3=19 zones measurement, and my installed 21 zones. Rest... probably must be calculated accordingly.

Lightstrip1 Lightstrip2 Lightstrip3

Lightstrip4
bramstroker commented 1 year ago

Thanks for the additional information. Is there a way to see the amount of zones in HA entity attributes? Than we can also implement a way to automatically select the correct sub profile. Btw this was the original PR https://github.com/bramstroker/homeassistant-powercalc/pull/566 for Lifx Z

Looking forward to your measurements for the GU10 downlight.

crystal-way commented 1 year ago

I can't find anything in the HA regarding zones of ledstrip. It only shows it in the original lifx application. i couldn't find original post, as there is no "led strip" in the name :)

p.s. Regarding measurements for Lifx GU10 downlight i'm stuck. It looks like i have Tapo P100 (not P110) so it's without energy meter. So i have to buy compatible power plug. By the way, maybe NOUS A1 or TP-link HS110 will fit? Or they are not accurate for small currents?

bramstroker commented 1 year ago

You can try the TP-Link HS110, I'm pretty sure there were more PR's submitted with that plug. The internal electronic circuit of all these smart plugs are quite comparable afaik.

It can help to connect multiple of the same light to be able to measure correctly when you get 0 readings on low currents, also see the readme.

bramstroker commented 1 year ago

@crystal-way did you make any progress on measuring these? Or do you need anything from me still. Can we close this issue?