jcallaghan / home-assistant-config

My Home Assistant configuration & documentation.
https://www.jcallaghan.com/
MIT License
173 stars 8 forks source link

Ring Floodlight integration with external doors šŸšŖšŸš¦šŸ’” #235

Open jcallaghan opened 3 years ago

jcallaghan commented 3 years ago

When external doors are opened and the light level is below a certain threshold turn on the appropriate Ring Floodlight light. Use a helper input_number to maintain the threshold so this can be easily changed.

I will need to consider building in a condition so the garden lights (back door and patio) don't come on if the door is opened for an extended period. This could also fix another issue where the floodlights come on when having a BBQ and destroy the mood lighting.

This could be a simple "Floodlights enabled" input_boolean helper that can be toggled via an Aqara button or something similar but to achieve this I would then also need to disable motion enabled lights feature in the Ring app and recreate this with my own automation including the light group feature.

Areas

Conditions

jcallaghan commented 3 years ago

HomeAssistant input_number integration documentation - https://www.home-assistant.io/integrations/input_number/

Home Assistant
Input Number
Instructions on how to integrate the Input Number integration into Home Assistant.
jcallaghan commented 3 years ago

HomeAssistant ring integration documentation - https://www.home-assistant.io/integrations/ring

Home Assistant
Ring
Instructions on how to integrate your Ring.com devices within Home Assistant.
jcallaghan commented 3 years ago

HomeAssistant input_boolean integration documentation - https://www.home-assistant.io/integrations/input_boolean/

Home Assistant
Input Boolean
Instructions on how to integrate the Input Boolean integration into Home Assistant.
jcallaghan commented 3 years ago

Right now I have this working for the front door and back door without any special conditions in place just yet.

To avoid the light going off too early I decided to trigger the automation based on any state change (open or closed) from the door contact. I then use a template to decide whether to call the light.turn_on or light.turn_off service. This avoids me having to use multiple actions such as light.turn_on, delay, light.turn_off which would have resulted in the light turning off if the door was still open after the delay period. There are times when the door might be open for long periods such as unloading.