automations.yaml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. - id: '1705510128965'
  2. alias: Activate coffee brewer timer
  3. description: Turns on the coffee brewer electrical switch and starts the timer.
  4. trigger:
  5. - platform: state
  6. entity_id:
  7. - input_boolean.activate_coffee_brewer_timer
  8. to: 'on'
  9. condition: []
  10. action:
  11. - service: switch.turn_on
  12. target:
  13. entity_id:
  14. - switch.kaffetimer
  15. device_id: []
  16. area_id: []
  17. data: {}
  18. - service: timer.start
  19. target:
  20. entity_id: timer.coffee_brewer_timer
  21. data: {}
  22. - service: counter.increment
  23. target:
  24. entity_id: counter.coffee_counter
  25. data: {}
  26. mode: restart
  27. - id: '1706284268833'
  28. alias: Deactivate coffee brewer timer
  29. description: Turns off stuff when manually switching off the timer
  30. trigger:
  31. - platform: state
  32. entity_id:
  33. - input_boolean.activate_coffee_brewer_timer
  34. from: 'on'
  35. to: 'off'
  36. - platform: state
  37. entity_id:
  38. - timer.coffee_brewer_timer
  39. from: active
  40. to: idle
  41. condition: []
  42. action:
  43. - service: input_boolean.turn_off
  44. target:
  45. entity_id:
  46. - input_boolean.activate_coffee_brewer_timer
  47. data: {}
  48. - service: timer.cancel
  49. target:
  50. entity_id: timer.coffee_brewer_timer
  51. data: {}
  52. - service: switch.turn_off
  53. target:
  54. entity_id: switch.kaffetimer
  55. data: {}
  56. mode: single
  57. - id: '1706284484894'
  58. alias: Activate Coffee Brewer at scheduled time
  59. description: Starts the coffee brewer timer at the setup time
  60. trigger:
  61. - platform: time
  62. at: input_datetime.coffee_brewer_scheduled_start_time
  63. condition:
  64. - condition: state
  65. entity_id: input_boolean.enable_scheduled_start_of_coffee_brewer
  66. state: 'on'
  67. action:
  68. - service: input_boolean.turn_on
  69. target:
  70. entity_id:
  71. - input_boolean.activate_coffee_brewer_timer
  72. device_id: []
  73. area_id: []
  74. data: {}
  75. - service: input_boolean.turn_off
  76. target:
  77. entity_id: input_boolean.enable_scheduled_start_of_coffee_brewer
  78. data: {}
  79. mode: single
  80. - id: '1736266866394'
  81. alias: Set Has been Night Flag
  82. description: Set that it has been midnight, and that its ok to turn the light on
  83. trigger:
  84. - platform: time
  85. at: 00:30:00
  86. action:
  87. - service: input_boolean.turn_on
  88. target:
  89. entity_id:
  90. - input_boolean.ext_light_has_been_night
  91. - input_boolean.home_auto_lights_off_has_been_night
  92. data: {}
  93. - id: '1736266934946'
  94. alias: Set Has Been Day Flag
  95. description: ''
  96. trigger:
  97. - platform: time
  98. at: '12:30:00'
  99. action:
  100. - service: input_boolean.turn_on
  101. target:
  102. entity_id: input_boolean.ext_light_has_been_day
  103. - id: '1736268207142'
  104. alias: Turn on Exterial Lights In The Evening
  105. description: ''
  106. triggers:
  107. - entity_id:
  108. - sensor.outside_lux
  109. below: 500
  110. for:
  111. seconds: 0
  112. trigger: numeric_state
  113. conditions:
  114. - condition: state
  115. entity_id: input_boolean.ext_light_has_been_day
  116. state: 'on'
  117. actions:
  118. - target:
  119. entity_id: input_boolean.ext_light_has_been_day
  120. data: {}
  121. action: input_boolean.turn_off
  122. - target:
  123. entity_id: input_boolean.exterior_lights_wanted_state
  124. data: {}
  125. action: input_boolean.turn_on
  126. - id: '1736268250686'
  127. alias: Turn Off Exterior Lights In The Morning
  128. description: ''
  129. triggers:
  130. - entity_id:
  131. - sensor.outside_lux
  132. above: 710
  133. for:
  134. seconds: 0
  135. trigger: numeric_state
  136. conditions:
  137. - condition: state
  138. entity_id: input_boolean.ext_light_has_been_night
  139. state: 'on'
  140. actions:
  141. - target:
  142. entity_id: input_boolean.ext_light_has_been_night
  143. data: {}
  144. action: input_boolean.turn_off
  145. - target:
  146. entity_id: input_boolean.exterior_lights_wanted_state
  147. data: {}
  148. action: input_boolean.turn_off
  149. - id: '1746203002786'
  150. alias: Mouse Counter Incrementer
  151. description: Increments the Mouse detection Counter when an event has happened
  152. trigger:
  153. - platform: state
  154. entity_id:
  155. - binary_sensor.mouse_detector
  156. from: 'off'
  157. to: 'on'
  158. condition: []
  159. action:
  160. - service: counter.increment
  161. target:
  162. entity_id: counter.kitchen_mouse_detection_counter
  163. data: {}
  164. mode: single
  165. - id: '1758118011846'
  166. alias: Sync Exterior Lights With Wanted State
  167. description: ''
  168. triggers:
  169. - entity_id: input_boolean.exterior_lights_wanted_state
  170. trigger: state
  171. actions:
  172. - choose:
  173. - conditions:
  174. - condition: state
  175. entity_id: input_boolean.exterior_lights_wanted_state
  176. state: 'on'
  177. sequence:
  178. - target:
  179. entity_id:
  180. - switch.1_mini_gen3_wood_shed
  181. - switch.1_mini_gen3_front_door
  182. action: switch.turn_on
  183. - conditions:
  184. - condition: state
  185. entity_id: input_boolean.exterior_lights_wanted_state
  186. state: 'off'
  187. sequence:
  188. - target:
  189. entity_id:
  190. - switch.1_mini_gen3_wood_shed
  191. - switch.1_mini_gen3_front_door
  192. action: switch.turn_off
  193. mode: single
  194. - id: '1759053358355'
  195. alias: Turn lights ON when on vacation
  196. description: ''
  197. triggers:
  198. - trigger: time
  199. at: '18:36:00'
  200. weekday:
  201. - mon
  202. - tue
  203. - wed
  204. - thu
  205. - fri
  206. - sat
  207. - sun
  208. conditions: []
  209. actions:
  210. - action: input_select.select_option
  211. metadata: {}
  212. data:
  213. option: All on
  214. target:
  215. entity_id: input_select.light_mode
  216. mode: single
  217. - id: '1759053894661'
  218. alias: Turn lights OFF when on vacation
  219. description: ''
  220. triggers:
  221. - trigger: time
  222. at: '23:20:00'
  223. weekday:
  224. - mon
  225. - tue
  226. - wed
  227. - thu
  228. - fri
  229. - sat
  230. - sun
  231. conditions: []
  232. actions:
  233. - action: input_select.select_option
  234. metadata: {}
  235. data:
  236. option: All off
  237. target:
  238. entity_id: input_select.light_mode
  239. mode: single