this post was submitted on 11 Mar 2024
1 points (100.0% liked)

Home Assistant

463 readers
2 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY...

founded 1 year ago
MODERATORS
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/neiram44 on 2024-03-10 16:27:39.


Hi!

I'm discovering HA. I want to have specific behavior when no one is home. How do you signal no one is home? I cannot do it via phone because we put our phone in airplane mode during night plus sometimes we have friends home I don't want to register everyone's phone.

I need a basic button to say OK everyone is out.

Today I have a IKEA Dirigera setup + Google Nest.

I have a couple of unused ESP8266 laying around...

Any suggestion?

you are viewing a single comment's thread
view the rest of the comments
[–] Bigfish@lemmynsfw.com 2 points 8 months ago* (last edited 8 months ago) (2 children)

I would just use the old "Home changes to 0" state, and add a conditional for night (not night) and another for a triggered timer. I call my timer "Nanny mode", and it just blocks 'away from home' automations while it's running. I just need to remember to hit a button on my dashboard once a day or so, starting the 16h timer.

Here's my "set the alarm and lower the blinds when we leave, and put them back when we get home" auto:

description: ""
trigger:
  - platform: state
    entity_id:
      - zone.home
    to: "0"
    for:
      hours: 0
      minutes: 1
      seconds: 0
    id: Left home
  - platform: state
    entity_id:
      - zone.home
    from: "0"
    id: Came home
condition:
  - condition: not
    conditions:
      - condition: state
        entity_id: timer.nanny_mode
        state: active
action:
  - choose:
      - conditions:
          - condition: trigger
            id: Left home
        sequence:
          - service: alarmo.arm
            data:
              mode: away
              skip_delay: true
              entity_id: alarm_control_panel.alarmo
          - service: cover.set_cover_position
            data:
              position: 0
            target:
              entity_id:
                - cover.front_room_blinds
      - conditions:
          - condition: trigger
            id:
              - Came home
          - condition: or
            conditions:
              - condition: state
                entity_id: alarm_control_panel.alarmo
                state: armed_away
              - condition: state
                entity_id: alarm_control_panel.alarmo
                state: triggered
              - condition: state
                entity_id: alarm_control_panel.alarmo
                state: pending
        sequence:
          - choose:
              - conditions:
                  - condition: sun
                    before: sunrise
                    after: sunset
                sequence:
                  - service: alarmo.disarm
                    data:
                      entity_id: alarm_control_panel.alarmo
                  - device_id: #######
                    domain: alarm_control_panel
                    entity_id: #######
                    type: disarm
              - conditions:
                  - condition: sun
                    after: sunrise
                    before: sunset
                sequence:
                  - service: cover.set_cover_position
                    data:
                      position: 100
                    target:
                      entity_id: cover.front_room_blinds
                  - service: alarmo.disarm
                    data:
                      entity_id: alarm_control_panel.alarmo
                  - device_id: #####
                    domain: alarm_control_panel
                    entity_id: #####
                    type: disarm
mode: single
[–] barkingspiders@infosec.pub 2 points 8 months ago (1 children)

You managed to solve two problems for that I hadn't even articulated yet, thanks for sharing!