Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##################################################
- - alias: Tự động bật đèn phòng tắm 2
- trigger:
- - entity_id: binary_sensor.motion_sensor_158d00024ee7c1
- platform: state
- to: "on"
- action:
- - service: switch.turn_on
- entity_id:
- - switch.wall_switch_left_158d00023a935b
- ##################################################
- - alias: Tự động tắt đèn, quạt phòng tắm 2
- trigger:
- - entity_id: binary_sensor.motion_sensor_158d00024ee7c1
- platform: state
- to: "off"
- for: 00:03:00
- action:
- - service: switch.turn_off
- entity_id:
- - switch.wall_switch_right_158d00023a935b
- - switch.wall_switch_left_158d00023a935b
- ##################################################
- - alias: Tự động bật quạt hút phòng tắm 2
- initial_state: true
- trigger:
- - platform: state
- entity_id: switch.wall_switch_left_158d00023a935b
- from: 'off'
- to: 'on'
- for: 00:02:00
- action:
- - service: switch.turn_on
- entity_id: switch.wall_switch_right_158d00023a935b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement