The „Buchenweg“ Smart Home

This is meant as an inspiration for others but also to keep track of what I have configured for myself.

I just started two weeks ago with a Raspi 4, deconz zigbee stick and HA.

I want to make sure that in case of any HA failure the whole house is still working at least as good as it was before I implemented the smart home functionalities at all. Especially each light switch needs to keep basically working.

Sensors and actors used:

Basement:

  • Garage door sensor
  • Water leakage sensor

1st floor:

  • Main door sensor
  • Door Terrace left sensor
  • Door Terrace right sensor
  • Door to basement sensor
  • Ceiling lights Hallway actor

2nd floor:

  • Smoke detector Hallway sensor
  • Ceiling lights Office actor

With a helper, I’m keeping track of the house status:

  • Home
  • Sleeping

Scenes are defining how lights should work:

  • Daytime
  • Nighttime
  • Sleep

Automations are used to set the home status and the scenes:

  • Before sunset, set daytime scene
  • After sunset, set nighttime scene
  • When Apple Watch status changes to “Sleeping”, set Sleep status (and vice versa)

Further automations to alarm:

  • Check all batteries once every day and alarm me with the sensor name if one is below 15%
  • If a smoke or water leakage detector goes off, send critical alarm to iPhone/Watch
  • If I’m not home (GPS iPhone) and a door/window is opened, send critical alarm to iPhone/Watch

Looking for more smoke detectors, full heating control and further light control. Maybe also controlling the blinds.

Also looking into a holiday automation to simulate sleep time and further presence simulation at daytime.

Also thinking about a more elaborated alarm system with three zones:

  • Orange alarm: someone on my land (alarm everytime via Watch)
  • Red alarm: a door/window got opened (alarm when I’m away)
  • Critical alarm: door/window got opened and presence within the house is detected while I’m away (alarm via Watch, maybe do something additional)

That’s for now, maybe more for myself to keep track of what I’ve done so far and still planning, but maybe also some kind of inspiration for the one or the other here.

Thanks to the community for all the great documentation and support, super helpful and very much appreciated!

Any thoughts, comments, etc are very welcome.

Sounds good. Could you share how you implemented the alarm part?
I want do something similar with the door and window sensors as well as the batteries.

Didn’t see your reply before, sorry.

I only have the bare minimum right now, checking for different sensors and making sure I’m not home (or home and sleeping) and then send a critical notification to my iPhone whenever one of the sensors opens:


alias: "Alarm: Einbruchsalarm auf iPhone bei Abwesenheit/Schlaf"
description: ""
trigger:
  - type: opened
    platform: device
    device_id: da64ddb8e9d2f2de32e17c6c276fdc0b
    entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_6ff99907_on_off
    domain: binary_sensor
    for:
      hours: 0
      minutes: 0
      seconds: 0
  - type: opened
    platform: device
    device_id: aa5a9324b7bda1a40a88176b600291ab
    entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_31729907_on_off
    domain: binary_sensor
  - type: opened
    platform: device
    device_id: 71b292c861505731343f7ca0d22f2406
    entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_on_off
    domain: binary_sensor
  - type: opened
    platform: device
    device_id: 1d7159c5ca000273516c9adf964bee8a
    entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_cd709907_on_off
    domain: binary_sensor
  - type: opened
    platform: device
    device_id: 87a7679f2bb6a72e52c59224b732a90f
    entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_3ff79907_on_off
    domain: binary_sensor
  - type: occupied
    platform: device
    device_id: 14c8c581c3408c2b2aabb8e5a1d40d7f
    entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_occupancy
    domain: binary_sensor
    for:
      hours: 0
      minutes: 0
      seconds: 1
condition:
  - condition: or
    conditions:
      - condition: device
        device_id: 5e32ed18029f7df2fdc21ad8376e96d5
        domain: device_tracker
        entity_id: device_tracker.peters_iphone_11_pro
        type: is_not_home
      - condition: state
        entity_id: input_select.status
        state: Schlafen
  - condition: not
    conditions:
      - condition: state
        entity_id: input_select.status
        state: Putzen
action:
  - service: notify.mobile_app_peters_iphone_11_pro
    data:
      message: "{{ trigger.to_state.name }} geöffnet!"
      title: Achtung
      data:
        push:
          sound:
            name: default.wav
            critical: 1
            volume: 1
mode: queued
max: 10