From ba560525fad748dafffb2162e33a0a308357b60f Mon Sep 17 00:00:00 2001 From: unrza249 Date: Mon, 2 Mar 2026 16:56:15 +0100 Subject: [PATCH] adds gitignore --- motion_activated_scene.yaml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/motion_activated_scene.yaml b/motion_activated_scene.yaml index 96e75b6..b8ad0d5 100644 --- a/motion_activated_scene.yaml +++ b/motion_activated_scene.yaml @@ -4,13 +4,14 @@ blueprint: domain: automation author: Florian Klemenz input: - motion_entity: + motion_sensors: name: Motion Sensor selector: entity: + multiple: true filter: - device_class: motion domain: binary_sensor + device_class: motion no_motion_wait: name: Wait time description: Time to leave the scene on after last motion is detected. @@ -20,13 +21,15 @@ blueprint: min: 0 max: 300 unit_of_measurement: seconds - illuminance_sensor: + illuminance_sensors: name: Illuminance sensor description: The illuminance sensor to get lux data. selector: entity: - domain: sensor - device_class: illuminance + multiple: true + filter: + domain: sensor + device_class: illuminance illuminance_cutoff: name: Illuminance threshold description: Lux above this threshold will activate the "off" scene. @@ -70,17 +73,17 @@ mode: restart max_exceeded: silent trigger: - platform: state - entity_id: !input motion_entity - from: "off" - to: "on" + - platform: state + entity_id: !input motion_sensors + from: "off" + to: "on" action: - choose: # "Activate off-scene if illuminance is above threshold" - conditions: - condition: numeric_state - entity_id: !input illuminance_sensor + entity_id: !input illuminance_sensors above: !input illuminance_cutoff sequence: - service: scene.turn_on @@ -107,7 +110,7 @@ action: - alias: "Wait until there is no motion from device" wait_for_trigger: platform: state - entity_id: !input motion_entity + entity_id: !input motion_sensors from: "on" to: "off" - alias: "Wait the number of seconds that has been set"