Motion detection not working since upgrade
See original GitHub issueDescribe the bug I’ve upgrade from the configuration.yaml-integration to the fully HACS integration. But since the upgrade the binary sensors are no longer changing states on detection. I get a push from the Reolink app when motion is detected, but binary sensors are not changing state.
No particular errors can be seen in the logs
Some settings such as stream type are also missing in OPTIONS
The setup worked flawless in prior reolink_dev version when used in configuration.yaml
To Reproduce Upgraded to reolink_dev 0.9 through HACS Removed reolink_dev and binary_sensors from configuration.yaml
Logs from startup:
2020-12-18 13:42:32 INFO (MainThread) [homeassistant.setup] Setting up reolink_dev 2020-12-18 13:42:32 INFO (MainThread) [homeassistant.setup] Setup of domain reolink_dev took 0.0 seconds 2020-12-18 13:42:32 DEBUG (MainThread) [custom_components.reolink_dev.base] {'port': 80, 'host': '192.x.x.x’, 'username': ’user’, 'password': ’pass’, 'channel': 1} 2020-12-18 13:42:32 DEBUG (MainThread) [custom_components.reolink_dev.base] {} 2020-12-18 13:42:32 DEBUG (MainThread) [custom_components.reolink_dev.base] {'port': 80, 'host': '192.y.y.y’, 'username': ’user’, 'password': ’pass’, 'channel': 1} 2020-12-18 13:42:32 DEBUG (MainThread) [custom_components.reolink_dev.base] {} 2020-12-18 13:42:40 INFO (MainThread) [custom_components.reolink_dev.base] Host 192.x.x.x subscribed successfully to webhook https://192.x.x.x:8123/api/webhook/9db17eec865ef2f867b548d7693a36b166774ef54a29fa18331517e7d0a293dc! 2020-12-18 13:42:41 INFO (MainThread) [custom_components.reolink_dev.base] Host 192.y.y.y subscribed successfully to webhook https://192.y.y.y:8123/api/webhook/9122b2a5aad7009a862fa25d027af0750391881cd27ec194c803b79694ba62e6! 2020-12-18 13:42:41 DEBUG (MainThread) [custom_components.reolink_dev] Finished fetching reolink data in 0.439 seconds 2020-12-18 13:42:44 DEBUG (MainThread) [custom_components.reolink_dev] Finished fetching reolink data in 3.319 seconds 2020-12-18 13:42:44 INFO (MainThread) [homeassistant.components.camera] Setting up camera.reolink_dev 2020-12-18 13:42:44 INFO (MainThread) [homeassistant.components.switch] Setting up switch.reolink_dev 2020-12-18 13:42:44 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.reolink_dev 2020-12-18 13:42:44 INFO (MainThread) [homeassistant.components.camera] Setting up camera.reolink_dev 2020-12-18 13:42:44 INFO (MainThread) [homeassistant.components.switch] Setting up switch.reolink_dev 2020-12-18 13:42:44 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.reolink_dev 2020-12-18 13:43:44 DEBUG (MainThread) [custom_components.reolink_dev] Finished fetching reolink data in 0.306 seconds 2020-12-18 13:43:44 DEBUG (MainThread) [custom_components.reolink_dev] Finished fetching reolink data in 0.430 seconds 2020-12-18 13:44:44 DEBUG (MainThread) [custom_components.reolink_dev] Finished fetching reolink data in 0.269 seconds 2020-12-18 13:44:44 DEBUG (MainThread) [custom_components.reolink_dev] Finished fetching reolink data in 0.364 seconds 2020-12-18 13:45:44 DEBUG (MainThread) [custom_components.reolink_dev] Finished fetching reolink data in 0.250 seconds 2020-12-18 13:45:44 DEBUG (MainThread) [custom_components.reolink_dev] Finished fetching reolink data in 0.359 seconds 2020-12-18 13:46:44 DEBUG (MainThread) [custom_components.reolink_dev] Finished fetching reolink data in 0.237 seconds 2020-12-18 13:46:44 DEBUG (MainThread) [custom_components.reolink_dev] Finished fetching reolink data in 0.373 seconds
Expected behavior State change in binary sensors when motion is detected
Screenshots
Device info:
Options (with missing stream type):
Binary sensor:
Motiondetection log with no events, but should be:
I changed the state manually just to test (can be seen below)
Environment: Homeassistant 0.118.5 Reolink_dev 0.9 2 pcs RLC-410-5MP v3.0.0.136_20121100 (Also tried with a lower fw-version)
Additional context Any idea why sensors are not updating as they should?
Issue Analytics
- State:
- Created 3 years ago
- Comments:51 (32 by maintainers)
Update: Motion detection and binary sensors confirmed working as soon as SSL on HA was disabled.
I do think that many people are using SSL on their installations, so it might be an issue getting the reolink-integration working “out of the box” with SSL enabled.
When i have some spare time, i will setup nginx to make this work the way i want.
Thanks to all for help with troubleshooting 👍
Finally caught a motion related xml data
Hope this helps