This file contains 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
- id: morning_wake_up_routine | |
alias: Morning Wake up Routine | |
initial_state: 'off' | |
condition: | |
condition: and | |
conditions: | |
- condition: state | |
entity_id: group.evening_night_light | |
state: 'on' | |
- condition: time |
This file contains 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
bedtime: | |
alias: Bedtime | |
sequence: | |
- service: script.turn_on | |
data: | |
entity_id: script.air_on_check | |
- service: homeassistant.turn_on | |
entity_id: light.bedroom_lamp | |
data: | |
brightness: 5 |
This file contains 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
evening_night_light: | |
name: Evening Night Light | |
entities: | |
- automation.night_light_toggle_on | |
- automation.night_light_toggle_off |
This file contains 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: Night Light Toggle OFF | |
trigger: | |
- platform: state | |
entity_id: binary_sensor.door_window_sensor_158d0001ab573f | |
from: 'on' | |
to: 'off' | |
action: | |
service: light.turn_off | |
entity_id: | |
- light.gateway_light_34ce008d4aae |
This file contains 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: Night Light Toggle ON | |
trigger: | |
- platform: state | |
entity_id: binary_sensor.door_window_sensor_158d0001ab573f | |
from: 'off' | |
to: 'on' | |
action: | |
service: homeassistant.turn_on | |
entity_id: light.gateway_light_34ce008d4aae | |
data: |
This file contains 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
- platform: template | |
sensors: | |
front_door: | |
friendly_name: "Front Door" | |
value_template: >- | |
{% if is_state('binary_sensor.door_window_sensor_158d0001ab56bd', 'on') %} | |
Open | |
{% else %} | |
Closed | |
{% endif %} |
This file contains 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: toggle both lamps on long press | |
trigger: | |
platform: event | |
event_type: click | |
event_data: | |
entity_id: binary_sensor.switch_158d0001e61312 | |
click_type: long_click_press | |
action: | |
service: switch.toggle | |
entity_id: |
This file contains 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: toggle entry lamp on double press | |
trigger: | |
platform: event | |
event_type: click | |
event_data: | |
entity_id: binary_sensor.switch_158d0001e61312 | |
click_type: double | |
action: | |
service: switch.toggle | |
entity_id: switch.entry |
This file contains 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: toggle lamp on single press | |
trigger: | |
platform: event | |
event_type: click | |
event_data: | |
entity_id: binary_sensor.switch_158d0001e61312 | |
click_type: single | |
action: | |
service: switch.toggle | |
entity_id: switch.lamp |
This file contains 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
sound_effect: | |
alias: Music Box | |
sequence: | |
- service: xiaomi_aqara.play_ringtone | |
data: | |
gw_mac: xxxxxxxxxxxx | |
ringtone_id: 27 |