Hue-sensors-HASS icon indicating copy to clipboard operation
Hue-sensors-HASS copied to clipboard

Sensors not reporting continuous movement

Open aegjoyce opened this issue 5 years ago • 32 comments

I’m having an issue with the motion sensors not tracking correctly. All was working fine with v0.8 on HA 0.88, then I decided to upgrade to HA 0.89. Following this I have started using the latest release of the CC (1.0.4), deleted all the old files and config.yaml entries, and put the new binary_sensor.py in custom_components/huecustom, then set up binary_sensor in config.yaml.

So far, so good - both my motion sensors are picked up by HA and all the correct data is retrieved. However the behaviour of the sensors in HA is now very odd. If I trigger a sensor, it changes from ‘off’ to ‘on’ - however, even if I’m still moving, it then immediately switches back to ‘off’ again. After a short reset time (about 10s or so) it will then respond to movement again - but again will immediately switch back to ‘off’ in spite of persistent movement.

No problems with the sensors themselves which are reporting state correctly to my Hue app.

Is this a known issue with v1.0.4? Any idea about workarounds? May have to downgrade to v0.8 again in the meantime as I have automations based on accurate and timely reporting of motion.

aegjoyce avatar Mar 09 '19 19:03 aegjoyce

I can confirm to have the same problem, please fix this, because I have many automations really on this.

warcanoid avatar Mar 10 '19 21:03 warcanoid

First of all, thanks for the amazing work! I can also confirm the same problem.

hvbc avatar Mar 18 '19 09:03 hvbc

I made an account just to comment here that I'm having this same problem! Hoping it gets fixed soon

eyeseesharp avatar Mar 20 '19 01:03 eyeseesharp

Just wanted to add - reverting to v0.8 fixed this problem for me. Hope this helps people in the meantime.

aegjoyce avatar Mar 20 '19 17:03 aegjoyce

@aegjoyce how???

warcanoid avatar Mar 20 '19 17:03 warcanoid

Remove your existing files and get the 0.8 ones from here: https://github.com/robmarkcole/Hue-sensors-HASS/releases If you’re on HA 0.89 or higher you’ll need to change your customer component file names and folder structure as per instructions on this thread: https://community.home-assistant.io/t/hue-motion-sensors-remotes-custom-component/27176/832

aegjoyce avatar Mar 20 '19 17:03 aegjoyce

Thanks for reporting this, will look into it next week

robmarkcole avatar Mar 20 '19 19:03 robmarkcole

@robmarkcole thank you! Do not want go back to 0.8

warcanoid avatar Mar 20 '19 19:03 warcanoid

Same issue here to

johansmitsnl avatar Mar 21 '19 17:03 johansmitsnl

I noticed that lights will not go on/off on first try. So major problem for automations

warcanoid avatar Mar 21 '19 21:03 warcanoid

Strange, I've not seen this behavior. My setup is working as rock-solid as always. I've gone through all HA versions (0.90.1 currently) and all CC versions (1.0.5 currently)

claytonjn avatar Mar 24 '19 05:03 claytonjn

@claytonjn lucky you, I have big problems

warcanoid avatar Mar 24 '19 06:03 warcanoid

Same problem here on HA 0.90.1.

gensyn avatar Mar 24 '19 11:03 gensyn

I am not sure whether this might help those with this problem. I believe it could be due to the hue motion sensor firmware.

Open Hue app, I am using iOS hue app, and check whether there is any firmware update on motion sensor. If there is update them and test it again.

My Philip Hue motion sensor model is SML001 The current latest firmware version I am using is 6.1.1.27575.

They are working fine for me.

Hope this might help.

tangrick avatar Mar 24 '19 16:03 tangrick

I am not sure whether this might help those with this problem. I believe it could be due to the hue motion sensor firmware.

Open Hue app, I am using iOS hue app, and check whether there is any firmware update on motion sensor. If there is update them and test it again.

My Philip Hue motion sensor model is SML001 The current latest firmware version I am using is 6.1.1.27575.

They are working fine for me.

Hope this might help.

I updated to your firmware version but I'm still having the same problem.

gensyn avatar Mar 25 '19 21:03 gensyn

I have automatic updates in Hue app. The sensor reports motion in Hue app always, but not always in HA! @robmarkcole please fix this!

warcanoid avatar Mar 25 '19 21:03 warcanoid

I am not sure whether this might help those with this problem. I believe it could be due to the hue motion sensor firmware. Open Hue app, I am using iOS hue app, and check whether there is any firmware update on motion sensor. If there is update them and test it again. My Philip Hue motion sensor model is SML001 The current latest firmware version I am using is 6.1.1.27575. They are working fine for me. Hope this might help.

I updated to your firmware version but I'm still having the same problem.

Not sure why only some have this problem. I did a visual comparison, by having iOS Hue App on iPhone and HA on iPad, I don't have any problem. Both reported the same motion detection. The moment I am in sight of the motion sensor, they both showed motion detected until I stopped moving or move out of sight.

Here are my devices and settings, maybe someone could figure out the reason for this problem

Hue Bridge SW: 19011813309 Motion Sensor SW: 6.1.1.27575. Motion Sensitivity: High

I don't use motion sensor in HA automation, since I mainly using them to control lights. I am using Hue App or iConnectHue App to do all motion sensor setting.

configuration.yaml

hue:
  bridges:
    - host: 10.0.0.102 #seconday
      filename: phue_sec.conf
      allow_unreachable: true
      allow_hue_groups: true
    - host: 10.0.0.103 # main
      filename: phue_main.conf
      allow_unreachable: true
      allow_hue_groups: true

binary_sensor:
  - platform: huesensor

sensor:
  - platform: huesensor

Here are the state attributes I see on HA, check whether you have the same attribute elements. binary_sensor.hallway_motion_sensor | off | light_level: 6758 battery: 100 last_updated: 2019-03-26,05:35:36 lx: 4.74 dark: true daylight: false temperature: 28.01 on: true reachable: true sensitivity: 2 threshold: 23694 friendly_name: Hallway motion Sensor device_class: motion

good luck to those having problem.

tangrick avatar Mar 26 '19 06:03 tangrick

@tangrick thanks for helping, have all same, only I don’t have filename: phue_main.conf in configuration.yaml.

warcanoid avatar Mar 26 '19 07:03 warcanoid

@tangrick thanks for helping, have all same, only I don’t have filename: phue_main.conf in configuration.yaml.

It's just contain user authentication to Hue. So I don't think that is the problem {"10.0.0.102": {"username": "uN.....kV"}}

Have you tried deleting huesensor folder in custom_components and re-do huesensor folder again and check to ensure that binary_sensor.py is version = "1.0.5"?

I wonder whether the threshold got anything to do with it. I would try to set motion sensor to max for both motion and light sensitive just to try it out.

And both hue bridge and motion sensor are the same version as mine?

I am asking because I believed, but can't be 100% sure as the motion sensor was configured in Hue app and no automation on HA, so I didn't pay too much attention to it, I think I my motion sensors on HA was exhibiting..something like...it would show "detected" and then almost 2 secs later show "clear" and then many secs..maybe 10secs later with lots of movement..it showed detected again.

But yesterday I opened Hue app, it showed all my motion sensor updating to the new version and then after that HA motion detection and Hue Motion Detection matches.

tangrick avatar Mar 26 '19 08:03 tangrick

Have all on max in Hue, also do nothing with lights. Have hue sensor 1.0.5 with custom updater.

warcanoid avatar Mar 27 '19 04:03 warcanoid

I have a possible solution. I did not used my sensors in the Hue app, so the sensor was not configured. Now I configured the sensor in the Hue app (setting a room and selecting "Do nothing") and everything is working as before. :-)

hvbc avatar Apr 01 '19 08:04 hvbc

Is there any update on this issue @robmarkcole ?

The above mentioned fix doesn't work, at least not for me.

nikolak avatar May 06 '19 13:05 nikolak

There is now official sensor support in the latest ha release.

See home-assistant/home-assistant#22598

The only missing part are the remotes.

johansmitsnl avatar May 06 '19 19:05 johansmitsnl

@Nikola-K I do agree that my solution doesn't work. I switched to the official support, but is is very very slow up to >5 sec. @robmarkcole if this issue is fixable it would be very much appreciated!

hvbc avatar May 09 '19 16:05 hvbc

Also worth linking to the updates interval issue in the official integration - https://github.com/home-assistant/home-assistant/issues/23502

Although the developer seems to be very reluctant to make it configurable, it can be manually adjusted - depending on the setup, how often you update, etc doing that is either more or less work.

Personally for me it was too much work to maintain that and it doesn't support switches so I moved to deCONZ to improve the integration and allow multiple different devices, and it works great. That solution of course however costs and requires additional hardware.

nikolak avatar May 09 '19 17:05 nikolak

I cant reproduce this issue

robmarkcole avatar May 10 '19 05:05 robmarkcole

Nor can I anymore!

I had been running 1.2 as was getting the expected behaviour from it, then deleted the CC altogether with the release of the official integration. Unhappy with the delay in sensor response, I've just reinstalled 1.4, which works perfectly.

Happy to close this issue

aegjoyce avatar May 17 '19 12:05 aegjoyce

...hang on.

Having just tested this, I've found that the problem is only occurring with ONE of my two Hue motion sensors. My upstairs one is fine; the downstairs one isn't. The problem is only with the custom component - comparing it simultaneously with the official component, the official one tracks constant motion, whilst the custom component doesn't. Both official and custom sensors work fine with the upstairs sensor.

Weird!

aegjoyce avatar May 17 '19 13:05 aegjoyce

FIXED IT!

Tried a few things like re-linking and renaming the sensor but still didn't work. Then - took the batteries out, gave it about a minute, then put them back in. Boom! All working as it should :)

aegjoyce avatar May 17 '19 13:05 aegjoyce

Nope. Stopped working again. God knows what's wrong with it.

aegjoyce avatar May 17 '19 13:05 aegjoyce