#Newbie - Setting up door sensorr & H200 alarm (entry/exit/countdown/siren)

1 messages · Page 1 of 1 (latest)

quiet drift
#

Hello everyone. I've finally managed to setup Home Assistant, HACS, but I'm struggling with setting up Automations with my Tapo door sensors and H200 hub (unless disabled, I want an entry delay > 15 sec countdown > siren) and then similar for when a user is leaving home and activated the alarm (exit > 15 sec countdown > arm).

I would be very greatful if anyone can help. Thanks

fringe night
left jackal
#

Not exact the same but I use such an alarm for my washing machine. When the job is done, the wm turns off but sets a state "completed". My alarm stop is a Shelly 2 Mini Gen4. If I switch on the light in the washing‑room, the alarm ends – until then it repeats every 15 mins.

I started with a helper (Boolean, input_boolean.waschi_wasch_fertig_flag).

First automation reacts on the complete message of the wm and sets the helper to on:
````yaml`
alias: WaMa Flag ON
triggers:

  • trigger: state
    entity_id: event.waschi_wasch_benachrichtigung
    to: null
    conditions:
  • condition: state
    entity_id: event.waschi_wasch_benachrichtigung
    attribute: event_type
    state: washing_is_complete
    actions:
  • action: input_boolean.turn_on
    target:
    entity_id: input_boolean.waschi_wasch_fertig_flag
    mode: single

Second automation reacts on the Shelly and sets the helper to off:
````yaml`
alias: WaMa Flag OFF
triggers:
  - trigger: state
    entity_id: switch.shelly_licht
    to: "on"
actions:
  - action: input_boolean.turn_off
    target:
      entity_id: input_boolean.waschi_wasch_fertig_flag
mode: restart

---- End of part one ---

#

---- Start of part two ----

Third automation does the real alarming based on the helper state:
````yaml`
alias: WaMa Benachrichtigung
triggers:

  • trigger: state
    entity_id: input_boolean.waschi_wasch_fertig_flag
    to: "on"
    conditions:

  • condition: time
    weekday:

    • mon
    • tue
    • wed
    • thu
    • fri
    • sat
    • sun
      after: "07:00:00"
      before: "23:00:00"
      actions:
  • repeat:
    sequence:
    - action: tts.speak

        message: Waschi-Wasch ist fertig!
        language: de
        media_player_entity_id: media_player.unten
      target:
        entity_id: tts.google_ubersetzer_de_de_google_translate_de_de
    - delay: "00:15:00"
    

    until:
    - condition: state
    entity_id: input_boolean.waschi_wasch_fertig_flag
    state: "off"
    mode: single


My Google Home devices now notify every 15 mins that the wm needs attention.

BTW: This task was the reason I started with HA. I think that @exotic iris mentioned at the most recent release party that most people start using HA with such a task. Well, I'm proof of concept. .-)

ChrisDi
quiet drift
#

Hi Hilburn and ChrisDi. Thank you so much for your replies. @left jackal Thank you for the scripts. I'm really sorry, buddy but I'm totally new to HA and it's immense capabilities and being very honest, for the moment, I'm out of my depth and still learning. That's not to say I can't do it...just that I need a step-by-step guide on where to go and what to do, but I really appreciated it.
@fringe night I've already installed alarmo, but I don't understand how to setup the actual alarms.

Basically I want the following:

WHEN I LEAVE HOME (ARM):

  • ARM the alarm via smartphone
  • 30 sec delay to leave before siren sounds
  • Countdown sound (preferably from the H200)
  • After 30 Sec, the door sensor is ARMED

WHEN I OPEN THE DOOR/ RETURN HOME (DISARM):

  • 30 sec delay to disable/disarm alarm
  • Countdown sound (preferably from the H200)
  • If I disarm via smartphone, then that DISARMS the alarm
  • If after 30 sec I have not disarmed the alarm, H200 siren sounds

I hope that makes sense?

Thanks in advance

thor-more

quiet drift
#

I would be most grateful if there is anyone who could please assist me with the above.

left jackal