automations.yaml 16 KB

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