Repository navigation
Fix crash when float is passed instead of int - #13
Conversation
|
@tfriedel HA integration is ready. If you have time, it would be great if you could test it. Just take https://github.com/OleksandrBerchenko/home-assistant/blob/osramlightify/homeassistant/components/light/osramlightify.py and put it instead of the original file (on my env it's located in Thanks! |
|
@tfriedel P.S. See updated documentation at https://raw.githubusercontent.com/OleksandrBerchenko/home-assistant.io/next/source/_components/light.osramlightify.markdown |
|
cool, looking forward to trying it out! maybe this weekend or later the
week definitely.
btw regarding the motion sensors, there's people who use them in HA with
this workaround:
https://community.home-assistant.io/t/using-osram-lightify-motion-sensor-with-ha-triggered-by-change-in-rgb/55517
i.e. they require that they can read the rgb values in HA. not sure if we
can still do this when we classify it not as a light. will have to check
this.
Am Fr., 1. Feb. 2019 um 19:17 Uhr schrieb OleksandrBerchenko <
[email protected]>:
… @tfriedel <https://github.com/tfriedel> P.S. See updated documentation at
https://github.com/OleksandrBerchenko/home-assistant.io/blob/next/source/_components/light.osramlightify.markdown
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABu6xn0FcoSWKznK5LXr1b9KnEXY6ORJks5vJITPgaJpZM4ae0ow>
.
|
|
And my code essentially breaks their workaround :) Well, I need to think how to fix/workaround that. Expect a new PR/update to osramlightify.py later today. |
|
I have updated this PR, osramlightify.py and documentation (refresh the links above). What I changed:
My update still breaks the code from https://community.home-assistant.io/t/using-osram-lightify-motion-sensor-with-ha-triggered-by-change-in-rgb/55517, but now it can be easily fixed by changing Does it make sense? Thanks! |
|
Looking forward for your feedback about HA integration. Once everything is verified, could you please trigger a new release on Pypi? |
|
Oh, I see you have released it already. Thanks! |
|
I started testing yesterday. Basic functionality was working fine. I should still add this device type for the one Ikea lamp with id 128. |
|
Sounds strange. So, blue doesn't work anymore even from the Lightify app, correct? I don't have RGB bulbs right now (my only one stopped working several months ago) and was not able to do 100% accurate testing. Anyway, I don't think I changed anything related to Thanks! |
|
Yes, blue doesn't even work from the lightify app anymore. Maybe the
testing stressed it too much? I also am now getting started with
zigbee2mqtt, so I recently paired this lightstrip with it, which means
turning it off and on again quite often.
Your light also stopped working, which is another datapoint for these
lightify rgbw lamps being of bad quality. Will not buy them anymore I
guess.
Am Di., 5. Feb. 2019 um 12:48 Uhr schrieb OleksandrBerchenko <
[email protected]>:
… Sounds strange. So, blue doesn't work anymore even from the Lightify app,
correct?
I don't have RGB bulbs right now (my only one stopped working several
months ago) and was not able to do 100% accurate testing. Anyway, I don't
think I changed anything related to set_rgb/build_colour functionality.
Thanks!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABu6xv3FjSa0izc5gMRJQJ_xk7aSXHnRks5vKW99gaJpZM4ae0ow>
.
|
|
Possibly, I'm not sure how many on/off cycles is expected for their lifetime. By the way, you might have noticed that I slightly increased timeouts inside |
|
Tested code from master on light strips and RGBW A19 bulbs since last night - all of them Lightify - I don't see any issues with Blue |
|
Ok got a chance to test it a bit more. So far everything works pretty smooth! |
|
Hm... What is |
|
Or is it a "usual" RGB lamp? |
|
type_id is 10. it's an RGBW. this is it: |
|
I also wonder if we are dealing with the minimum and maximum temperature correctly. For example the ikea lamp (tunable white) has min. temp 2200. So unless I added a special configuration for it, it was wrong. |
|
Ok, I start recollecting how my own RGB lamp worked... That makes sense: you can't change temperature of white in RGB mode. Two questions:
Thanks! |
|
Regarding min/max temperature - need to think about it. |
|
@OleksandrBerchenko - Sylvania Lightify has their Outdoor Garden Spots that are ONLY RGB .. No tunable white - actually bought some and realized after opening that they didn't support the white temperature.. returned them |
|
1. no it does not update the colors
2. according to this list:
https://koenkk.github.io/zigbee2mqtt/information/supported_devices.html
there's at least this RGB lightstrip:
https://de.paulmann.com/innenleuchten/smart-home/bluetooth/smarthome-yourled-rgb-controller-max.-60w/50039?fs=1799497283
Am Di., 5. Feb. 2019 um 23:52 Uhr schrieb OleksandrBerchenko <
[email protected]>:
… Ok, I start recollecting how my own RGB lamp worked... That makes sense:
you can't change temperature of white in RGB mode.
Two questions:
1.
When you change the temperature and the lamp transforms from green
into orange, the icon remains green because HA (as well as lightify
library) still think it's in RGB mode and its color didn't change. But what
happens after the next update from the gateway (in 5 seconds or what your
scan_interval is)? Does it correctly update the colors to (255, 255,
255) and turn orange? In other words, does the next update from the gateway
correct the colors?
2.
Are you aware about any RGB lamps *without* tunable white
functionality?
Thanks!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABu6xhpFDWkYwJv0-UGq9U-5wAcHe1Ftks5vKgstgaJpZM4ae0ow>
.
|
|
Ok, so here we have 3 separate issues:
|
Thanks! |
CCT means it has color temperatur. Not sure what CLR means. However the ikea type id 128 doesn't fit this, which explains why the official lightify app can't control it's temperature. |
|
So, probably we can add it to the library (that would address my p. 1 above). What do you think? Thanks! |
|
I think we can safely add this device type 8, even though we have no
ability to test it.
Am Sa., 16. Feb. 2019 um 18:11 Uhr schrieb OleksandrBerchenko <
[email protected]>:
… @tfriedel <https://github.com/tfriedel> I have created a new PR for
RGB/RGBW stuff: #17 <#17>
. Let me know what you think.
P.S. By the way, that PHP library is not able to recognize temperature/RGB
states too. I really doubt that we could leverage onoff, but let me know
if you checked that.
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABu6xh_7W2hYV8RaEdpr-v2qZrYgZrINks5vODvCgaJpZM4ae0ow>
.
|
|
the onoff val is only 0 or 1 in the debug print. I don't know how the app
gets the state. I guess you could try to sniff the traffic, but it's
probably not worth the effort.
Am Sa., 16. Feb. 2019 um 23:38 Uhr schrieb Thomas Friedel <
[email protected]>:
… I think we can safely add this device type 8, even though we have no
ability to test it.
Am Sa., 16. Feb. 2019 um 18:11 Uhr schrieb OleksandrBerchenko <
***@***.***>:
> @tfriedel <https://github.com/tfriedel> I have created a new PR for
> RGB/RGBW stuff: #17 <#17>
> . Let me know what you think.
>
> P.S. By the way, that PHP library is not able to recognize
> temperature/RGB states too. I really doubt that we could leverage onoff,
> but let me know if you checked that.
>
> Thanks!
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#13 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ABu6xh_7W2hYV8RaEdpr-v2qZrYgZrINks5vODvCgaJpZM4ae0ow>
> .
>
|
|
Agree. Thanks! |
|
Ok, then we are probably done for now. Could you please create a new build on Pypi? |
|
done!
Am So., 17. Feb. 2019 um 08:23 Uhr schrieb OleksandrBerchenko <
[email protected]>:
… Ok, then we are probably done for now. Could you please create a new build
on Pypi? 1.0.7.1
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABu6xobT3IWtODNS7JClAAGpMww4oNbBks5vOQNhgaJpZM4ae0ow>
.
|
No description provided.