Ring Door Bell + Philips Hue Lights (also Nest protect once google manages to allow integ)

Hi All

Im new to this forum (however im not new to home automation, especially being an IT Consultant)

However, i am running into a couple of issues. Just to give you a little bit of back ground, we are a large family, however my partner and 2 of our children are unfortunately hard of hearing and require hearing aids during the day etc.

Because of this i am trying to set up some automation to help them, but im struggling with a couple of things. I will list what i am trying to achieve first, and then where i have got up to.

Ring Door Bell -

When someone presses the doorbell - i would like a group of Philips Hue bulbs to flash blue for around 15 seconds. (This bit is easy, its the next bit im struggling with)
Once the 15 seconds are over, if the light was already off, i would like it to be left off. If the light is turned on, i want it to stay on, but return to the colour it was either on, or as a compromise, return back to White.

I have tried doing this via scenes etc already, but its either leaving the light on, in the colour blue, or turning the light off after the scene has run. (I am looking into the scripting to see if this is even possible.

Nest Protect -

Now i know this isnt available yet, however i am planning this in now to try and figure it out, if i can fix the above, i know ill be able to get this to work. The idea is, is the smoke alarm goes off, it flashes Red, and carbon monoxide, it should be yellow.

If anyone could help at all, id be extremely grateful, it may be a script, or it might not even be possible, but it would be great if i could even get 90% there.

Many thanks

Rob

List item

Ok, as a quick update i have managed to do the following.

Ring Door Bell button is pressed, this then sets off 3 automations.

Step 1 - Turns the light on, turns to blue, and delays for 1 second.
Step 2 - This then flashes the lights for 15 seconds
Step 3 - This then turns the light back to White and dims to 1%

Is the last stage i am now struggling with, what i would like is the light to change back to white, and if it was turned on at the begining, to stay on, if it was turned off, id like the light to turn off.

Dont suppose anyone could help with the last bit :slight_smile:

Automation code below

Step 1 -

alias: Turn Kitchen Light when door bell is pressed - Step 1
description: ''
trigger:
  - platform: state
    entity_id: binary_sensor.robs_front_door_ding
    to: 'on'
condition:
  - condition: time
    after: '07:30'
    before: '23:00'
action:
  - data:
      entity_id: light.hue_color_lamp_1
      color_name: blue
    service: light.turn_on
mode: single

Step 2 -

alias: Flash Kitchen Light when door bell is pressed - Step 2
description: ''
trigger:
  - platform: state
    entity_id: binary_sensor.robs_front_door_ding
    to: 'on'
condition:
  - condition: time
    after: '07:30'
    before: '23:00'
action:
  - delay: '00:00:01'
  - data:
      entity_id: light.hue_color_lamp_1
      flash: long
      color_name: blue
    service: light.turn_on
mode: single

Step 3 -

alias: Turn Lights to White after ring doorbell press - Step 3
trigger:
  - platform: state
    entity_id: binary_sensor.robs_front_door_ding
    to: 'on'
condition:
action:
  - delay: '00:00:18'
  - service: light.turn_on
    entity_id: light.hue_color_lamp_1
    data:
      brightness: 1
      rgb_color:
        - 255
        - 255
        - 255
mode: single

How do the Nest Protect smoke alarms work? Mine appear to be offline all day, apart from a few seconds during the night when they send all my personal data to Google. I think they communicate with one another via Bluetooth. I’ve tried several times to get them to turn lights on when smoke is detected using IFTTT, but I’ve had trouble testing them - it looks as if the manual test facility doesn’t count as a genuine alarm as far as triggering IFTTT applets goes.

This isn’t available at the minute (it used to be with the nest account, but since the migration to google its messed it up a little)

However i am seeing bits in the dev code, and some users have reported them showing up in google home, but until they show up on mine, i wont be able to figure it out.

In theory, it should be a trigger, just like any other device hopefully.

Ive also been trying this with Node-red - and i cant seem to get what i want :frowning:

I have also been looking at python scripts, to save the state, and restore however, i just cant figure out how to put it all together.

(I believe someone on this forum created this script ive been trying to use - https://github.com/pnbruckner/homeassistant-config/blob/c65f9051ac657477fdec89360dd7ce29a126e71e/docs/light_store.md)

Any help greatly appreciated.