jeroenterheerdt / ring-hassio

A Home Assistant add-on for live streaming from Ring devices.
MIT License
131 stars 93 forks source link

Create sensor to understand when the addon is ready #67

Open gigio68 opened 2 years ago

gigio68 commented 2 years ago

I have managed to create a switch in the configuration as suggested under "Battery Conservation" section of the github README page. I am now trying to record a stream by enabling the addon after motion is detected by the official Ring addon (via binary_sensor_front_motion). If I create a single automation with following actions: <1> switch ring-hassio addon ON, <2>record mp4 file from the livestream, <3>switch ring-hassio OFF --> the automation does not seem to work and I never get <2> to record the stream. (it seems the ring-hassio addon does not get enabled by <1>) If I run three separate automations <1>, followed by <2>, then <3>, I get my recording stored correctly, and with automation <3> the livestream gets correctly turned off, so that I can catch motions with the official Ring App. What am I doing wrong? Do I need to add any waits in the single automation?

I attempted to create the addon sensor with "platform:rest" in the configuration, after grabbing the [Long_Lived_Access_Token] from the (https://hassio.local:port/profile) page, as described in the README, but I cannot see any sensor after rebooting HA. Having a sensor would help debugging the single automation.