Hi,
Somehow, when we are both not at home, the lights still go out. Normally, the condition with the group.persons shouldn’t be home when absent, so it should go to total sleep:
- alias: "[Sensor] - night mode go from half to total sleeping mode"
description: >
When it is half sleeping mode and there is no activity in
the house for more than half an hour go to total sleeping mode.
trigger:
platform: state
entity_id: binary_sensor.activity_outside_bedroom
to: "off"
for: "00:30:00"
condition:
- condition: state
entity_id: group.persons
state: home
- condition: state
entity_id: input_select.sleep_mode
state: half
action:
- service: input_select.select_option
entity_id: input_select.sleep_mode
data:
option: "total"
- service: notify.mobile_app_sm_g998b
data:
title: "Night mode"
message: "Automatically switched from 'half' to 'total' sleeping mode! 💤🛌"
- alias: "[Lights] - all lights out when total sleeping mode"
trigger:
platform: state
entity_id: input_select.sleep_mode
to: "total"
action:
service: light.turn_off
entity_id: group.nachtmodus_lights
Anyone got a clue ?
Thanks !
Bart