add red shelly button as a presence source

This commit is contained in:
2026-07-09 23:20:00 +02:00
parent 89a2f55583
commit 2b2261e248

View File

@@ -4,8 +4,15 @@ virtual_sensors:
priority: 10 # default priority app is 50, since most of them require sensors created by virtual sensors, it's important that virtual_sensors start first
sensors:
binary_sensor.someone_home: person.maeva == 'home' or person.pierre == 'home'
binary_sensor.someone_home: person.maeva == 'home' or person.pierre == 'home' or (input_boolean.use_red_shelly_presence and binary_sensor.red_shelly_home)
binary_sensor.is_dark_outside: sun.sun == 'below_horizon'
event_sensor.red_shelly_home:
retain_time: 120
activation_events:
signal_strenght:
event_name: state_changed
event_data:
entity_id: sensor.shelly_button_red_signal_strength
# living room sensors
value_selector.living_room_ambiance_light: