-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
ZHA: Hue Motion sensors report temp/luminosity but not motion #19200
Comments
Can you remove and rejoin one of these and add the simple descriptor log entry here for the device so I can see its signature? |
Where would the log entry appear? Is that in home-assistant.log? |
|
Thanks... this needs a code change I believe. Occupancy clusters need to be mapped to entities for this because this device implements the Occupancy cluster and not On/Off or IAS Zone. I have this working locally and I will get a PR open to support Occupancy devices as soon as the others that I have open are accepted / merged. Stay tuned! |
Thanks! As a data point, disconnecting and rejoining it did not cause it to start working again, still stuck on always triggered. I am happy to test out a patch if you have one, to see it with the real device. |
I figured out why it looked like it worked but actually wasn't working. The assumed state at startup is clear, which then goes to triggered as soon as the first update happens, so it actually never worked, I was just rebooting it a lot when I first set it up (but the temp+luminosity still did work fine). So yes, your explanation makes sense @dmulcahey. |
Awesome. I’ll let you know when you I have the PR opened |
wanna try the changes from this commit: dmulcahey@e3b99d9 You'll have to add a line here too:
I should hopefully have time tonight to get this and a few other PR's open |
I'm now seeing two binary_sensors, one for motion and one for occupancy. Is that expected? |
Maybe an unintended consequence... I’ll peek in a bit. Do either work?? |
They both agree with the Z-Wave sensors that there is no motion in the house, so that is an improvement. Unfortunately I do not currently have a way to induce motion. |
did you have a chance to check on this when you got home? |
I'm afraid that will be on Monday. I will let you know as soon as I can though. |
No problem at all!!
… On Dec 15, 2018, at 12:56 PM, irl-erg ***@***.***> wrote:
I'm afraid that will be on Monday. I will let you know as soon as I can though.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#19200 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABRhh96nt8aVXs2YclVzLlz9rlX_6Pziks5u5TfkgaJpZM4ZOB5R>.
|
Just using the patch caused the new occupancy sensors to show up. When I got home, it looks like the motion sensor (the old one) triggered and then never cleared. Removing and re-adding the device still gives me two sensors (1x motion and 1x occupancy for each) but now the occupancy sensor does correctly report occupancy! Temperature and luminosity also continue to work. While it's a little annoying to have the extra dummy binary_sensor in there it is very nice to have a useful motion sensor. |
I can fix the other one too. Will take a device handler to do it. Had to do the same thing for the Aqara body sensor. Stay tuned |
Awesome! Let me know if you need any more log output. |
@irl can I have the exact make / model for this? I am going to try to get one of these to make sure I get it set up correctly. |
Phillips Hue Motion Sensor |
Can you try this against current dev and let me know if motion triggers and clears now? |
Will look shortly. |
@dmulcahey Which commit? |
Thanks, looking now. |
@irl I am curious to see if that sensor implements the "on with timed off command" |
So this is the motion as opposed to the presence? Edit: taking a while because of pyozw upgrades building. |
Just looked at the sig posted above... should have looked before posting :S I don't think this is going to help at all. edit that said, when is the last time you tested this? We may have actually fixed this w/ the rewrite in late December / early January. If you don't mind... remove one and rejoin it against dev or .92.1. What version of HA are you on?? |
I was on .92.1 now upgraded to the HEAD of dev. I'm removing and rejoining one of the sensors just now. |
cool... there are a few attrs I want to try reading too if they don't just work. |
First thing to note is that if you join the device without resetting it first (holding down the setup button until LED goes out) then it joins to the network without any clusters discovered which isn't great. The "occupancy" sensor works nicely. It clears after seconds of non-activity, which is exactly what I want for my use case (I do timing in my automations). The "motion" sensor is always clear. Edit: temp and luminance are also reading out ok |
@irl that's good. can I have a screenshot of the device in the ZHA config panel? |
Screenshots are hard. |
Ah, I see what's happening here... you're getting a remote entity from this I think: EDIT @Adminiuga maybe it is time to seriously consider removing the binary sensors for remotes? most don't work anyway and events provide all of the functionality. Thoughts? |
@dmulcahey Do you mean that there should just not be a "motion" sensor there at all? I don't know the protocol that well, so not sure what a remote entity is. |
@irl yes |
Just wanted to watch this one and also say thanks for getting the Occupancy Sensor to work. I hope there will be a way to hide the non-functional motion sensor soon. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The hue sensors still show two binary_sensors for me, not a big deal but can be confusing at first. Is there any chance this will still be addressed? |
I think the "Motion-activated Light" blueprint uses the motion sensor instead of the occupancy sensor. I could not get that blueprint to work, but when I wrote my own automation that basically did the same thing, only using the occupancy sensor, it worked. Is there a point for HA to expose the motion sensor if it doesn't work? |
In blueprint, switch to yaml and enter the entity id of the occupancy sensor. Or just enter the entity id of the occupancy sensor in ui, instead of picking up from the drop down. |
I did not know it was possible to use a value not listed in the drop down or otherwise not allowed by the blueprint. The blueprint says:
I guess the occupancy sensor is not part of the |
Home Assistant release with the issue:
0.83.3
Operating environment (Hass.io/Docker/Windows/etc.):
Debian 9.
Component/platform:
https://www.home-assistant.io/components/zha/
Description of problem:
I am using an Elelabs stick with the ZHA component. I have joined two Phillips Hue Motion Sensors to the network successfully. They happily report luminosity and temperature at regular intervals. The motion is stuck on always detected. These did work when I first joined them, but have been stuck since the first restart of Home Assistant.
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information:
The text was updated successfully, but these errors were encountered: