From 2b2261e248c7d1c3ae627f84af39b59fd3a87b5e Mon Sep 17 00:00:00 2001 From: Pierre Date: Thu, 9 Jul 2026 23:20:00 +0200 Subject: [PATCH] add red shelly button as a presence source --- apps/global/virtualsensors.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/global/virtualsensors.yaml b/apps/global/virtualsensors.yaml index 4271d98..d9cfe3f 100644 --- a/apps/global/virtualsensors.yaml +++ b/apps/global/virtualsensors.yaml @@ -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.is_dark_outside: sun.sun == 'below_horizon' + 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: