| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- - alias: "Welcome Home"
- condition: []
- trigger:
- - entity_id: device_tracker.josh
- from: not_home
- platform: state
- to: home
- action:
- service: notify.ios_jphone
- data:
- message: "Hi Josh! Welcome Home \U0001F3E0"
- data:
- subtitle: "What can I do for you?"
-
- - alias: "Hass Startup Notification"
- trigger:
- - platform: homeassistant
- event: start
- action:
- service: notify.ios_jphone
- data:
- title: "Status Update"
- message: "HomeAssitant has restarted"
- data:
- subtitle: "All services should be up now."
-
- - alias: 'Update Available Notifications'
- trigger:
- platform: state
- entity_id: updater.updater
- action:
- service: notify.ios_jphone
- data:
- message: 'Update for Home Assistant is available.'
-
- - alias: "Notify about phone state"
- trigger:
- platform: state
- entity_id: sensor.phone
- condition:
- condition: state
- entity_id: sensor.phone
- state: 'ringing'
- action:
- service: notify.ios_jphone
- data:
- title: "Phone"
- message: 'Incoming call from {{ states.sensor.phone.attributes.from_name }} ({{ states.sensor.phone.attributes.from }})'
- - alias: "Enable Subwoofer if Desktop Plays Music from Spotify"
- trigger:
- platform: state
- entity_id: media_player.spotify
- condition:
- - condition: template
- value_template: '{{ states.media_player.spotify.attributes.source == "DESKTOP-TMIMKG7" }}'
- - condition: state
- entity_id: media_player.spotify
- state: 'playing'
- action:
- service: switch.turn_on
- entity_id: switch.subwoofer
-
- - alias: Turn on light when there is movement
- trigger:
- platform: state
- entity_id: binary_sensor.pir
- to: 'on'
- action:
- service: light.turn_on
- entity_id: light.room_light
-
- - alias: Turn off light 10 minutes after last movement
- trigger:
- platform: state
- entity_id: binary_sensor.pir
- to: 'off'
- for:
- minutes: 10
- action:
- service: light.turn_off
- entity_id: light.room_light
-
- - alias: Turn off subwoofer when PC is off
- trigger:
- platform: state
- entity_id: switch.desktop
- to: 'off'
- action:
- service: switch.turn_off
- entity_id: switch.subwoofer
|