Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Bedtime
- description: "All off except bedrooms, close/lock doors"
- trigger:
- - platform: device
- domain: tasmota
- device_id: 5e97a98a51f8af5f3024befe92091cf2
- type: button_double_press
- subtype: button_1
- discovery_id: 40F52062F794_button_1_DOUBLE
- condition: []
- action:
- - service: light.turn_off
- target:
- area_id:
- - living_room
- - laundry_room
- - office
- - entry
- device_id:
- - 7b9401306fc30639482779df3a66aa96
- - dc1751d9726f844d9770a775e00e02f2
- - ea52372bc1cb2c4205053c684724cb4f
- - f82d274a8df3726a0c352cb246c76951
- data: {}
- - service: switch.turn_off
- target:
- area_id:
- - laundry_room
- - living_room
- - loft
- - garage
- - entry
- device_id:
- - 2eb072b8e5c0f8f734fb12356adda573
- - f82d274a8df3726a0c352cb246c76951
- data: {}
- - service: fan.set_percentage
- data:
- percentage: 75
- target:
- entity_id: fan.living_room_fan
- - if:
- - condition: state
- entity_id: lock.front_door
- state: unlocked
- then:
- - service: lock.lock
- data: {}
- target:
- entity_id: lock.front_door
- - if:
- - condition: state
- state: open
- entity_id: cover.garage_door
- then:
- - service: cover.close_cover
- data: {}
- target:
- entity_id: cover.garage_door
- - if:
- - condition: state
- entity_id: binary_sensor.garage_door_closed
- state: "off"
- then:
- - service: cover.close_cover
- data: {}
- target:
- entity_id: cover.garage_door
- - wait_for_trigger:
- - platform: state
- entity_id:
- - cover.garage_door
- to: closed
- timeout:
- hours: 0
- minutes: 0
- seconds: 12
- milliseconds: 0
- - if:
- - condition: state
- entity_id: cover.garage_door
- state: closed
- then:
- - service: notify.mobile_app_[my_phone]
- data:
- message: Garage door closed
- - if:
- - condition: state
- entity_id: binary_sensor.garage_door_closed
- state: "off"
- then:
- - service: notify.mobile_app_[my_phone]
- data:
- message: Garage door NOT closed!
- - service: alarmo.arm
- data:
- mode: home
- skip_delay: false
- force: true
- entity_id: alarm_control_panel.alarmo
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment