automations.yaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737
  1. - id: '1634297777634'
  2. alias: bath lights off
  3. description: ''
  4. trigger:
  5. - device_id: b8318016a07e5732cd9025db3a2f8d20
  6. domain: zha
  7. platform: device
  8. type: remote_button_short_press
  9. subtype: button_1
  10. condition: []
  11. action:
  12. - service: light.turn_off
  13. target:
  14. entity_id: light.vanity
  15. data: {}
  16. mode: single
  17. - id: '1661139399908'
  18. alias: Person Detected - Back Yard - Motion Light
  19. description: ''
  20. triggers:
  21. - type: motion
  22. device_id: aba6aa12b89879750ec6be2ca75e1895
  23. entity_id: binary_sensor.garage_motion_sensor_motion_detection
  24. domain: binary_sensor
  25. for:
  26. hours: 0
  27. minutes: 0
  28. seconds: 3
  29. trigger: device
  30. - topic: Agent [Athena]/cameras/rear_entry/object_detection/person/detected
  31. payload: 'true'
  32. trigger: mqtt
  33. conditions:
  34. - type: is_illuminance
  35. condition: device
  36. device_id: aba6aa12b89879750ec6be2ca75e1895
  37. entity_id: sensor.garage_motion_sensor_illuminance
  38. domain: sensor
  39. below: 50
  40. - condition: sun
  41. before: sunrise
  42. after: sunset
  43. actions:
  44. - target:
  45. entity_id: scene.backyard_alert
  46. metadata: {}
  47. action: scene.turn_on
  48. data: {}
  49. - delay:
  50. hours: 0
  51. minutes: 1
  52. seconds: 0
  53. milliseconds: 0
  54. - target:
  55. entity_id: scene.backyard_normal
  56. metadata: {}
  57. action: scene.turn_on
  58. data: {}
  59. mode: restart
  60. - id: '1661386100452'
  61. alias: at dusk
  62. description: ''
  63. triggers:
  64. - event: sunset
  65. trigger: sun
  66. conditions: []
  67. actions:
  68. - target:
  69. entity_id: scene.nighttime_normal
  70. metadata: {}
  71. action: scene.turn_on
  72. data: {}
  73. - action: switch.turn_on
  74. metadata: {}
  75. data: {}
  76. target:
  77. device_id: 76c0a0e894ff92aac3461429a5e5e0b6
  78. enabled: false
  79. - action: cover.close_cover
  80. metadata: {}
  81. data: {}
  82. target:
  83. entity_id: cover.front_room_blinds
  84. mode: single
  85. - id: '1662697063215'
  86. alias: at dawn
  87. description: ''
  88. triggers:
  89. - event: sunrise
  90. offset: 0
  91. trigger: sun
  92. conditions: []
  93. actions:
  94. - target:
  95. entity_id: scene.daytime_normal
  96. metadata: {}
  97. action: scene.turn_on
  98. data: {}
  99. - metadata: {}
  100. data: {}
  101. target:
  102. entity_id:
  103. - automation.backyard_motion_light_2
  104. - automation.front_yard_person_detected
  105. action: automation.turn_on
  106. - action: cover.open_cover
  107. metadata: {}
  108. data: {}
  109. target:
  110. entity_id: cover.front_room_blinds
  111. mode: single
  112. - id: '1672727297478'
  113. alias: bath lights on
  114. description: ''
  115. trigger:
  116. - device_id: b8318016a07e5732cd9025db3a2f8d20
  117. domain: zha
  118. platform: device
  119. type: remote_button_short_press
  120. subtype: button_4
  121. condition: []
  122. action:
  123. - service: light.turn_on
  124. target:
  125. entity_id: light.vanity
  126. data:
  127. kelvin: 4000
  128. brightness_pct: 25
  129. mode: single
  130. - id: '1672727402473'
  131. alias: bath lights brighter
  132. description: ''
  133. trigger:
  134. - device_id: b8318016a07e5732cd9025db3a2f8d20
  135. domain: zha
  136. platform: device
  137. type: remote_button_short_press
  138. subtype: button_3
  139. condition: []
  140. action:
  141. - service: light.turn_on
  142. data:
  143. brightness_step_pct: 5
  144. target:
  145. entity_id: light.vanity
  146. mode: single
  147. - id: '1672727480201'
  148. alias: bath lights dimmer
  149. description: ''
  150. trigger:
  151. - device_id: b8318016a07e5732cd9025db3a2f8d20
  152. domain: zha
  153. platform: device
  154. type: remote_button_short_press
  155. subtype: button_2
  156. condition: []
  157. action:
  158. - service: light.turn_on
  159. target:
  160. entity_id: light.vanity
  161. data:
  162. brightness_step_pct: -5
  163. mode: single
  164. - id: '1672727534313'
  165. alias: bath lights plum
  166. description: ''
  167. trigger:
  168. - device_id: b8318016a07e5732cd9025db3a2f8d20
  169. domain: zha
  170. platform: device
  171. type: remote_button_double_press
  172. subtype: button_3
  173. condition: []
  174. action:
  175. - service: light.turn_on
  176. data:
  177. brightness_pct: 50
  178. color_name: plum
  179. target:
  180. entity_id: light.vanity
  181. - service: light.turn_on
  182. target:
  183. entity_id: light.vanity
  184. data:
  185. color_name: plum
  186. mode: single
  187. - id: '1672727589488'
  188. alias: bath lights warm white
  189. description: ''
  190. trigger:
  191. - device_id: b8318016a07e5732cd9025db3a2f8d20
  192. domain: zha
  193. platform: device
  194. type: remote_button_double_press
  195. subtype: button_4
  196. condition: []
  197. action:
  198. - service: light.turn_on
  199. data:
  200. kelvin: 2700
  201. target:
  202. entity_id: light.vanity
  203. mode: single
  204. - id: '1683350354655'
  205. alias: Person Detected - Front Yard - Motion Light
  206. description: ''
  207. triggers:
  208. - type: motion
  209. device_id: 5b18788902b18f38a64cbe2787aa0343
  210. entity_id: binary_sensor.driveway_motion_sensor_motion_detection
  211. domain: binary_sensor
  212. for:
  213. hours: 0
  214. minutes: 0
  215. seconds: 2
  216. trigger: device
  217. - topic: Agent [Athena]/cameras/full_frontal/object_detection/person/detected
  218. payload: 'true'
  219. trigger: mqtt
  220. conditions:
  221. - type: is_illuminance
  222. condition: device
  223. device_id: 5b18788902b18f38a64cbe2787aa0343
  224. entity_id: sensor.driveway_motion_sensor_illuminance
  225. domain: sensor
  226. below: 50
  227. - condition: sun
  228. before: sunrise
  229. after: sunset
  230. actions:
  231. - target:
  232. entity_id: scene.front_yard_alert
  233. metadata: {}
  234. action: scene.turn_on
  235. data: {}
  236. - delay:
  237. hours: 0
  238. minutes: 1
  239. seconds: 0
  240. milliseconds: 0
  241. - target:
  242. entity_id: scene.front_yard_normal
  243. metadata: {}
  244. action: scene.turn_on
  245. data: {}
  246. mode: restart
  247. - id: '1683497943655'
  248. alias: Person Detected - Back Yard - Notify (Image)
  249. description: ''
  250. trigger:
  251. - platform: mqtt
  252. topic: agent/camera/rear_entry/object_detection/person/detected/image
  253. condition: []
  254. action:
  255. - service: notify.adris_mobile_devices
  256. data_template:
  257. message: '{{ trigger.payload }}'
  258. title: Person detected in Back Yard
  259. - delay:
  260. hours: 0
  261. minutes: 1
  262. seconds: 0
  263. milliseconds: 0
  264. mode: single
  265. max_exceeded: silent
  266. - id: '1683498157728'
  267. alias: Person Detected - Front Yard - Notify (image)
  268. description: ''
  269. trigger:
  270. - platform: mqtt
  271. topic: agent/camera/full_frontal/object_detection/person/detected/image
  272. condition: []
  273. action:
  274. - service: notify.adris_mobile_devices
  275. data_template:
  276. message: '{{ trigger.payload }}'
  277. title: Person detected in Front Yard
  278. - delay:
  279. hours: 0
  280. minutes: 1
  281. seconds: 0
  282. milliseconds: 0
  283. mode: single
  284. max_exceeded: silent
  285. - id: '1684741441916'
  286. alias: atmosphere effect 1
  287. description: ''
  288. trigger:
  289. - device_id: 6c7dfb43f3f808a5498864911e8ab1ab
  290. domain: zha
  291. platform: device
  292. type: remote_button_double_press
  293. subtype: button_4
  294. condition: []
  295. action:
  296. - service: light.turn_on
  297. data:
  298. effect: colorloop
  299. target:
  300. device_id: d704f6fc8ce7c22cc49e79db0bc96ba2
  301. mode: single
  302. - id: '1684741637840'
  303. alias: atmosphere hot pink
  304. description: ''
  305. trigger:
  306. - device_id: 6c7dfb43f3f808a5498864911e8ab1ab
  307. domain: zha
  308. platform: device
  309. type: remote_button_short_press
  310. subtype: button_4
  311. condition: []
  312. action:
  313. - service: light.turn_on
  314. data:
  315. rgb_color:
  316. - 197
  317. - 27
  318. - 87
  319. brightness_pct: 15
  320. target:
  321. device_id: d704f6fc8ce7c22cc49e79db0bc96ba2
  322. mode: single
  323. - id: '1684741696773'
  324. alias: atmosphere off
  325. description: ''
  326. trigger:
  327. - device_id: 6c7dfb43f3f808a5498864911e8ab1ab
  328. domain: zha
  329. platform: device
  330. type: remote_button_short_press
  331. subtype: button_1
  332. condition: []
  333. action:
  334. - service: light.turn_off
  335. data:
  336. transition: 3
  337. target:
  338. device_id: d704f6fc8ce7c22cc49e79db0bc96ba2
  339. mode: single
  340. - id: '1684741914422'
  341. alias: atmosphere brighter
  342. description: ''
  343. trigger:
  344. - device_id: 6c7dfb43f3f808a5498864911e8ab1ab
  345. domain: zha
  346. platform: device
  347. type: remote_button_short_press
  348. subtype: button_3
  349. condition: []
  350. action:
  351. - service: light.turn_on
  352. data:
  353. brightness_step: 50
  354. target:
  355. device_id: d704f6fc8ce7c22cc49e79db0bc96ba2
  356. mode: single
  357. - id: '1684741987579'
  358. alias: atmosphere dimmer
  359. description: ''
  360. trigger:
  361. - device_id: 6c7dfb43f3f808a5498864911e8ab1ab
  362. domain: zha
  363. platform: device
  364. type: remote_button_short_press
  365. subtype: button_2
  366. condition: []
  367. action:
  368. - service: light.turn_on
  369. data:
  370. brightness_step: -50
  371. target:
  372. device_id: d704f6fc8ce7c22cc49e79db0bc96ba2
  373. mode: single
  374. - id: '1701920566517'
  375. alias: bedroom heater - turn off
  376. description: ''
  377. trigger:
  378. - platform: state
  379. entity_id:
  380. - binary_sensor.bedroom_occupancy
  381. to: 'off'
  382. for:
  383. hours: 0
  384. minutes: 10
  385. seconds: 0
  386. - platform: numeric_state
  387. entity_id:
  388. - sensor.bedroom_temperature
  389. above: 76
  390. condition:
  391. - condition: device
  392. type: is_on
  393. device_id: 67f15e6edfde039737a4c9d6a6681f67
  394. entity_id: e9d081ac50cea2f44e46db5da9d5bd8c
  395. domain: switch
  396. action:
  397. - type: turn_off
  398. device_id: 67f15e6edfde039737a4c9d6a6681f67
  399. entity_id: e9d081ac50cea2f44e46db5da9d5bd8c
  400. domain: switch
  401. mode: restart
  402. - id: '1701920655754'
  403. alias: bedroom heater - turn on
  404. description: ''
  405. trigger:
  406. - platform: state
  407. entity_id:
  408. - binary_sensor.bedroom_occupancy
  409. to: 'on'
  410. for:
  411. hours: 0
  412. minutes: 1
  413. seconds: 0
  414. condition:
  415. - condition: device
  416. type: is_off
  417. device_id: 67f15e6edfde039737a4c9d6a6681f67
  418. entity_id: e9d081ac50cea2f44e46db5da9d5bd8c
  419. domain: switch
  420. - condition: numeric_state
  421. entity_id: sensor.bedroom_temperature
  422. below: 75
  423. action:
  424. - type: turn_on
  425. device_id: 67f15e6edfde039737a4c9d6a6681f67
  426. entity_id: e9d081ac50cea2f44e46db5da9d5bd8c
  427. domain: switch
  428. mode: restart
  429. - id: '1701925119967'
  430. alias: Basement Heater - turn off
  431. description: ''
  432. trigger:
  433. - platform: state
  434. entity_id:
  435. - binary_sensor.basement_occupancy
  436. to: 'off'
  437. for:
  438. hours: 0
  439. minutes: 10
  440. seconds: 0
  441. - platform: numeric_state
  442. entity_id:
  443. - sensor.basement_temperature
  444. above: 79
  445. condition:
  446. - condition: device
  447. type: is_on
  448. device_id: 4eb7fdd03a888dcc0f7fb12d4ed0c3a8
  449. entity_id: c9bb3b0cbbd237932ab5e7756c62fa5b
  450. domain: switch
  451. action:
  452. - type: turn_off
  453. device_id: 4eb7fdd03a888dcc0f7fb12d4ed0c3a8
  454. entity_id: c9bb3b0cbbd237932ab5e7756c62fa5b
  455. domain: switch
  456. mode: restart
  457. - id: '1701925928151'
  458. alias: Basement Heater - Turn On
  459. description: ''
  460. trigger:
  461. - platform: state
  462. entity_id:
  463. - binary_sensor.basement_occupancy
  464. to: 'on'
  465. for:
  466. hours: 0
  467. minutes: 1
  468. seconds: 0
  469. condition:
  470. - condition: device
  471. type: is_off
  472. device_id: 4eb7fdd03a888dcc0f7fb12d4ed0c3a8
  473. entity_id: c9bb3b0cbbd237932ab5e7756c62fa5b
  474. domain: switch
  475. - condition: numeric_state
  476. entity_id: sensor.basement_temperature
  477. below: 75
  478. action:
  479. - type: turn_on
  480. device_id: 4eb7fdd03a888dcc0f7fb12d4ed0c3a8
  481. entity_id: c9bb3b0cbbd237932ab5e7756c62fa5b
  482. domain: switch
  483. mode: restart
  484. - id: '1701926451013'
  485. alias: Office Heater - Turn On
  486. description: ''
  487. trigger:
  488. - platform: state
  489. entity_id:
  490. - binary_sensor.office_occupancy
  491. to: 'on'
  492. for:
  493. hours: 0
  494. minutes: 1
  495. seconds: 0
  496. condition:
  497. - condition: device
  498. type: is_off
  499. device_id: b197587a819cb3751beaa2b3faee02db
  500. entity_id: b9f0abd6c0e496381c4d99ea79497464
  501. domain: switch
  502. - condition: numeric_state
  503. entity_id: sensor.office_temperature
  504. below: 75
  505. action:
  506. - type: turn_on
  507. device_id: b197587a819cb3751beaa2b3faee02db
  508. entity_id: b9f0abd6c0e496381c4d99ea79497464
  509. domain: switch
  510. mode: restart
  511. - id: '1701926625524'
  512. alias: Office Heater - Turn Off
  513. description: ''
  514. trigger:
  515. - platform: state
  516. entity_id:
  517. - binary_sensor.office_occupancy
  518. to: 'off'
  519. for:
  520. hours: 0
  521. minutes: 10
  522. seconds: 0
  523. - platform: numeric_state
  524. entity_id:
  525. - sensor.office_temperature
  526. above: 77
  527. condition:
  528. - condition: device
  529. type: is_on
  530. device_id: b197587a819cb3751beaa2b3faee02db
  531. entity_id: b9f0abd6c0e496381c4d99ea79497464
  532. domain: switch
  533. action:
  534. - type: turn_off
  535. device_id: b197587a819cb3751beaa2b3faee02db
  536. entity_id: b9f0abd6c0e496381c4d99ea79497464
  537. domain: switch
  538. mode: restart
  539. - id: '1708275177795'
  540. alias: Person Detected - Back Yard - Notify
  541. description: ''
  542. triggers:
  543. - topic: Agent [Athena]/cameras/rear_entry/object_detection/person/detected
  544. trigger: mqtt
  545. conditions: []
  546. actions:
  547. - data:
  548. message: Person detected in Back Yard
  549. action: notify.adris_mobile_devices
  550. - delay:
  551. hours: 0
  552. minutes: 1
  553. seconds: 0
  554. milliseconds: 0
  555. mode: single
  556. max_exceeded: silent
  557. - id: '1708275331842'
  558. alias: Person Detected - Front Yard - Notify
  559. description: ''
  560. triggers:
  561. - topic: Agent [Athena]/cameras/full_frontal/object_detection/person/detected
  562. trigger: mqtt
  563. conditions: []
  564. actions:
  565. - data:
  566. message: Person detected in Front Yard
  567. action: notify.adris_mobile_devices
  568. - delay:
  569. hours: 0
  570. minutes: 1
  571. seconds: 0
  572. milliseconds: 0
  573. mode: single
  574. max_exceeded: silent
  575. - id: '1710120520332'
  576. alias: Basement Stairs - Motion Light
  577. description: ''
  578. trigger:
  579. - type: motion
  580. platform: device
  581. device_id: 4f946caefed3387d7611bcdaad8a4601
  582. entity_id: a43e6926f703edc421dc61c69449b5b5
  583. domain: binary_sensor
  584. condition: []
  585. action:
  586. - type: turn_on
  587. device_id: 13d8808d82e3b131cd8ed0e3b7e652ea
  588. entity_id: 62b25d80b0ad3cc06942bf366315d7f8
  589. domain: light
  590. - delay:
  591. hours: 0
  592. minutes: 0
  593. seconds: 30
  594. milliseconds: 0
  595. - type: turn_off
  596. device_id: 13d8808d82e3b131cd8ed0e3b7e652ea
  597. entity_id: 62b25d80b0ad3cc06942bf366315d7f8
  598. domain: light
  599. mode: restart
  600. - id: '1730746416843'
  601. alias: turn on lava lamp
  602. description: ''
  603. triggers:
  604. - trigger: time
  605. at: '18:00:00'
  606. - trigger: time
  607. at: 06:00:00
  608. conditions: []
  609. actions:
  610. - type: turn_on
  611. device_id: 46e88c318ca4eed8d822b5d6672cb062
  612. entity_id: 9fabadba6787fb8d2a7537dc7a88eee8
  613. domain: switch
  614. mode: single
  615. - id: '1730746460829'
  616. alias: turn off lava lamp
  617. description: ''
  618. triggers:
  619. - trigger: time
  620. at: 00:00:00
  621. - trigger: time
  622. at: '12:00:00'
  623. conditions: []
  624. actions:
  625. - type: turn_off
  626. device_id: 46e88c318ca4eed8d822b5d6672cb062
  627. entity_id: 9fabadba6787fb8d2a7537dc7a88eee8
  628. domain: switch
  629. mode: single
  630. - id: '1730746572961'
  631. alias: unlock back door when i get home
  632. description: ''
  633. triggers:
  634. - trigger: zone
  635. entity_id: device_tracker.adri_s_gs22
  636. zone: zone.home
  637. event: enter
  638. conditions:
  639. - type: is_connected
  640. condition: device
  641. device_id: dc3ba9cbe454a194ec13bc6bdb307d4b
  642. entity_id: 46e6c2193f6a3bddfd2cfa14d3173ff3
  643. domain: binary_sensor
  644. actions:
  645. - device_id: ef1e57e6a71e669f345a9ecfc90e4b2e
  646. domain: lock
  647. entity_id: 252bd657d098084010ac62dda1c9872c
  648. type: unlock
  649. mode: single
  650. - id: '1733714116753'
  651. alias: Turn off christmas treee
  652. description: ''
  653. triggers:
  654. - trigger: time
  655. at: 01:00:00
  656. conditions: []
  657. actions:
  658. - type: turn_off
  659. device_id: 76c0a0e894ff92aac3461429a5e5e0b6
  660. entity_id: ba2d753b350c4ef4d66a161a4a7cbdcb
  661. domain: switch
  662. metadata:
  663. secondary: false
  664. - action: cover.close_cover
  665. metadata: {}
  666. data: {}
  667. target:
  668. entity_id: cover.parlor_blinds
  669. mode: single
  670. - id: '1735557244096'
  671. alias: agent ai_down increment counter
  672. description: ''
  673. triggers:
  674. - trigger: mqtt
  675. topic: agent/system/ai_down
  676. conditions: []
  677. actions:
  678. - action: counter.increment
  679. metadata: {}
  680. data: {}
  681. target:
  682. entity_id: counter.agent_ai_down_failure_counter
  683. mode: single
  684. - id: '1736825165283'
  685. alias: set Noah is home
  686. description: ''
  687. triggers:
  688. - type: turned_on
  689. device_id: e3cc7933ccc0c72f2ecc8e1224737146
  690. entity_id: f781037a67686455a267bff0dd5c1347
  691. domain: light
  692. trigger: device
  693. for:
  694. hours: 0
  695. minutes: 30
  696. seconds: 0
  697. conditions: []
  698. actions:
  699. - action: input_boolean.turn_on
  700. metadata: {}
  701. data: {}
  702. target:
  703. entity_id: input_boolean.is_noah_home
  704. mode: single
  705. - id: '1736825774161'
  706. alias: 'set heat if Noah is home '
  707. description: ''
  708. triggers:
  709. - trigger: time
  710. at: 06:00:00
  711. conditions:
  712. - condition: state
  713. entity_id: input_boolean.is_noah_home
  714. state: 'on'
  715. - condition: numeric_state
  716. entity_id: sensor.kroc_temperature
  717. below: 55
  718. - condition: time
  719. weekday:
  720. - mon
  721. - tue
  722. - wed
  723. - thu
  724. - fri
  725. actions:
  726. - action: climate.set_temperature
  727. metadata: {}
  728. data:
  729. temperature: 70
  730. target:
  731. entity_id: climate.the_heat
  732. - action: input_boolean.turn_off
  733. metadata: {}
  734. data: {}
  735. target:
  736. entity_id: input_boolean.is_noah_home
  737. mode: single