Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: en_light_control1
- description: Прихожая управление светильником (Резерв)
- trigger:
- - platform: state
- entity_id: binary_sensor.m141_05
- to: "on"
- enabled: false
- - platform: event
- event_type: mega.binary
- event_data:
- entity_id: binary_sensor.m141_05
- type: single
- condition:
- - condition: state
- entity_id: switch.control_mode
- state: "on"
- action:
- - service: light.toggle
- entity_id:
- - light.m141_29
- - choose:
- - conditions:
- - condition: state
- entity_id: light.m141_29
- state: "off"
- sequence:
- - service: light.turn_on
- entity_id:
- - light.m141_29
- - conditions:
- - condition: state
- entity_id: light.m141_29
- state: "on"
- sequence:
- - service: light.turn_off
- entity_id:
- - light.m141_29
- enabled: false
- mode: single
- initial_state: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement