No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

automations.yaml 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. - alias: "Welcome Home"
  2. condition: []
  3. trigger:
  4. - entity_id: device_tracker.josh
  5. from: not_home
  6. platform: state
  7. to: home
  8. action:
  9. service: notify.ios_jphone
  10. data:
  11. message: "Hi Josh! Welcome Home \U0001F3E0"
  12. data:
  13. subtitle: "What can I do for you?"
  14. - alias: "Hass Startup Notification"
  15. trigger:
  16. - platform: homeassistant
  17. event: start
  18. action:
  19. service: notify.ios_jphone
  20. data:
  21. title: "Status Update"
  22. message: "HomeAssitant has restarted"
  23. data:
  24. subtitle: "All services should be up now."
  25. - alias: 'Update Available Notifications'
  26. trigger:
  27. platform: state
  28. entity_id: updater.updater
  29. action:
  30. service: notify.ios_jphone
  31. data:
  32. message: 'Update for Home Assistant is available.'
  33. - alias: "Notify about phone state"
  34. trigger:
  35. platform: state
  36. entity_id: sensor.phone
  37. condition:
  38. condition: state
  39. entity_id: sensor.phone
  40. state: 'ringing'
  41. action:
  42. service: notify.ios_jphone
  43. data:
  44. title: "Phone"
  45. message: 'Incoming call from {{ states.sensor.phone.attributes.from_name }} ({{ states.sensor.phone.attributes.from }})'
  46. - alias: "Enable Subwoofer if Desktop Plays Music from Spotify"
  47. trigger:
  48. platform: state
  49. entity_id: media_player.spotify
  50. condition:
  51. - condition: template
  52. value_template: '{{ states.media_player.spotify.attributes.source == "DESKTOP-TMIMKG7" }}'
  53. - condition: state
  54. entity_id: media_player.spotify
  55. state: 'playing'
  56. action:
  57. service: switch.turn_on
  58. entity_id: switch.subwoofer
  59. - alias: Turn on light when there is movement
  60. trigger:
  61. platform: state
  62. entity_id: binary_sensor.pir
  63. to: 'on'
  64. action:
  65. service: light.turn_on
  66. entity_id: light.room_light
  67. - alias: Turn off light 10 minutes after last movement
  68. trigger:
  69. platform: state
  70. entity_id: binary_sensor.pir
  71. to: 'off'
  72. for:
  73. minutes: 10
  74. action:
  75. service: light.turn_off
  76. entity_id: light.room_light
  77. - alias: Turn off subwoofer when PC is off
  78. trigger:
  79. platform: state
  80. entity_id: switch.desktop
  81. to: 'off'
  82. action:
  83. service: switch.turn_off
  84. entity_id: switch.subwoofer