Hello guys, I think we have the first beta version for the Ring sensor.
Please note that I’m having some difficulties to get a more responsive notification for live motion. What happens is that on Ring, when the motion is detected the notification is published. Since we are pulling the data asynchronously the notification will be only received the if the request happens at the same time or if the message is still available.
On my tests, I got 3 out 10 attempts where sensor notified me. To address it, we will need to keep a socket open all the times and I’ll have to check with the others developers what is the best way to do it in HA.
Note also that for now, the motion_sensor is not a binary sensor, but a regular sensor which returns True/False too. If we decide, we can port it to binary_sensor as well.
Having said this you can download the beta sensor at https://raw.githubusercontent.com/tchellomello/home-assistant/ring/homeassistant/components/sensor/ring.py
Then all you have to do is on your HA root configuration directory, in my case: /home/homeassistant/.homeassistant
$ cd /home/homeassistant/.homeassistant
$ mkdir -p custom_components/sensor
$ wget https://raw.githubusercontent.com/tchellomello/home-assistant/ring/homeassistant/components/sensor/ring.py \
-O custom_components/sensor/ring.py
Then entry the configuration under your sensors category:
#configuration.yaml
sensor:
- platform: ring
username: user@domain
password: secret
monitored_conditions:
- battery
- last_activity
- motion
- volume
Test the configuration by running:
$ hass --script check_config
The ring_doorbell
[1] python module should be downloaded and installed by HA at deps
directory as the other regular services.
Restart your HA service and please share your opinion about it. Any suggestions or bug reports are welcome.
I’m looking forward to hearing from you about it.
Thank you!
mmello
[1] - https://pypi.python.org/pypi/ring-doorbell