Created
August 18, 2023 17:12
-
-
Save ipedro/6198a944fd8234d431239f23821b09a2 to your computer and use it in GitHub Desktop.
automacao luzes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: Luz Sala Jantar | |
description: "" | |
trigger: | |
- type: motion | |
platform: device | |
device_id: 0f52625e2f8107945c7039224cd45b8c | |
entity_id: ba6fd12b9550964f2645da6481182867 | |
domain: binary_sensor | |
id: motion_on | |
for: | |
hours: 0 | |
minutes: 0 | |
seconds: 30 | |
- type: no_motion | |
platform: device | |
device_id: 0f52625e2f8107945c7039224cd45b8c | |
entity_id: ba6fd12b9550964f2645da6481182867 | |
domain: binary_sensor | |
for: | |
hours: 0 | |
minutes: 2 | |
seconds: 0 | |
id: motion_off | |
condition: [] | |
action: | |
- choose: | |
- conditions: | |
- condition: trigger | |
id: | |
- motion_on | |
- condition: device | |
type: is_off | |
device_id: 116626f335267098f8f941cecff31a7b | |
entity_id: d4e18b30697c184be049e3ea8cefa72e | |
domain: light | |
- condition: numeric_state | |
entity_id: sensor.hue_motion_sensor_1_illuminance | |
attribute: light_level | |
below: 200 | |
sequence: | |
- if: | |
- condition: numeric_state | |
entity_id: sensor.hue_motion_sensor_1_illuminance | |
below: 5 | |
then: | |
- type: turn_on | |
device_id: 04dd72114da0fe378dfe3ccc27591e04 | |
entity_id: d1c6bc919e17ba593785080d44e68243 | |
domain: light | |
brightness_pct: 2 | |
else: | |
- service: scene.turn_on | |
target: | |
entity_id: scene.sala_jantar_luz_natural | |
metadata: {} | |
- type: turn_on | |
device_id: 116626f335267098f8f941cecff31a7b | |
entity_id: d4e18b30697c184be049e3ea8cefa72e | |
domain: light | |
default: | |
- type: turn_off | |
device_id: 116626f335267098f8f941cecff31a7b | |
entity_id: d4e18b30697c184be049e3ea8cefa72e | |
domain: light | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment