-
Notifications
You must be signed in to change notification settings - Fork 69
need help creating daylight sensor #191
Comments
Assuming you add this to "binary_sensor.py", you don't have to overload "unique_id". Problem is probably that you don't set "state" in your "parse_phd". |
Ok thanks, missed that indeed, will add. Yes using multiple hubs must be taken care off , (I have 2...) what would be your suggestion to do so? Also, I think I need to add a catch for None. |
We need to get some kind of bridge id. This would need to be passed down to |
update:
must I use hue_state (maybe for use elsewhere in the config) or would daylight also do for the state calculation ? |
I don't think you could get a "Daylight" sensor without actual daylight info, so the if: else: is unnecessary, imo |
yep: added some more changes:
changed tholdoffset to threshold_offset by request @robmarkcole and took sunrise and sunset along, as well as last_updated...
will change in PR later today! left to do still: add prefix |
separate post: adding this:
gives a friendly name to the binary_sensor, but doesn't change the device_id (entity_id) in to thanks for the assistance! |
I suggest you create the PR, then we can go from that and add the remaining open points |
HI,
trying to add the one missing sensor, for Daylight, I seek help please..
this is what I have sofar:
and I think we need this:
not sure though if we need, and how to create the unique Hue id
since the PHD sensor is not the exact same format.
this might be needed in:
I get this error:
while the Hue Api returns:
binary_sensor daylight should have state = 'on' when daylight = 'true'.... it now is 'false' so binary should be off.
why does this error out with said error?
please let me ask for assistance, @koying @robmarkcole @yottatsa
thanks!
The text was updated successfully, but these errors were encountered: