Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: Strip Light On
- trigger:
- - platform: state
- entity_id: binary_sensor.ironman_pir
- to: "on"
- condition:
- - condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.dark_bright
- state: "off"
- - condition: state
- entity_id: light.strip_light
- state: "off"
- action:
- - service: homeassistant.turn_on
- data:
- entity_id: light.strip_light
- brightness_pct: 45
- rgb_color: [255, 128, 0]
- transition: 1
- - service: homeassistant.turn_on
- entity_id: automation.strip_light_off
- - alias: Strip Light Off
- initial_state: "off"
- trigger:
- - platform: state
- entity_id: binary_sensor.ironman_pir
- to: "off"
- for:
- seconds: 50
- action:
- - service: homeassistant.turn_off
- data:
- entity_id: light.strip_light
- transition: 5
- - service: homeassistant.turn_off
- entity_id: automation.strip_light_off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement