jcallaghan/home-assistant-config

Ring Floodlight integration with external doors ๐Ÿšช๐Ÿšฆ๐Ÿ’ก

Opened this issue ยท 4 comments

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.

  • Cooking and having the back door open
  • BBQ and people are in and out of the house
  • The patio doors open while the hot tub is being used

Areas

  • Front door
  • Back door
  • Patio

Conditions

  • Door open/closed
  • Light level below certain level
  • Motion activated floodlights i.e. not disruptive when garden is in-use

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

Home Assistant
Instructions on how to integrate the Input Number integration into Home Assistant.

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

Home Assistant
Instructions on how to integrate your Ring.com devices within Home Assistant.

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

Home Assistant
Instructions on how to integrate the Input Boolean integration into Home Assistant.

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.