Advertisement
Guest User

Untitled

a guest
Feb 1st, 2021
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 150.45 KB | None | 0 0
  1. [
  2. {
  3. "id": "8b8ffcc3.467b9",
  4. "type": "change",
  5. "z": "46e39e32.08f7c",
  6. "name": "PLex",
  7. "rules": [
  8. {
  9. "t": "set",
  10. "p": "payload",
  11. "pt": "msg",
  12. "to": "{\"data\":{\"entity_id\":\"media_player.plex_pc\"}}",
  13. "tot": "json"
  14. }
  15. ],
  16. "action": "",
  17. "property": "",
  18. "from": "",
  19. "to": "",
  20. "reg": false,
  21. "x": 2890,
  22. "y": 300,
  23. "wires": [
  24. [
  25. "fa8869e1.fe0638"
  26. ]
  27. ]
  28. },
  29. {
  30. "id": "dbeef4f8.15d1a8",
  31. "type": "api-current-state",
  32. "z": "46e39e32.08f7c",
  33. "name": "Plex",
  34. "server": "7ab5c227.a3ce8c",
  35. "version": 1,
  36. "outputs": 2,
  37. "halt_if": "(playing|paused)",
  38. "halt_if_type": "re",
  39. "halt_if_compare": "is",
  40. "override_topic": false,
  41. "entity_id": "media_player.plex_pc",
  42. "state_type": "str",
  43. "state_location": "",
  44. "override_payload": "none",
  45. "entity_location": "data.entity",
  46. "override_data": "msg",
  47. "blockInputOverrides": false,
  48. "x": 2870,
  49. "y": 340,
  50. "wires": [
  51. [
  52. "8b8ffcc3.467b9"
  53. ],
  54. [
  55. "501578cb.f99748"
  56. ]
  57. ]
  58. },
  59. {
  60. "id": "fa8869e1.fe0638",
  61. "type": "delay",
  62. "z": "46e39e32.08f7c",
  63. "name": "Action",
  64. "pauseType": "delay",
  65. "timeout": "0",
  66. "timeoutUnits": "milliseconds",
  67. "rate": "1",
  68. "nbRateUnits": "1",
  69. "rateUnits": "second",
  70. "randomFirst": "1",
  71. "randomLast": "5",
  72. "randomUnits": "seconds",
  73. "drop": false,
  74. "x": 3230,
  75. "y": 300,
  76. "wires": [
  77. [
  78. "bf8d147f.eed308"
  79. ]
  80. ]
  81. },
  82. {
  83. "id": "165fa286.fba5dd",
  84. "type": "api-current-state",
  85. "z": "46e39e32.08f7c",
  86. "name": "Display",
  87. "server": "7ab5c227.a3ce8c",
  88. "version": 1,
  89. "outputs": 2,
  90. "halt_if": "(playing|paused)",
  91. "halt_if_type": "re",
  92. "halt_if_compare": "is",
  93. "override_topic": false,
  94. "entity_id": "media_player.bedroom_display",
  95. "state_type": "str",
  96. "state_location": "",
  97. "override_payload": "none",
  98. "entity_location": "",
  99. "override_data": "none",
  100. "blockInputOverrides": false,
  101. "x": 2740,
  102. "y": 340,
  103. "wires": [
  104. [
  105. "ad7867f7.0b8b18"
  106. ],
  107. [
  108. "dbeef4f8.15d1a8"
  109. ]
  110. ]
  111. },
  112. {
  113. "id": "501578cb.f99748",
  114. "type": "api-current-state",
  115. "z": "46e39e32.08f7c",
  116. "name": "Roku",
  117. "server": "7ab5c227.a3ce8c",
  118. "version": 1,
  119. "outputs": 2,
  120. "halt_if": "(playing|paused)",
  121. "halt_if_type": "re",
  122. "halt_if_compare": "is",
  123. "override_topic": false,
  124. "entity_id": "media_player.bedroom_tv",
  125. "state_type": "str",
  126. "state_location": "",
  127. "override_payload": "none",
  128. "entity_location": "",
  129. "override_data": "none",
  130. "blockInputOverrides": false,
  131. "x": 3030,
  132. "y": 340,
  133. "wires": [
  134. [
  135. "82035a54.b967d8"
  136. ],
  137. [
  138. "613847e9.3c7ca8"
  139. ]
  140. ]
  141. },
  142. {
  143. "id": "99582b07.282088",
  144. "type": "change",
  145. "z": "46e39e32.08f7c",
  146. "name": "both Rooms",
  147. "rules": [
  148. {
  149. "t": "set",
  150. "p": "payload",
  151. "pt": "msg",
  152. "to": "{\"data\":{\"entity_id\":\"media_player.maxi_speakers\"}}",
  153. "tot": "json"
  154. }
  155. ],
  156. "action": "",
  157. "property": "",
  158. "from": "",
  159. "to": "",
  160. "reg": false,
  161. "x": 2290,
  162. "y": 300,
  163. "wires": [
  164. [
  165. "fa8869e1.fe0638"
  166. ]
  167. ]
  168. },
  169. {
  170. "id": "bf8d147f.eed308",
  171. "type": "delay",
  172. "z": "46e39e32.08f7c",
  173. "name": "Stuff Playing",
  174. "pauseType": "delay",
  175. "timeout": "0",
  176. "timeoutUnits": "milliseconds",
  177. "rate": "1",
  178. "nbRateUnits": "1",
  179. "rateUnits": "second",
  180. "randomFirst": "1",
  181. "randomLast": "5",
  182. "randomUnits": "seconds",
  183. "drop": false,
  184. "x": 3390,
  185. "y": 340,
  186. "wires": [
  187. [
  188. "a4d64c1f.b16a7"
  189. ]
  190. ]
  191. },
  192. {
  193. "id": "afdee323.46335",
  194. "type": "change",
  195. "z": "46e39e32.08f7c",
  196. "name": "Dungeon",
  197. "rules": [
  198. {
  199. "t": "set",
  200. "p": "payload",
  201. "pt": "msg",
  202. "to": "{\"data\":{\"entity_id\":\"media_player.dungeon_speaker\"}}",
  203. "tot": "json"
  204. }
  205. ],
  206. "action": "",
  207. "property": "",
  208. "from": "",
  209. "to": "",
  210. "reg": false,
  211. "x": 2580,
  212. "y": 300,
  213. "wires": [
  214. [
  215. "fa8869e1.fe0638"
  216. ]
  217. ]
  218. },
  219. {
  220. "id": "ad7867f7.0b8b18",
  221. "type": "change",
  222. "z": "46e39e32.08f7c",
  223. "name": "Display",
  224. "rules": [
  225. {
  226. "t": "set",
  227. "p": "payload",
  228. "pt": "msg",
  229. "to": "{\"data\":{\"entity_id\":\"media_player.bedroom_display\"}}",
  230. "tot": "json"
  231. }
  232. ],
  233. "action": "",
  234. "property": "",
  235. "from": "",
  236. "to": "",
  237. "reg": false,
  238. "x": 2740,
  239. "y": 300,
  240. "wires": [
  241. [
  242. "fa8869e1.fe0638"
  243. ]
  244. ]
  245. },
  246. {
  247. "id": "1908392a.b4d537",
  248. "type": "change",
  249. "z": "46e39e32.08f7c",
  250. "name": "Dungeon",
  251. "rules": [
  252. {
  253. "t": "set",
  254. "p": "payload",
  255. "pt": "msg",
  256. "to": "{\"data\":{\"entity_id\":\"media_player.bedroom_speaker\"}}",
  257. "tot": "json"
  258. }
  259. ],
  260. "action": "",
  261. "property": "",
  262. "from": "",
  263. "to": "",
  264. "reg": false,
  265. "x": 2440,
  266. "y": 300,
  267. "wires": [
  268. [
  269. "fa8869e1.fe0638"
  270. ]
  271. ]
  272. },
  273. {
  274. "id": "82035a54.b967d8",
  275. "type": "change",
  276. "z": "46e39e32.08f7c",
  277. "name": "Roku",
  278. "rules": [
  279. {
  280. "t": "set",
  281. "p": "payload",
  282. "pt": "msg",
  283. "to": "{\"data\":{\"entity_id\":\"media_player.bedroom_tv\"}}",
  284. "tot": "json"
  285. }
  286. ],
  287. "action": "",
  288. "property": "",
  289. "from": "",
  290. "to": "",
  291. "reg": false,
  292. "x": 3030,
  293. "y": 300,
  294. "wires": [
  295. [
  296. "fa8869e1.fe0638"
  297. ]
  298. ]
  299. },
  300. {
  301. "id": "c0b1b318.c3e62",
  302. "type": "api-current-state",
  303. "z": "46e39e32.08f7c",
  304. "name": "Dungeo?",
  305. "server": "7ab5c227.a3ce8c",
  306. "version": 1,
  307. "outputs": 2,
  308. "halt_if": "(playing|paused)",
  309. "halt_if_type": "re",
  310. "halt_if_compare": "is",
  311. "override_topic": false,
  312. "entity_id": "media_player.dungeon_speaker",
  313. "state_type": "str",
  314. "state_location": "",
  315. "override_payload": "none",
  316. "entity_location": "",
  317. "override_data": "none",
  318. "blockInputOverrides": false,
  319. "x": 2580,
  320. "y": 340,
  321. "wires": [
  322. [
  323. "afdee323.46335"
  324. ],
  325. [
  326. "165fa286.fba5dd"
  327. ]
  328. ]
  329. },
  330. {
  331. "id": "613847e9.3c7ca8",
  332. "type": "delay",
  333. "z": "46e39e32.08f7c",
  334. "name": "Lights",
  335. "pauseType": "delay",
  336. "timeout": "0",
  337. "timeoutUnits": "milliseconds",
  338. "rate": "1",
  339. "nbRateUnits": "1",
  340. "rateUnits": "second",
  341. "randomFirst": "1",
  342. "randomLast": "5",
  343. "randomUnits": "seconds",
  344. "drop": false,
  345. "x": 3230,
  346. "y": 340,
  347. "wires": [
  348. [
  349. "8c81653d.0b7c88"
  350. ]
  351. ]
  352. },
  353. {
  354. "id": "a83241f6.ace4f",
  355. "type": "api-current-state",
  356. "z": "46e39e32.08f7c",
  357. "name": "Both rooms",
  358. "server": "7ab5c227.a3ce8c",
  359. "version": 1,
  360. "outputs": 2,
  361. "halt_if": "(playing|paused)",
  362. "halt_if_type": "re",
  363. "halt_if_compare": "is",
  364. "override_topic": false,
  365. "entity_id": "media_player.maxi_speakers",
  366. "state_type": "str",
  367. "state_location": "",
  368. "override_payload": "none",
  369. "entity_location": "",
  370. "override_data": "none",
  371. "blockInputOverrides": false,
  372. "x": 2290,
  373. "y": 340,
  374. "wires": [
  375. [
  376. "99582b07.282088"
  377. ],
  378. [
  379. "e8c4a156.75f97"
  380. ]
  381. ]
  382. },
  383. {
  384. "id": "becb8694.d3b098",
  385. "type": "delay",
  386. "z": "46e39e32.08f7c",
  387. "name": "Action",
  388. "pauseType": "delay",
  389. "timeout": "0",
  390. "timeoutUnits": "milliseconds",
  391. "rate": "1",
  392. "nbRateUnits": "1",
  393. "rateUnits": "second",
  394. "randomFirst": "1",
  395. "randomLast": "5",
  396. "randomUnits": "seconds",
  397. "drop": false,
  398. "x": 3230,
  399. "y": 440,
  400. "wires": [
  401. [
  402. "bf8d147f.eed308"
  403. ]
  404. ]
  405. },
  406. {
  407. "id": "f6a9a063.0567f",
  408. "type": "delay",
  409. "z": "46e39e32.08f7c",
  410. "name": "Action",
  411. "pauseType": "delay",
  412. "timeout": "0",
  413. "timeoutUnits": "milliseconds",
  414. "rate": "1",
  415. "nbRateUnits": "1",
  416. "rateUnits": "second",
  417. "randomFirst": "1",
  418. "randomLast": "5",
  419. "randomUnits": "seconds",
  420. "drop": false,
  421. "x": 3090,
  422. "y": 1000,
  423. "wires": [
  424. [
  425. "bf8d147f.eed308"
  426. ]
  427. ]
  428. },
  429. {
  430. "id": "fc08064.bf0bdf8",
  431. "type": "delay",
  432. "z": "46e39e32.08f7c",
  433. "name": "Action",
  434. "pauseType": "delay",
  435. "timeout": "0",
  436. "timeoutUnits": "milliseconds",
  437. "rate": "1",
  438. "nbRateUnits": "1",
  439. "rateUnits": "second",
  440. "randomFirst": "1",
  441. "randomLast": "5",
  442. "randomUnits": "seconds",
  443. "drop": false,
  444. "x": 3100,
  445. "y": 1100,
  446. "wires": [
  447. [
  448. "bf8d147f.eed308"
  449. ]
  450. ]
  451. },
  452. {
  453. "id": "6d32d076.f6187",
  454. "type": "delay",
  455. "z": "46e39e32.08f7c",
  456. "name": "Action",
  457. "pauseType": "delay",
  458. "timeout": "0",
  459. "timeoutUnits": "milliseconds",
  460. "rate": "1",
  461. "nbRateUnits": "1",
  462. "rateUnits": "second",
  463. "randomFirst": "1",
  464. "randomLast": "5",
  465. "randomUnits": "seconds",
  466. "drop": false,
  467. "x": 3090,
  468. "y": 1200,
  469. "wires": [
  470. [
  471. "bf8d147f.eed308"
  472. ]
  473. ]
  474. },
  475. {
  476. "id": "6e2a7dda.55a634",
  477. "type": "delay",
  478. "z": "46e39e32.08f7c",
  479. "name": "Action",
  480. "pauseType": "delay",
  481. "timeout": "0",
  482. "timeoutUnits": "milliseconds",
  483. "rate": "1",
  484. "nbRateUnits": "1",
  485. "rateUnits": "second",
  486. "randomFirst": "1",
  487. "randomLast": "5",
  488. "randomUnits": "seconds",
  489. "drop": false,
  490. "x": 3090,
  491. "y": 1300,
  492. "wires": [
  493. [
  494. "bf8d147f.eed308"
  495. ]
  496. ]
  497. },
  498. {
  499. "id": "a4d64c1f.b16a7",
  500. "type": "change",
  501. "z": "46e39e32.08f7c",
  502. "name": "volume",
  503. "rules": [
  504. {
  505. "t": "move",
  506. "p": "data.entity.attributes.volume_level",
  507. "pt": "msg",
  508. "to": "volume",
  509. "tot": "msg"
  510. },
  511. {
  512. "t": "delete",
  513. "p": "data",
  514. "pt": "msg"
  515. }
  516. ],
  517. "action": "",
  518. "property": "",
  519. "from": "",
  520. "to": "",
  521. "reg": false,
  522. "x": 3560,
  523. "y": 340,
  524. "wires": [
  525. [
  526. "380eb0f4.46d5b"
  527. ]
  528. ]
  529. },
  530. {
  531. "id": "e8c4a156.75f97",
  532. "type": "api-current-state",
  533. "z": "46e39e32.08f7c",
  534. "name": "Bedroom",
  535. "server": "7ab5c227.a3ce8c",
  536. "version": 1,
  537. "outputs": 2,
  538. "halt_if": "(playing|paused)",
  539. "halt_if_type": "re",
  540. "halt_if_compare": "is",
  541. "override_topic": false,
  542. "entity_id": "media_player.bedroom_speaker",
  543. "state_type": "str",
  544. "state_location": "",
  545. "override_payload": "none",
  546. "entity_location": "",
  547. "override_data": "none",
  548. "blockInputOverrides": false,
  549. "x": 2440,
  550. "y": 340,
  551. "wires": [
  552. [
  553. "1908392a.b4d537"
  554. ],
  555. [
  556. "c0b1b318.c3e62"
  557. ]
  558. ]
  559. },
  560. {
  561. "id": "8c81653d.0b7c88",
  562. "type": "delay",
  563. "z": "46e39e32.08f7c",
  564. "name": "nothing playing",
  565. "pauseType": "delay",
  566. "timeout": "0",
  567. "timeoutUnits": "milliseconds",
  568. "rate": "1",
  569. "nbRateUnits": "1",
  570. "rateUnits": "second",
  571. "randomFirst": "1",
  572. "randomLast": "5",
  573. "randomUnits": "seconds",
  574. "drop": false,
  575. "x": 3400,
  576. "y": 1100,
  577. "wires": [
  578. [
  579. "815f8d4d.b5bd9"
  580. ]
  581. ]
  582. },
  583. {
  584. "id": "58944673.8019b8",
  585. "type": "switch",
  586. "z": "46e39e32.08f7c",
  587. "name": "Where?",
  588. "property": "location",
  589. "propertyType": "msg",
  590. "rules": [
  591. {
  592. "t": "cont",
  593. "v": "Bedroom",
  594. "vt": "str"
  595. },
  596. {
  597. "t": "cont",
  598. "v": "not_home",
  599. "vt": "str"
  600. },
  601. {
  602. "t": "cont",
  603. "v": "Hotbox",
  604. "vt": "str"
  605. },
  606. {
  607. "t": "cont",
  608. "v": "Chilling",
  609. "vt": "str"
  610. },
  611. {
  612. "t": "cont",
  613. "v": "Kitchen",
  614. "vt": "str"
  615. },
  616. {
  617. "t": "cont",
  618. "v": "Closet",
  619. "vt": "str"
  620. },
  621. {
  622. "t": "cont",
  623. "v": "Bathroom",
  624. "vt": "str"
  625. }
  626. ],
  627. "checkall": "false",
  628. "repair": false,
  629. "outputs": 7,
  630. "x": 2170,
  631. "y": 660,
  632. "wires": [
  633. [
  634. "a83241f6.ace4f",
  635. "c84edc8c.52c5e"
  636. ],
  637. [
  638. "a83241f6.ace4f",
  639. "c84edc8c.52c5e"
  640. ],
  641. [
  642. "32633207.47694e"
  643. ],
  644. [
  645. "ed6ab016.fa7f5",
  646. "43419fc4.a047c",
  647. "1df0e39a.ee5d4c"
  648. ],
  649. [
  650. "cec3d41c.2f1a88"
  651. ],
  652. [
  653. "cf936fd8.a4a0f"
  654. ],
  655. [
  656. "d5abf5aa.20f1e8"
  657. ]
  658. ]
  659. },
  660. {
  661. "id": "e1983d06.4b18f",
  662. "type": "change",
  663. "z": "46e39e32.08f7c",
  664. "name": "HotboxSTop",
  665. "rules": [
  666. {
  667. "t": "set",
  668. "p": "payload",
  669. "pt": "msg",
  670. "to": "{\"data\":{\"entity_id\":\"media_player.hotbox_speaker\"}}",
  671. "tot": "json"
  672. }
  673. ],
  674. "action": "",
  675. "property": "",
  676. "from": "",
  677. "to": "",
  678. "reg": false,
  679. "x": 2410,
  680. "y": 440,
  681. "wires": [
  682. [
  683. "becb8694.d3b098"
  684. ]
  685. ]
  686. },
  687. {
  688. "id": "e3cf27b9.b169a8",
  689. "type": "change",
  690. "z": "46e39e32.08f7c",
  691. "name": "HotboxSDown",
  692. "rules": [
  693. {
  694. "t": "set",
  695. "p": "payload",
  696. "pt": "msg",
  697. "to": "{\"data\":{\"entity_id\":\"media_player.hotbox_speaker_down\"}}",
  698. "tot": "json"
  699. }
  700. ],
  701. "action": "",
  702. "property": "",
  703. "from": "",
  704. "to": "",
  705. "reg": false,
  706. "x": 2580,
  707. "y": 440,
  708. "wires": [
  709. [
  710. "becb8694.d3b098"
  711. ]
  712. ]
  713. },
  714. {
  715. "id": "b644dcf4.52f0c",
  716. "type": "change",
  717. "z": "46e39e32.08f7c",
  718. "name": "HotboxTVT",
  719. "rules": [
  720. {
  721. "t": "set",
  722. "p": "payload",
  723. "pt": "msg",
  724. "to": "{\"data\":{\"entity_id\":\"media_player.hotbox_tv\"}}",
  725. "tot": "json"
  726. }
  727. ],
  728. "action": "",
  729. "property": "",
  730. "from": "",
  731. "to": "",
  732. "reg": false,
  733. "x": 2750,
  734. "y": 440,
  735. "wires": [
  736. [
  737. "becb8694.d3b098"
  738. ]
  739. ]
  740. },
  741. {
  742. "id": "e7b98861.a33848",
  743. "type": "change",
  744. "z": "46e39e32.08f7c",
  745. "name": "HotboxTVD",
  746. "rules": [
  747. {
  748. "t": "set",
  749. "p": "payload",
  750. "pt": "msg",
  751. "to": "{\"data\":{\"entity_id\":\"media_player.hotbox_tv_down\"}}",
  752. "tot": "json"
  753. }
  754. ],
  755. "action": "",
  756. "property": "",
  757. "from": "",
  758. "to": "",
  759. "reg": false,
  760. "x": 2930,
  761. "y": 440,
  762. "wires": [
  763. [
  764. "becb8694.d3b098"
  765. ]
  766. ]
  767. },
  768. {
  769. "id": "f4699eff.db136",
  770. "type": "change",
  771. "z": "46e39e32.08f7c",
  772. "name": "HotboxSTop",
  773. "rules": [
  774. {
  775. "t": "set",
  776. "p": "payload",
  777. "pt": "msg",
  778. "to": "{\"data\":{\"entity_id\":\"media_player.hotbox_speaker\"}}",
  779. "tot": "json"
  780. }
  781. ],
  782. "action": "",
  783. "property": "",
  784. "from": "",
  785. "to": "",
  786. "reg": false,
  787. "x": 2710,
  788. "y": 600,
  789. "wires": [
  790. [
  791. "becb8694.d3b098"
  792. ]
  793. ]
  794. },
  795. {
  796. "id": "29c5a475.a4314c",
  797. "type": "change",
  798. "z": "46e39e32.08f7c",
  799. "name": "HotboxTVT",
  800. "rules": [
  801. {
  802. "t": "set",
  803. "p": "payload",
  804. "pt": "msg",
  805. "to": "{\"data\":{\"entity_id\":\"media_player.hotbox_tv\"}}",
  806. "tot": "json"
  807. }
  808. ],
  809. "action": "",
  810. "property": "",
  811. "from": "",
  812. "to": "",
  813. "reg": false,
  814. "x": 2890,
  815. "y": 600,
  816. "wires": [
  817. [
  818. "becb8694.d3b098"
  819. ]
  820. ]
  821. },
  822. {
  823. "id": "688b05ca.2671bc",
  824. "type": "change",
  825. "z": "46e39e32.08f7c",
  826. "name": "HotboxSDown",
  827. "rules": [
  828. {
  829. "t": "set",
  830. "p": "payload",
  831. "pt": "msg",
  832. "to": "{\"data\":{\"entity_id\":\"media_player.hotbox_speaker_down\"}}",
  833. "tot": "json"
  834. }
  835. ],
  836. "action": "",
  837. "property": "",
  838. "from": "",
  839. "to": "",
  840. "reg": false,
  841. "x": 2720,
  842. "y": 520,
  843. "wires": [
  844. [
  845. "becb8694.d3b098"
  846. ]
  847. ]
  848. },
  849. {
  850. "id": "c583c18.bf4a34",
  851. "type": "change",
  852. "z": "46e39e32.08f7c",
  853. "name": "HotboxTVD",
  854. "rules": [
  855. {
  856. "t": "set",
  857. "p": "payload",
  858. "pt": "msg",
  859. "to": "{\"data\":{\"entity_id\":\"media_player.hotbox_tv_down\"}}",
  860. "tot": "json"
  861. }
  862. ],
  863. "action": "",
  864. "property": "",
  865. "from": "",
  866. "to": "",
  867. "reg": false,
  868. "x": 2930,
  869. "y": 520,
  870. "wires": [
  871. [
  872. "becb8694.d3b098"
  873. ]
  874. ]
  875. },
  876. {
  877. "id": "a4b73953.aa8ec8",
  878. "type": "change",
  879. "z": "46e39e32.08f7c",
  880. "name": "Roku",
  881. "rules": [
  882. {
  883. "t": "set",
  884. "p": "payload",
  885. "pt": "msg",
  886. "to": "{\"data\":{\"entity_id\":\"media_player.roku\"}}",
  887. "tot": "json"
  888. }
  889. ],
  890. "action": "",
  891. "property": "",
  892. "from": "",
  893. "to": "",
  894. "reg": false,
  895. "x": 3090,
  896. "y": 440,
  897. "wires": [
  898. [
  899. "becb8694.d3b098"
  900. ]
  901. ]
  902. },
  903. {
  904. "id": "461bf4da.2bfcbc",
  905. "type": "change",
  906. "z": "46e39e32.08f7c",
  907. "name": "Roku",
  908. "rules": [
  909. {
  910. "t": "set",
  911. "p": "payload",
  912. "pt": "msg",
  913. "to": "{\"data\":{\"entity_id\":\"media_player.roku\"}}",
  914. "tot": "json"
  915. }
  916. ],
  917. "action": "",
  918. "property": "",
  919. "from": "",
  920. "to": "",
  921. "reg": false,
  922. "x": 3070,
  923. "y": 600,
  924. "wires": [
  925. [
  926. "becb8694.d3b098"
  927. ]
  928. ]
  929. },
  930. {
  931. "id": "b9f498ae.ccb158",
  932. "type": "change",
  933. "z": "46e39e32.08f7c",
  934. "name": "set entity",
  935. "rules": [
  936. {
  937. "t": "set",
  938. "p": "payload",
  939. "pt": "msg",
  940. "to": "{\"data\":{\"entity_id\":\"media_player.living_room_window\"}}",
  941. "tot": "json"
  942. }
  943. ],
  944. "action": "",
  945. "property": "",
  946. "from": "",
  947. "to": "",
  948. "reg": false,
  949. "x": 2240,
  950. "y": 1000,
  951. "wires": [
  952. [
  953. "f6a9a063.0567f"
  954. ]
  955. ]
  956. },
  957. {
  958. "id": "38f0ae28.061012",
  959. "type": "change",
  960. "z": "46e39e32.08f7c",
  961. "name": "set entity",
  962. "rules": [
  963. {
  964. "t": "set",
  965. "p": "payload",
  966. "pt": "msg",
  967. "to": "{\"data\":{\"entity_id\":\"media_player.living_room_speaker\"}}",
  968. "tot": "json"
  969. }
  970. ],
  971. "action": "",
  972. "property": "",
  973. "from": "",
  974. "to": "",
  975. "reg": false,
  976. "x": 2420,
  977. "y": 1000,
  978. "wires": [
  979. [
  980. "f6a9a063.0567f"
  981. ]
  982. ]
  983. },
  984. {
  985. "id": "157f2091.abfbdf",
  986. "type": "change",
  987. "z": "46e39e32.08f7c",
  988. "name": "set entity",
  989. "rules": [
  990. {
  991. "t": "set",
  992. "p": "payload",
  993. "pt": "msg",
  994. "to": "{\"data\":{\"entity_id\":\"media_player.living_room_tv\"}}",
  995. "tot": "json"
  996. }
  997. ],
  998. "action": "",
  999. "property": "",
  1000. "from": "",
  1001. "to": "",
  1002. "reg": false,
  1003. "x": 2640,
  1004. "y": 1000,
  1005. "wires": [
  1006. [
  1007. "f6a9a063.0567f"
  1008. ]
  1009. ]
  1010. },
  1011. {
  1012. "id": "459e522f.42507c",
  1013. "type": "change",
  1014. "z": "46e39e32.08f7c",
  1015. "name": "set entity",
  1016. "rules": [
  1017. {
  1018. "t": "set",
  1019. "p": "payload",
  1020. "pt": "msg",
  1021. "to": "{\"data\":{\"entity_id\":\"media_player.kitchen_speaker\"}}",
  1022. "tot": "json"
  1023. }
  1024. ],
  1025. "action": "",
  1026. "property": "",
  1027. "from": "",
  1028. "to": "",
  1029. "reg": false,
  1030. "x": 2240,
  1031. "y": 1100,
  1032. "wires": [
  1033. [
  1034. "fc08064.bf0bdf8"
  1035. ]
  1036. ]
  1037. },
  1038. {
  1039. "id": "1b166fa9.d1964",
  1040. "type": "change",
  1041. "z": "46e39e32.08f7c",
  1042. "name": "set entity",
  1043. "rules": [
  1044. {
  1045. "t": "set",
  1046. "p": "payload",
  1047. "pt": "msg",
  1048. "to": "{\"data\":{\"entity_id\":\"media_player.closet_speaker\"}}",
  1049. "tot": "json"
  1050. }
  1051. ],
  1052. "action": "",
  1053. "property": "",
  1054. "from": "",
  1055. "to": "",
  1056. "reg": false,
  1057. "x": 2240,
  1058. "y": 1200,
  1059. "wires": [
  1060. [
  1061. "6d32d076.f6187"
  1062. ]
  1063. ]
  1064. },
  1065. {
  1066. "id": "ad504b33.956eb8",
  1067. "type": "change",
  1068. "z": "46e39e32.08f7c",
  1069. "name": "set entity",
  1070. "rules": [
  1071. {
  1072. "t": "set",
  1073. "p": "payload",
  1074. "pt": "msg",
  1075. "to": "{\"data\":{\"entity_id\":\"media_player.hotbox_speaker_down.dungeon_speaker\"}}",
  1076. "tot": "json"
  1077. }
  1078. ],
  1079. "action": "",
  1080. "property": "",
  1081. "from": "",
  1082. "to": "",
  1083. "reg": false,
  1084. "x": 2420,
  1085. "y": 1200,
  1086. "wires": [
  1087. [
  1088. "6d32d076.f6187"
  1089. ]
  1090. ]
  1091. },
  1092. {
  1093. "id": "ce59b70e.4b5178",
  1094. "type": "change",
  1095. "z": "46e39e32.08f7c",
  1096. "name": "set entity",
  1097. "rules": [
  1098. {
  1099. "t": "set",
  1100. "p": "payload",
  1101. "pt": "msg",
  1102. "to": "{\"data\":{\"entity_id\":\"media_player.bathroom_speaker\"}}",
  1103. "tot": "json"
  1104. }
  1105. ],
  1106. "action": "",
  1107. "property": "",
  1108. "from": "",
  1109. "to": "",
  1110. "reg": false,
  1111. "x": 2220,
  1112. "y": 1300,
  1113. "wires": [
  1114. [
  1115. "6e2a7dda.55a634"
  1116. ]
  1117. ]
  1118. },
  1119. {
  1120. "id": "380eb0f4.46d5b",
  1121. "type": "switch",
  1122. "z": "46e39e32.08f7c",
  1123. "name": "Actions",
  1124. "property": "command",
  1125. "propertyType": "msg",
  1126. "rules": [
  1127. {
  1128. "t": "cont",
  1129. "v": "on",
  1130. "vt": "str"
  1131. },
  1132. {
  1133. "t": "cont",
  1134. "v": "up",
  1135. "vt": "str"
  1136. },
  1137. {
  1138. "t": "cont",
  1139. "v": "down",
  1140. "vt": "str"
  1141. },
  1142. {
  1143. "t": "cont",
  1144. "v": "off",
  1145. "vt": "str"
  1146. }
  1147. ],
  1148. "checkall": "false",
  1149. "repair": true,
  1150. "outputs": 4,
  1151. "x": 3740,
  1152. "y": 340,
  1153. "wires": [
  1154. [
  1155. "9292ccd3.5d17f"
  1156. ],
  1157. [
  1158. "d05df524.bb0ad8"
  1159. ],
  1160. [
  1161. "7abdae71.6aaff"
  1162. ],
  1163. [
  1164. "5413f7fe.93df88"
  1165. ]
  1166. ]
  1167. },
  1168. {
  1169. "id": "8afe0c49.073d1",
  1170. "type": "delay",
  1171. "z": "46e39e32.08f7c",
  1172. "name": "Lights",
  1173. "pauseType": "delay",
  1174. "timeout": "0",
  1175. "timeoutUnits": "milliseconds",
  1176. "rate": "1",
  1177. "nbRateUnits": "1",
  1178. "rateUnits": "second",
  1179. "randomFirst": "1",
  1180. "randomLast": "5",
  1181. "randomUnits": "seconds",
  1182. "drop": false,
  1183. "x": 3100,
  1184. "y": 1140,
  1185. "wires": [
  1186. [
  1187. "8c81653d.0b7c88"
  1188. ]
  1189. ]
  1190. },
  1191. {
  1192. "id": "c42d9cb0.aa6a6",
  1193. "type": "delay",
  1194. "z": "46e39e32.08f7c",
  1195. "name": "Lights",
  1196. "pauseType": "delay",
  1197. "timeout": "0",
  1198. "timeoutUnits": "milliseconds",
  1199. "rate": "1",
  1200. "nbRateUnits": "1",
  1201. "rateUnits": "second",
  1202. "randomFirst": "1",
  1203. "randomLast": "5",
  1204. "randomUnits": "seconds",
  1205. "drop": false,
  1206. "x": 3090,
  1207. "y": 1340,
  1208. "wires": [
  1209. [
  1210. "8c81653d.0b7c88"
  1211. ]
  1212. ]
  1213. },
  1214. {
  1215. "id": "2f9b9fe0.c32d6",
  1216. "type": "delay",
  1217. "z": "46e39e32.08f7c",
  1218. "name": "Lights",
  1219. "pauseType": "delay",
  1220. "timeout": "0",
  1221. "timeoutUnits": "milliseconds",
  1222. "rate": "1",
  1223. "nbRateUnits": "1",
  1224. "rateUnits": "second",
  1225. "randomFirst": "1",
  1226. "randomLast": "5",
  1227. "randomUnits": "seconds",
  1228. "drop": false,
  1229. "x": 3090,
  1230. "y": 1240,
  1231. "wires": [
  1232. [
  1233. "8c81653d.0b7c88"
  1234. ]
  1235. ]
  1236. },
  1237. {
  1238. "id": "1a0b95d.f24b26a",
  1239. "type": "delay",
  1240. "z": "46e39e32.08f7c",
  1241. "name": "Lights",
  1242. "pauseType": "delay",
  1243. "timeout": "0",
  1244. "timeoutUnits": "milliseconds",
  1245. "rate": "1",
  1246. "nbRateUnits": "1",
  1247. "rateUnits": "second",
  1248. "randomFirst": "1",
  1249. "randomLast": "5",
  1250. "randomUnits": "seconds",
  1251. "drop": false,
  1252. "x": 3100,
  1253. "y": 1040,
  1254. "wires": [
  1255. [
  1256. "8c81653d.0b7c88"
  1257. ]
  1258. ]
  1259. },
  1260. {
  1261. "id": "1847241a.19284c",
  1262. "type": "delay",
  1263. "z": "46e39e32.08f7c",
  1264. "name": "Lights",
  1265. "pauseType": "delay",
  1266. "timeout": "0",
  1267. "timeoutUnits": "milliseconds",
  1268. "rate": "1",
  1269. "nbRateUnits": "1",
  1270. "rateUnits": "second",
  1271. "randomFirst": "1",
  1272. "randomLast": "5",
  1273. "randomUnits": "seconds",
  1274. "drop": false,
  1275. "x": 3230,
  1276. "y": 480,
  1277. "wires": [
  1278. [
  1279. "8c81653d.0b7c88"
  1280. ]
  1281. ]
  1282. },
  1283. {
  1284. "id": "815f8d4d.b5bd9",
  1285. "type": "switch",
  1286. "z": "46e39e32.08f7c",
  1287. "name": "presses",
  1288. "property": "pressamount",
  1289. "propertyType": "msg",
  1290. "rules": [
  1291. {
  1292. "t": "eq",
  1293. "v": "1",
  1294. "vt": "num"
  1295. },
  1296. {
  1297. "t": "eq",
  1298. "v": "2",
  1299. "vt": "num"
  1300. },
  1301. {
  1302. "t": "eq",
  1303. "v": "3",
  1304. "vt": "num"
  1305. }
  1306. ],
  1307. "checkall": "false",
  1308. "repair": true,
  1309. "outputs": 3,
  1310. "x": 3580,
  1311. "y": 1100,
  1312. "wires": [
  1313. [
  1314. "a8afe648.833238"
  1315. ],
  1316. [
  1317. "d15ff149.ba291"
  1318. ],
  1319. [
  1320. "a2848aef.cb5118"
  1321. ]
  1322. ]
  1323. },
  1324. {
  1325. "id": "d8589f7e.38d6",
  1326. "type": "delay",
  1327. "z": "46e39e32.08f7c",
  1328. "name": "",
  1329. "pauseType": "delay",
  1330. "timeout": "1",
  1331. "timeoutUnits": "milliseconds",
  1332. "rate": "1",
  1333. "nbRateUnits": "1",
  1334. "rateUnits": "second",
  1335. "randomFirst": "1",
  1336. "randomLast": "5",
  1337. "randomUnits": "seconds",
  1338. "drop": false,
  1339. "x": 2020,
  1340. "y": 660,
  1341. "wires": [
  1342. [
  1343. "58944673.8019b8"
  1344. ]
  1345. ]
  1346. },
  1347. {
  1348. "id": "c84edc8c.52c5e",
  1349. "type": "switch",
  1350. "z": "46e39e32.08f7c",
  1351. "name": "Actions",
  1352. "property": "command",
  1353. "propertyType": "msg",
  1354. "rules": [
  1355. {
  1356. "t": "cont",
  1357. "v": "on",
  1358. "vt": "str"
  1359. },
  1360. {
  1361. "t": "cont",
  1362. "v": "off",
  1363. "vt": "str"
  1364. }
  1365. ],
  1366. "checkall": "false",
  1367. "repair": true,
  1368. "outputs": 2,
  1369. "x": 2420,
  1370. "y": 180,
  1371. "wires": [
  1372. [
  1373. "887803a3.9af6f"
  1374. ],
  1375. [
  1376. "eaf65744.949118"
  1377. ]
  1378. ]
  1379. },
  1380. {
  1381. "id": "32633207.47694e",
  1382. "type": "api-current-state",
  1383. "z": "46e39e32.08f7c",
  1384. "name": "Hotbox All",
  1385. "server": "7ab5c227.a3ce8c",
  1386. "version": 1,
  1387. "outputs": 2,
  1388. "halt_if": "on",
  1389. "halt_if_type": "str",
  1390. "halt_if_compare": "is",
  1391. "override_topic": false,
  1392. "entity_id": "binary_sensor.hotbox_all_motion",
  1393. "state_type": "str",
  1394. "state_location": "",
  1395. "override_payload": "none",
  1396. "entity_location": "",
  1397. "override_data": "none",
  1398. "blockInputOverrides": false,
  1399. "x": 2200,
  1400. "y": 560,
  1401. "wires": [
  1402. [
  1403. "2e57ea9d.2837e6"
  1404. ],
  1405. [
  1406. "d4a79ce.db00f6",
  1407. "7582dfa3.ed92d",
  1408. "151006a4.523109"
  1409. ]
  1410. ]
  1411. },
  1412. {
  1413. "id": "ed6ab016.fa7f5",
  1414. "type": "api-current-state",
  1415. "z": "46e39e32.08f7c",
  1416. "name": "LVSpeakerW",
  1417. "server": "7ab5c227.a3ce8c",
  1418. "version": 1,
  1419. "outputs": 2,
  1420. "halt_if": "(playing|paused)",
  1421. "halt_if_type": "re",
  1422. "halt_if_compare": "is",
  1423. "override_topic": false,
  1424. "entity_id": "media_player.living_room_window",
  1425. "state_type": "str",
  1426. "state_location": "",
  1427. "override_payload": "none",
  1428. "entity_location": "",
  1429. "override_data": "none",
  1430. "blockInputOverrides": false,
  1431. "x": 2230,
  1432. "y": 1040,
  1433. "wires": [
  1434. [
  1435. "b9f498ae.ccb158"
  1436. ],
  1437. [
  1438. "eb2914bb.f98598"
  1439. ]
  1440. ]
  1441. },
  1442. {
  1443. "id": "43419fc4.a047c",
  1444. "type": "switch",
  1445. "z": "46e39e32.08f7c",
  1446. "name": "Actions",
  1447. "property": "command",
  1448. "propertyType": "msg",
  1449. "rules": [
  1450. {
  1451. "t": "cont",
  1452. "v": "on",
  1453. "vt": "str"
  1454. },
  1455. {
  1456. "t": "cont",
  1457. "v": "off",
  1458. "vt": "str"
  1459. }
  1460. ],
  1461. "checkall": "false",
  1462. "repair": true,
  1463. "outputs": 2,
  1464. "x": 2150,
  1465. "y": 1480,
  1466. "wires": [
  1467. [
  1468. "9b7a80ec.188d7"
  1469. ],
  1470. [
  1471. "9e0ee08c.cd185"
  1472. ]
  1473. ]
  1474. },
  1475. {
  1476. "id": "1df0e39a.ee5d4c",
  1477. "type": "switch",
  1478. "z": "46e39e32.08f7c",
  1479. "name": "Actions",
  1480. "property": "command",
  1481. "propertyType": "msg",
  1482. "rules": [
  1483. {
  1484. "t": "cont",
  1485. "v": "on",
  1486. "vt": "str"
  1487. },
  1488. {
  1489. "t": "cont",
  1490. "v": "off",
  1491. "vt": "str"
  1492. }
  1493. ],
  1494. "checkall": "false",
  1495. "repair": true,
  1496. "outputs": 2,
  1497. "x": 2340,
  1498. "y": 900,
  1499. "wires": [
  1500. [
  1501. "570a263e.496d58"
  1502. ],
  1503. [
  1504. "c3df8b12.86f828"
  1505. ]
  1506. ]
  1507. },
  1508. {
  1509. "id": "cec3d41c.2f1a88",
  1510. "type": "api-current-state",
  1511. "z": "46e39e32.08f7c",
  1512. "name": "KitchenSpeaker",
  1513. "server": "7ab5c227.a3ce8c",
  1514. "version": 1,
  1515. "outputs": 2,
  1516. "halt_if": "(playing|paused)",
  1517. "halt_if_type": "re",
  1518. "halt_if_compare": "is",
  1519. "override_topic": false,
  1520. "entity_id": "media_player.kitchen_speaker",
  1521. "state_type": "str",
  1522. "state_location": "",
  1523. "override_payload": "none",
  1524. "entity_location": "",
  1525. "override_data": "none",
  1526. "blockInputOverrides": false,
  1527. "x": 2240,
  1528. "y": 1140,
  1529. "wires": [
  1530. [
  1531. "459e522f.42507c"
  1532. ],
  1533. [
  1534. "8afe0c49.073d1"
  1535. ]
  1536. ]
  1537. },
  1538. {
  1539. "id": "cf936fd8.a4a0f",
  1540. "type": "api-current-state",
  1541. "z": "46e39e32.08f7c",
  1542. "name": "ClosetS",
  1543. "server": "7ab5c227.a3ce8c",
  1544. "version": 1,
  1545. "outputs": 2,
  1546. "halt_if": "(playing|paused)",
  1547. "halt_if_type": "re",
  1548. "halt_if_compare": "is",
  1549. "override_topic": false,
  1550. "entity_id": "media_player.closet_speaker",
  1551. "state_type": "str",
  1552. "state_location": "",
  1553. "override_payload": "none",
  1554. "entity_location": "",
  1555. "override_data": "none",
  1556. "blockInputOverrides": false,
  1557. "x": 2220,
  1558. "y": 1240,
  1559. "wires": [
  1560. [
  1561. "1b166fa9.d1964"
  1562. ],
  1563. [
  1564. "52432988.03c1f8"
  1565. ]
  1566. ]
  1567. },
  1568. {
  1569. "id": "d5abf5aa.20f1e8",
  1570. "type": "api-current-state",
  1571. "z": "46e39e32.08f7c",
  1572. "name": "BAthroomS",
  1573. "server": "7ab5c227.a3ce8c",
  1574. "version": 1,
  1575. "outputs": 2,
  1576. "halt_if": "(playing|paused)",
  1577. "halt_if_type": "re",
  1578. "halt_if_compare": "is",
  1579. "override_topic": false,
  1580. "entity_id": "media_player.bathroom_speaker",
  1581. "state_type": "str",
  1582. "state_location": "",
  1583. "override_payload": "none",
  1584. "entity_location": "",
  1585. "override_data": "none",
  1586. "blockInputOverrides": false,
  1587. "x": 2210,
  1588. "y": 1340,
  1589. "wires": [
  1590. [
  1591. "ce59b70e.4b5178"
  1592. ],
  1593. [
  1594. "c42d9cb0.aa6a6"
  1595. ]
  1596. ]
  1597. },
  1598. {
  1599. "id": "2e57ea9d.2837e6",
  1600. "type": "api-current-state",
  1601. "z": "46e39e32.08f7c",
  1602. "name": "HotboxStop",
  1603. "server": "7ab5c227.a3ce8c",
  1604. "version": 1,
  1605. "outputs": 2,
  1606. "halt_if": "(playing|paused)",
  1607. "halt_if_type": "re",
  1608. "halt_if_compare": "is",
  1609. "override_topic": false,
  1610. "entity_id": "media_player.hotbox_speaker",
  1611. "state_type": "str",
  1612. "state_location": "",
  1613. "override_payload": "none",
  1614. "entity_location": "",
  1615. "override_data": "none",
  1616. "blockInputOverrides": false,
  1617. "x": 2410,
  1618. "y": 480,
  1619. "wires": [
  1620. [
  1621. "e1983d06.4b18f"
  1622. ],
  1623. [
  1624. "f2f8009.74b"
  1625. ]
  1626. ]
  1627. },
  1628. {
  1629. "id": "f2f8009.74b",
  1630. "type": "api-current-state",
  1631. "z": "46e39e32.08f7c",
  1632. "name": "HotboxSdown",
  1633. "server": "7ab5c227.a3ce8c",
  1634. "version": 1,
  1635. "outputs": 2,
  1636. "halt_if": "(playing|paused)",
  1637. "halt_if_type": "re",
  1638. "halt_if_compare": "is",
  1639. "override_topic": false,
  1640. "entity_id": "media_player.hotbox_speaker_down",
  1641. "state_type": "str",
  1642. "state_location": "",
  1643. "override_payload": "none",
  1644. "entity_location": "",
  1645. "override_data": "none",
  1646. "blockInputOverrides": false,
  1647. "x": 2580,
  1648. "y": 480,
  1649. "wires": [
  1650. [
  1651. "e3cf27b9.b169a8"
  1652. ],
  1653. [
  1654. "2418ecf3.14add4"
  1655. ]
  1656. ]
  1657. },
  1658. {
  1659. "id": "2418ecf3.14add4",
  1660. "type": "api-current-state",
  1661. "z": "46e39e32.08f7c",
  1662. "name": "HotboxTVT",
  1663. "server": "7ab5c227.a3ce8c",
  1664. "version": 1,
  1665. "outputs": 2,
  1666. "halt_if": "(playing|paused)",
  1667. "halt_if_type": "re",
  1668. "halt_if_compare": "is",
  1669. "override_topic": false,
  1670. "entity_id": "media_player.hotbox_tv",
  1671. "state_type": "str",
  1672. "state_location": "",
  1673. "override_payload": "none",
  1674. "entity_location": "data.entity",
  1675. "override_data": "msg",
  1676. "blockInputOverrides": false,
  1677. "x": 2750,
  1678. "y": 480,
  1679. "wires": [
  1680. [
  1681. "b644dcf4.52f0c"
  1682. ],
  1683. [
  1684. "baa63bd6.fbe8c8"
  1685. ]
  1686. ]
  1687. },
  1688. {
  1689. "id": "baa63bd6.fbe8c8",
  1690. "type": "api-current-state",
  1691. "z": "46e39e32.08f7c",
  1692. "name": "HotboxTVD",
  1693. "server": "7ab5c227.a3ce8c",
  1694. "version": 1,
  1695. "outputs": 2,
  1696. "halt_if": "(playing|paused)",
  1697. "halt_if_type": "re",
  1698. "halt_if_compare": "is",
  1699. "override_topic": false,
  1700. "entity_id": "media_player.hotbox_tv_down",
  1701. "state_type": "str",
  1702. "state_location": "",
  1703. "override_payload": "none",
  1704. "entity_location": "",
  1705. "override_data": "none",
  1706. "blockInputOverrides": false,
  1707. "x": 2910,
  1708. "y": 480,
  1709. "wires": [
  1710. [
  1711. "e7b98861.a33848"
  1712. ],
  1713. [
  1714. "6e5045.08410fbc"
  1715. ]
  1716. ]
  1717. },
  1718. {
  1719. "id": "658eca70.c7f084",
  1720. "type": "api-current-state",
  1721. "z": "46e39e32.08f7c",
  1722. "name": "HotboxStop",
  1723. "server": "7ab5c227.a3ce8c",
  1724. "version": 1,
  1725. "outputs": 2,
  1726. "halt_if": "(playing|paused)",
  1727. "halt_if_type": "re",
  1728. "halt_if_compare": "is",
  1729. "override_topic": false,
  1730. "entity_id": "media_player.hotbox_speaker",
  1731. "state_type": "str",
  1732. "state_location": "",
  1733. "override_payload": "none",
  1734. "entity_location": "",
  1735. "override_data": "none",
  1736. "blockInputOverrides": false,
  1737. "x": 2690,
  1738. "y": 640,
  1739. "wires": [
  1740. [
  1741. "f4699eff.db136"
  1742. ],
  1743. [
  1744. "21d68760.b1e8d8"
  1745. ]
  1746. ]
  1747. },
  1748. {
  1749. "id": "21d68760.b1e8d8",
  1750. "type": "api-current-state",
  1751. "z": "46e39e32.08f7c",
  1752. "name": "HotboxTVT",
  1753. "server": "7ab5c227.a3ce8c",
  1754. "version": 1,
  1755. "outputs": 2,
  1756. "halt_if": "(playing|paused)",
  1757. "halt_if_type": "re",
  1758. "halt_if_compare": "is",
  1759. "override_topic": false,
  1760. "entity_id": "media_player.hotbox_tv",
  1761. "state_type": "str",
  1762. "state_location": "",
  1763. "override_payload": "none",
  1764. "entity_location": "data.entity",
  1765. "override_data": "msg",
  1766. "blockInputOverrides": false,
  1767. "x": 2890,
  1768. "y": 640,
  1769. "wires": [
  1770. [
  1771. "29c5a475.a4314c"
  1772. ],
  1773. [
  1774. "571169ad.332d28"
  1775. ]
  1776. ]
  1777. },
  1778. {
  1779. "id": "5f3153a9.7decbc",
  1780. "type": "api-current-state",
  1781. "z": "46e39e32.08f7c",
  1782. "name": "HotboxSdown",
  1783. "server": "7ab5c227.a3ce8c",
  1784. "version": 1,
  1785. "outputs": 2,
  1786. "halt_if": "(playing|paused)",
  1787. "halt_if_type": "re",
  1788. "halt_if_compare": "is",
  1789. "override_topic": false,
  1790. "entity_id": "media_player.hotbox_speaker_down",
  1791. "state_type": "str",
  1792. "state_location": "",
  1793. "override_payload": "none",
  1794. "entity_location": "",
  1795. "override_data": "none",
  1796. "blockInputOverrides": false,
  1797. "x": 2700,
  1798. "y": 560,
  1799. "wires": [
  1800. [
  1801. "688b05ca.2671bc"
  1802. ],
  1803. [
  1804. "813829c5.2c6658"
  1805. ]
  1806. ]
  1807. },
  1808. {
  1809. "id": "813829c5.2c6658",
  1810. "type": "api-current-state",
  1811. "z": "46e39e32.08f7c",
  1812. "name": "HotboxTVD",
  1813. "server": "7ab5c227.a3ce8c",
  1814. "version": 1,
  1815. "outputs": 2,
  1816. "halt_if": "(playing|paused)",
  1817. "halt_if_type": "re",
  1818. "halt_if_compare": "is",
  1819. "override_topic": false,
  1820. "entity_id": "media_player.hotbox_tv_down",
  1821. "state_type": "str",
  1822. "state_location": "",
  1823. "override_payload": "none",
  1824. "entity_location": "",
  1825. "override_data": "none",
  1826. "blockInputOverrides": false,
  1827. "x": 2930,
  1828. "y": 560,
  1829. "wires": [
  1830. [
  1831. "c583c18.bf4a34"
  1832. ],
  1833. [
  1834. "1847241a.19284c"
  1835. ]
  1836. ]
  1837. },
  1838. {
  1839. "id": "6e5045.08410fbc",
  1840. "type": "api-current-state",
  1841. "z": "46e39e32.08f7c",
  1842. "name": "Roku",
  1843. "server": "7ab5c227.a3ce8c",
  1844. "version": 1,
  1845. "outputs": 2,
  1846. "halt_if": "(playing|paused)",
  1847. "halt_if_type": "re",
  1848. "halt_if_compare": "is",
  1849. "override_topic": false,
  1850. "entity_id": "media_player.roku",
  1851. "state_type": "str",
  1852. "state_location": "",
  1853. "override_payload": "none",
  1854. "entity_location": "",
  1855. "override_data": "none",
  1856. "blockInputOverrides": false,
  1857. "x": 3090,
  1858. "y": 480,
  1859. "wires": [
  1860. [
  1861. "a4b73953.aa8ec8"
  1862. ],
  1863. [
  1864. "1847241a.19284c"
  1865. ]
  1866. ]
  1867. },
  1868. {
  1869. "id": "571169ad.332d28",
  1870. "type": "api-current-state",
  1871. "z": "46e39e32.08f7c",
  1872. "name": "Roku",
  1873. "server": "7ab5c227.a3ce8c",
  1874. "version": 1,
  1875. "outputs": 2,
  1876. "halt_if": "(playing|paused)",
  1877. "halt_if_type": "re",
  1878. "halt_if_compare": "is",
  1879. "override_topic": false,
  1880. "entity_id": "media_player.roku",
  1881. "state_type": "str",
  1882. "state_location": "",
  1883. "override_payload": "none",
  1884. "entity_location": "",
  1885. "override_data": "none",
  1886. "blockInputOverrides": false,
  1887. "x": 3070,
  1888. "y": 640,
  1889. "wires": [
  1890. [
  1891. "461bf4da.2bfcbc"
  1892. ],
  1893. [
  1894. "1847241a.19284c"
  1895. ]
  1896. ]
  1897. },
  1898. {
  1899. "id": "eb2914bb.f98598",
  1900. "type": "api-current-state",
  1901. "z": "46e39e32.08f7c",
  1902. "name": "LVSpeakerTV",
  1903. "server": "7ab5c227.a3ce8c",
  1904. "version": 1,
  1905. "outputs": 2,
  1906. "halt_if": "(playing|paused)",
  1907. "halt_if_type": "re",
  1908. "halt_if_compare": "is",
  1909. "override_topic": false,
  1910. "entity_id": "media_player.living_room_speaker",
  1911. "state_type": "str",
  1912. "state_location": "",
  1913. "override_payload": "none",
  1914. "entity_location": "",
  1915. "override_data": "none",
  1916. "blockInputOverrides": false,
  1917. "x": 2420,
  1918. "y": 1040,
  1919. "wires": [
  1920. [
  1921. "38f0ae28.061012"
  1922. ],
  1923. [
  1924. "6d75764.555b088"
  1925. ]
  1926. ]
  1927. },
  1928. {
  1929. "id": "6d75764.555b088",
  1930. "type": "api-current-state",
  1931. "z": "46e39e32.08f7c",
  1932. "name": "LVTV",
  1933. "server": "7ab5c227.a3ce8c",
  1934. "version": 1,
  1935. "outputs": 2,
  1936. "halt_if": "(playing|paused)",
  1937. "halt_if_type": "re",
  1938. "halt_if_compare": "is",
  1939. "override_topic": false,
  1940. "entity_id": "media_player.living_room_tv",
  1941. "state_type": "str",
  1942. "state_location": "",
  1943. "override_payload": "none",
  1944. "entity_location": "data.entity",
  1945. "override_data": "msg",
  1946. "blockInputOverrides": false,
  1947. "x": 2630,
  1948. "y": 1040,
  1949. "wires": [
  1950. [
  1951. "157f2091.abfbdf"
  1952. ],
  1953. [
  1954. "1a0b95d.f24b26a"
  1955. ]
  1956. ]
  1957. },
  1958. {
  1959. "id": "52432988.03c1f8",
  1960. "type": "api-current-state",
  1961. "z": "46e39e32.08f7c",
  1962. "name": "ClosetTV",
  1963. "server": "7ab5c227.a3ce8c",
  1964. "version": 1,
  1965. "outputs": 2,
  1966. "halt_if": "(playing|paused)",
  1967. "halt_if_type": "re",
  1968. "halt_if_compare": "is",
  1969. "override_topic": false,
  1970. "entity_id": "media_player.closet_speaker",
  1971. "state_type": "str",
  1972. "state_location": "",
  1973. "override_payload": "none",
  1974. "entity_location": "",
  1975. "override_data": "none",
  1976. "blockInputOverrides": false,
  1977. "x": 2400,
  1978. "y": 1240,
  1979. "wires": [
  1980. [
  1981. "ad504b33.956eb8"
  1982. ],
  1983. [
  1984. "2f9b9fe0.c32d6"
  1985. ]
  1986. ]
  1987. },
  1988. {
  1989. "id": "9292ccd3.5d17f",
  1990. "type": "switch",
  1991. "z": "46e39e32.08f7c",
  1992. "name": "Actions",
  1993. "property": "pressamount",
  1994. "propertyType": "msg",
  1995. "rules": [
  1996. {
  1997. "t": "eq",
  1998. "v": "1",
  1999. "vt": "num"
  2000. },
  2001. {
  2002. "t": "eq",
  2003. "v": "2",
  2004. "vt": "num"
  2005. }
  2006. ],
  2007. "checkall": "false",
  2008. "repair": true,
  2009. "outputs": 2,
  2010. "x": 3960,
  2011. "y": 260,
  2012. "wires": [
  2013. [
  2014. "663e1c40.c6e6c4"
  2015. ],
  2016. [
  2017. "59c3dea2.4e567"
  2018. ]
  2019. ]
  2020. },
  2021. {
  2022. "id": "d05df524.bb0ad8",
  2023. "type": "switch",
  2024. "z": "46e39e32.08f7c",
  2025. "name": "Actions",
  2026. "property": "pressamount",
  2027. "propertyType": "msg",
  2028. "rules": [
  2029. {
  2030. "t": "eq",
  2031. "v": "1",
  2032. "vt": "num"
  2033. },
  2034. {
  2035. "t": "eq",
  2036. "v": "2",
  2037. "vt": "num"
  2038. },
  2039. {
  2040. "t": "eq",
  2041. "v": "3",
  2042. "vt": "num"
  2043. }
  2044. ],
  2045. "checkall": "false",
  2046. "repair": true,
  2047. "outputs": 3,
  2048. "x": 3960,
  2049. "y": 320,
  2050. "wires": [
  2051. [
  2052. "915cb53b.3e43f8"
  2053. ],
  2054. [
  2055. "59c3dea2.4e567"
  2056. ],
  2057. [
  2058. "e92374fc.215f88"
  2059. ]
  2060. ]
  2061. },
  2062. {
  2063. "id": "7abdae71.6aaff",
  2064. "type": "switch",
  2065. "z": "46e39e32.08f7c",
  2066. "name": "Actions",
  2067. "property": "pressamount",
  2068. "propertyType": "msg",
  2069. "rules": [
  2070. {
  2071. "t": "eq",
  2072. "v": "1",
  2073. "vt": "num"
  2074. },
  2075. {
  2076. "t": "eq",
  2077. "v": "2",
  2078. "vt": "num"
  2079. },
  2080. {
  2081. "t": "eq",
  2082. "v": "3",
  2083. "vt": "num"
  2084. }
  2085. ],
  2086. "checkall": "false",
  2087. "repair": true,
  2088. "outputs": 3,
  2089. "x": 3960,
  2090. "y": 380,
  2091. "wires": [
  2092. [
  2093. "c4660008.45f3a"
  2094. ],
  2095. [
  2096. "59c3dea2.4e567"
  2097. ],
  2098. [
  2099. "d1e6eb9d.f40718"
  2100. ]
  2101. ]
  2102. },
  2103. {
  2104. "id": "5413f7fe.93df88",
  2105. "type": "switch",
  2106. "z": "46e39e32.08f7c",
  2107. "name": "Actions",
  2108. "property": "pressamount",
  2109. "propertyType": "msg",
  2110. "rules": [
  2111. {
  2112. "t": "eq",
  2113. "v": "1",
  2114. "vt": "num"
  2115. },
  2116. {
  2117. "t": "eq",
  2118. "v": "2",
  2119. "vt": "num"
  2120. },
  2121. {
  2122. "t": "eq",
  2123. "v": "5",
  2124. "vt": "str"
  2125. }
  2126. ],
  2127. "checkall": "false",
  2128. "repair": true,
  2129. "outputs": 3,
  2130. "x": 3960,
  2131. "y": 440,
  2132. "wires": [
  2133. [
  2134. "b4426d27.53a2f"
  2135. ],
  2136. [
  2137. "59c3dea2.4e567"
  2138. ],
  2139. [
  2140. "e42a3857.ce0498"
  2141. ]
  2142. ]
  2143. },
  2144. {
  2145. "id": "a8afe648.833238",
  2146. "type": "switch",
  2147. "z": "46e39e32.08f7c",
  2148. "name": "Where?",
  2149. "property": "location",
  2150. "propertyType": "msg",
  2151. "rules": [
  2152. {
  2153. "t": "cont",
  2154. "v": "Bedroom",
  2155. "vt": "str"
  2156. },
  2157. {
  2158. "t": "cont",
  2159. "v": "not_home",
  2160. "vt": "str"
  2161. },
  2162. {
  2163. "t": "cont",
  2164. "v": "Hotbox",
  2165. "vt": "str"
  2166. },
  2167. {
  2168. "t": "cont",
  2169. "v": "Chilling",
  2170. "vt": "str"
  2171. },
  2172. {
  2173. "t": "cont",
  2174. "v": "Kitchen",
  2175. "vt": "str"
  2176. },
  2177. {
  2178. "t": "cont",
  2179. "v": "Closet",
  2180. "vt": "str"
  2181. },
  2182. {
  2183. "t": "cont",
  2184. "v": "Bathroom",
  2185. "vt": "str"
  2186. }
  2187. ],
  2188. "checkall": "false",
  2189. "repair": false,
  2190. "outputs": 7,
  2191. "x": 3680,
  2192. "y": 800,
  2193. "wires": [
  2194. [
  2195. "d471bd8a.7ee3"
  2196. ],
  2197. [
  2198. "d471bd8a.7ee3"
  2199. ],
  2200. [
  2201. "9c07955a.044bb8"
  2202. ],
  2203. [
  2204. "8b6d270c.d9f978"
  2205. ],
  2206. [
  2207. "dad1ad11.4a46f"
  2208. ],
  2209. [],
  2210. [
  2211. "eae5e7fc.8cc528"
  2212. ]
  2213. ]
  2214. },
  2215. {
  2216. "id": "d15ff149.ba291",
  2217. "type": "switch",
  2218. "z": "46e39e32.08f7c",
  2219. "name": "Where?",
  2220. "property": "location",
  2221. "propertyType": "msg",
  2222. "rules": [
  2223. {
  2224. "t": "cont",
  2225. "v": "Bedroom",
  2226. "vt": "str"
  2227. },
  2228. {
  2229. "t": "cont",
  2230. "v": "not_home",
  2231. "vt": "str"
  2232. },
  2233. {
  2234. "t": "cont",
  2235. "v": "Hotbox",
  2236. "vt": "str"
  2237. },
  2238. {
  2239. "t": "cont",
  2240. "v": "Chilling",
  2241. "vt": "str"
  2242. },
  2243. {
  2244. "t": "cont",
  2245. "v": "Kitchen",
  2246. "vt": "str"
  2247. },
  2248. {
  2249. "t": "cont",
  2250. "v": "Closet",
  2251. "vt": "str"
  2252. },
  2253. {
  2254. "t": "cont",
  2255. "v": "Bathroom",
  2256. "vt": "str"
  2257. }
  2258. ],
  2259. "checkall": "false",
  2260. "repair": false,
  2261. "outputs": 7,
  2262. "x": 3280,
  2263. "y": 1400,
  2264. "wires": [
  2265. [
  2266. "e1522efb.be2f8"
  2267. ],
  2268. [
  2269. "e1522efb.be2f8"
  2270. ],
  2271. [
  2272. "5ca2c76d.74a848"
  2273. ],
  2274. [
  2275. "3f551efe.949682"
  2276. ],
  2277. [
  2278. "a66832c.b007bd"
  2279. ],
  2280. [],
  2281. [
  2282. "af787fb0.ea8a9"
  2283. ]
  2284. ]
  2285. },
  2286. {
  2287. "id": "a2848aef.cb5118",
  2288. "type": "switch",
  2289. "z": "46e39e32.08f7c",
  2290. "name": "Where?",
  2291. "property": "location",
  2292. "propertyType": "msg",
  2293. "rules": [
  2294. {
  2295. "t": "cont",
  2296. "v": "Bedroom",
  2297. "vt": "str"
  2298. },
  2299. {
  2300. "t": "cont",
  2301. "v": "not_home",
  2302. "vt": "str"
  2303. },
  2304. {
  2305. "t": "cont",
  2306. "v": "Hotbox",
  2307. "vt": "str"
  2308. },
  2309. {
  2310. "t": "cont",
  2311. "v": "Chilling",
  2312. "vt": "str"
  2313. },
  2314. {
  2315. "t": "cont",
  2316. "v": "Kitchen",
  2317. "vt": "str"
  2318. },
  2319. {
  2320. "t": "cont",
  2321. "v": "Closet",
  2322. "vt": "str"
  2323. },
  2324. {
  2325. "t": "cont",
  2326. "v": "Bathroom",
  2327. "vt": "str"
  2328. }
  2329. ],
  2330. "checkall": "false",
  2331. "repair": false,
  2332. "outputs": 7,
  2333. "x": 3740,
  2334. "y": 1100,
  2335. "wires": [
  2336. [
  2337. "5bbf283.11b54d8"
  2338. ],
  2339. [
  2340. "5bbf283.11b54d8"
  2341. ],
  2342. [
  2343. "d7e63a35.28ebe8"
  2344. ],
  2345. [
  2346. "6a0ffea2.d2c52"
  2347. ],
  2348. [
  2349. "500edc0a.06d8c4"
  2350. ],
  2351. [
  2352. "799e9287.c5bbdc"
  2353. ],
  2354. [
  2355. "5dfa40e9.763b2"
  2356. ]
  2357. ]
  2358. },
  2359. {
  2360. "id": "540c5efc.dc142",
  2361. "type": "change",
  2362. "z": "46e39e32.08f7c",
  2363. "name": "Single Press",
  2364. "rules": [
  2365. {
  2366. "t": "set",
  2367. "p": "pressamount",
  2368. "pt": "msg",
  2369. "to": "1",
  2370. "tot": "num"
  2371. }
  2372. ],
  2373. "action": "",
  2374. "property": "",
  2375. "from": "",
  2376. "to": "",
  2377. "reg": false,
  2378. "x": 1840,
  2379. "y": 580,
  2380. "wires": [
  2381. [
  2382. "d8589f7e.38d6"
  2383. ]
  2384. ]
  2385. },
  2386. {
  2387. "id": "a84f7261.af388",
  2388. "type": "change",
  2389. "z": "46e39e32.08f7c",
  2390. "name": "Double Press",
  2391. "rules": [
  2392. {
  2393. "t": "set",
  2394. "p": "pressamount",
  2395. "pt": "msg",
  2396. "to": "2",
  2397. "tot": "num"
  2398. }
  2399. ],
  2400. "action": "",
  2401. "property": "",
  2402. "from": "",
  2403. "to": "",
  2404. "reg": false,
  2405. "x": 1850,
  2406. "y": 620,
  2407. "wires": [
  2408. [
  2409. "d8589f7e.38d6"
  2410. ]
  2411. ]
  2412. },
  2413. {
  2414. "id": "97ba8ad8.5bf5f8",
  2415. "type": "change",
  2416. "z": "46e39e32.08f7c",
  2417. "name": "Triple Press",
  2418. "rules": [
  2419. {
  2420. "t": "set",
  2421. "p": "pressamount",
  2422. "pt": "msg",
  2423. "to": "3",
  2424. "tot": "num"
  2425. }
  2426. ],
  2427. "action": "",
  2428. "property": "",
  2429. "from": "",
  2430. "to": "",
  2431. "reg": false,
  2432. "x": 1840,
  2433. "y": 660,
  2434. "wires": [
  2435. [
  2436. "d8589f7e.38d6"
  2437. ]
  2438. ]
  2439. },
  2440. {
  2441. "id": "cfd437e0.73ccd8",
  2442. "type": "change",
  2443. "z": "46e39e32.08f7c",
  2444. "name": "Four Press",
  2445. "rules": [
  2446. {
  2447. "t": "set",
  2448. "p": "pressamount",
  2449. "pt": "msg",
  2450. "to": "4",
  2451. "tot": "num"
  2452. }
  2453. ],
  2454. "action": "",
  2455. "property": "",
  2456. "from": "",
  2457. "to": "",
  2458. "reg": false,
  2459. "x": 1840,
  2460. "y": 700,
  2461. "wires": [
  2462. [
  2463. "d8589f7e.38d6"
  2464. ]
  2465. ]
  2466. },
  2467. {
  2468. "id": "dd79aff3.3fe65",
  2469. "type": "change",
  2470. "z": "46e39e32.08f7c",
  2471. "name": "Five Press",
  2472. "rules": [
  2473. {
  2474. "t": "set",
  2475. "p": "pressamount",
  2476. "pt": "msg",
  2477. "to": "5",
  2478. "tot": "num"
  2479. }
  2480. ],
  2481. "action": "",
  2482. "property": "",
  2483. "from": "",
  2484. "to": "",
  2485. "reg": false,
  2486. "x": 1850,
  2487. "y": 740,
  2488. "wires": [
  2489. [
  2490. "730e4b13.a7b844",
  2491. "d8589f7e.38d6"
  2492. ]
  2493. ]
  2494. },
  2495. {
  2496. "id": "887803a3.9af6f",
  2497. "type": "switch",
  2498. "z": "46e39e32.08f7c",
  2499. "name": "presses",
  2500. "property": "pressamount",
  2501. "propertyType": "msg",
  2502. "rules": [
  2503. {
  2504. "t": "eq",
  2505. "v": "3",
  2506. "vt": "num"
  2507. },
  2508. {
  2509. "t": "eq",
  2510. "v": "4",
  2511. "vt": "num"
  2512. }
  2513. ],
  2514. "checkall": "false",
  2515. "repair": true,
  2516. "outputs": 2,
  2517. "x": 2560,
  2518. "y": 160,
  2519. "wires": [
  2520. [
  2521. "f3f17a94.ecde68"
  2522. ],
  2523. [
  2524. "83631ece.18054"
  2525. ]
  2526. ]
  2527. },
  2528. {
  2529. "id": "eaf65744.949118",
  2530. "type": "switch",
  2531. "z": "46e39e32.08f7c",
  2532. "name": "presses",
  2533. "property": "pressamount",
  2534. "propertyType": "msg",
  2535. "rules": [
  2536. {
  2537. "t": "eq",
  2538. "v": "3",
  2539. "vt": "num"
  2540. },
  2541. {
  2542. "t": "eq",
  2543. "v": "4",
  2544. "vt": "num"
  2545. }
  2546. ],
  2547. "checkall": "false",
  2548. "repair": true,
  2549. "outputs": 2,
  2550. "x": 2560,
  2551. "y": 200,
  2552. "wires": [
  2553. [
  2554. "754ce00c.482b9"
  2555. ],
  2556. [
  2557. "81ce22f0.41802"
  2558. ]
  2559. ]
  2560. },
  2561. {
  2562. "id": "d4a79ce.db00f6",
  2563. "type": "api-current-state",
  2564. "z": "46e39e32.08f7c",
  2565. "name": "Hotbox down",
  2566. "server": "7ab5c227.a3ce8c",
  2567. "version": 1,
  2568. "outputs": 2,
  2569. "halt_if": "on",
  2570. "halt_if_type": "re",
  2571. "halt_if_compare": "is",
  2572. "override_topic": false,
  2573. "entity_id": "binary_sensor.motion_hotbox_down",
  2574. "state_type": "str",
  2575. "state_location": "",
  2576. "override_payload": "none",
  2577. "entity_location": "",
  2578. "override_data": "none",
  2579. "blockInputOverrides": false,
  2580. "x": 2410,
  2581. "y": 560,
  2582. "wires": [
  2583. [
  2584. "5f3153a9.7decbc"
  2585. ],
  2586. []
  2587. ]
  2588. },
  2589. {
  2590. "id": "7582dfa3.ed92d",
  2591. "type": "api-current-state",
  2592. "z": "46e39e32.08f7c",
  2593. "name": "Hotbox top",
  2594. "server": "7ab5c227.a3ce8c",
  2595. "version": 1,
  2596. "outputs": 2,
  2597. "halt_if": "on",
  2598. "halt_if_type": "re",
  2599. "halt_if_compare": "is",
  2600. "override_topic": false,
  2601. "entity_id": "binary_sensor.motion_hotbox_top",
  2602. "state_type": "str",
  2603. "state_location": "",
  2604. "override_payload": "none",
  2605. "entity_location": "",
  2606. "override_data": "none",
  2607. "blockInputOverrides": false,
  2608. "x": 2410,
  2609. "y": 640,
  2610. "wires": [
  2611. [
  2612. "658eca70.c7f084"
  2613. ],
  2614. []
  2615. ]
  2616. },
  2617. {
  2618. "id": "151006a4.523109",
  2619. "type": "api-current-state",
  2620. "z": "46e39e32.08f7c",
  2621. "name": "Hotbox All off",
  2622. "server": "7ab5c227.a3ce8c",
  2623. "version": 1,
  2624. "outputs": 2,
  2625. "halt_if": "on",
  2626. "halt_if_type": "str",
  2627. "halt_if_compare": "is",
  2628. "override_topic": false,
  2629. "entity_id": "binary_sensor.hotbox_all_motion_off",
  2630. "state_type": "str",
  2631. "state_location": "",
  2632. "override_payload": "none",
  2633. "entity_location": "",
  2634. "override_data": "none",
  2635. "blockInputOverrides": false,
  2636. "x": 2410,
  2637. "y": 520,
  2638. "wires": [
  2639. [
  2640. "2e57ea9d.2837e6"
  2641. ],
  2642. []
  2643. ]
  2644. },
  2645. {
  2646. "id": "9b7a80ec.188d7",
  2647. "type": "switch",
  2648. "z": "46e39e32.08f7c",
  2649. "name": "presses",
  2650. "property": "pressamount",
  2651. "propertyType": "msg",
  2652. "rules": [
  2653. {
  2654. "t": "eq",
  2655. "v": "3",
  2656. "vt": "num"
  2657. }
  2658. ],
  2659. "checkall": "false",
  2660. "repair": true,
  2661. "outputs": 1,
  2662. "x": 2290,
  2663. "y": 1460,
  2664. "wires": [
  2665. [
  2666. "ea51018.9440c"
  2667. ]
  2668. ]
  2669. },
  2670. {
  2671. "id": "9e0ee08c.cd185",
  2672. "type": "switch",
  2673. "z": "46e39e32.08f7c",
  2674. "name": "presses",
  2675. "property": "pressamount",
  2676. "propertyType": "msg",
  2677. "rules": [
  2678. {
  2679. "t": "eq",
  2680. "v": "3",
  2681. "vt": "num"
  2682. }
  2683. ],
  2684. "checkall": "false",
  2685. "repair": true,
  2686. "outputs": 1,
  2687. "x": 2290,
  2688. "y": 1500,
  2689. "wires": [
  2690. [
  2691. "99141fe.d1b42e"
  2692. ]
  2693. ]
  2694. },
  2695. {
  2696. "id": "570a263e.496d58",
  2697. "type": "switch",
  2698. "z": "46e39e32.08f7c",
  2699. "name": "presses",
  2700. "property": "pressamount",
  2701. "propertyType": "msg",
  2702. "rules": [
  2703. {
  2704. "t": "eq",
  2705. "v": "3",
  2706. "vt": "num"
  2707. }
  2708. ],
  2709. "checkall": "false",
  2710. "repair": true,
  2711. "outputs": 1,
  2712. "x": 2480,
  2713. "y": 880,
  2714. "wires": [
  2715. [
  2716. "2fd15b76.d9a6a4"
  2717. ]
  2718. ]
  2719. },
  2720. {
  2721. "id": "c3df8b12.86f828",
  2722. "type": "switch",
  2723. "z": "46e39e32.08f7c",
  2724. "name": "presses",
  2725. "property": "pressamount",
  2726. "propertyType": "msg",
  2727. "rules": [
  2728. {
  2729. "t": "eq",
  2730. "v": "3",
  2731. "vt": "num"
  2732. }
  2733. ],
  2734. "checkall": "false",
  2735. "repair": true,
  2736. "outputs": 1,
  2737. "x": 2480,
  2738. "y": 920,
  2739. "wires": [
  2740. [
  2741. "a30b2ef0.bda27"
  2742. ]
  2743. ]
  2744. },
  2745. {
  2746. "id": "663e1c40.c6e6c4",
  2747. "type": "api-call-service",
  2748. "z": "46e39e32.08f7c",
  2749. "name": "Play",
  2750. "server": "7ab5c227.a3ce8c",
  2751. "version": 1,
  2752. "debugenabled": false,
  2753. "service_domain": "media_player",
  2754. "service": "media_play",
  2755. "entityId": "",
  2756. "data": "",
  2757. "dataType": "json",
  2758. "mergecontext": "",
  2759. "output_location": "payload",
  2760. "output_location_type": "msg",
  2761. "mustacheAltTags": false,
  2762. "x": 4140,
  2763. "y": 260,
  2764. "wires": [
  2765. []
  2766. ]
  2767. },
  2768. {
  2769. "id": "59c3dea2.4e567",
  2770. "type": "switch",
  2771. "z": "46e39e32.08f7c",
  2772. "name": "Where?",
  2773. "property": "location",
  2774. "propertyType": "msg",
  2775. "rules": [
  2776. {
  2777. "t": "cont",
  2778. "v": "Bedroom",
  2779. "vt": "str"
  2780. },
  2781. {
  2782. "t": "cont",
  2783. "v": "not_home",
  2784. "vt": "str"
  2785. },
  2786. {
  2787. "t": "cont",
  2788. "v": "Hotbox",
  2789. "vt": "str"
  2790. },
  2791. {
  2792. "t": "cont",
  2793. "v": "Chilling",
  2794. "vt": "str"
  2795. },
  2796. {
  2797. "t": "cont",
  2798. "v": "Kitchen",
  2799. "vt": "str"
  2800. },
  2801. {
  2802. "t": "cont",
  2803. "v": "Closet",
  2804. "vt": "str"
  2805. },
  2806. {
  2807. "t": "cont",
  2808. "v": "Bathroom",
  2809. "vt": "str"
  2810. }
  2811. ],
  2812. "checkall": "false",
  2813. "repair": false,
  2814. "outputs": 7,
  2815. "x": 4140,
  2816. "y": 160,
  2817. "wires": [
  2818. [
  2819. "a7e41b7c.5f3178"
  2820. ],
  2821. [
  2822. "a7e41b7c.5f3178"
  2823. ],
  2824. [
  2825. "5265b9dc.3b4cc8"
  2826. ],
  2827. [
  2828. "eb4fe03d.b120b"
  2829. ],
  2830. [
  2831. "a248ca37.235628"
  2832. ],
  2833. [],
  2834. [
  2835. "d08aacb3.8b4b"
  2836. ]
  2837. ]
  2838. },
  2839. {
  2840. "id": "915cb53b.3e43f8",
  2841. "type": "switch",
  2842. "z": "46e39e32.08f7c",
  2843. "name": "Volume 1/>1",
  2844. "property": "volume",
  2845. "propertyType": "msg",
  2846. "rules": [
  2847. {
  2848. "t": "eq",
  2849. "v": "1",
  2850. "vt": "num"
  2851. },
  2852. {
  2853. "t": "neq",
  2854. "v": "1",
  2855. "vt": "num"
  2856. }
  2857. ],
  2858. "checkall": "false",
  2859. "repair": true,
  2860. "outputs": 2,
  2861. "x": 4170,
  2862. "y": 300,
  2863. "wires": [
  2864. [
  2865. "ff4d9bdb.ad84b8"
  2866. ],
  2867. [
  2868. "f1186296.b96b4"
  2869. ]
  2870. ]
  2871. },
  2872. {
  2873. "id": "e92374fc.215f88",
  2874. "type": "api-call-service",
  2875. "z": "46e39e32.08f7c",
  2876. "name": "Skip",
  2877. "server": "7ab5c227.a3ce8c",
  2878. "version": 1,
  2879. "debugenabled": false,
  2880. "service_domain": "media_player",
  2881. "service": "media_seek",
  2882. "entityId": "",
  2883. "data": "{\"seek_position\": \"100000\"}",
  2884. "dataType": "json",
  2885. "mergecontext": "",
  2886. "output_location": "payload",
  2887. "output_location_type": "msg",
  2888. "mustacheAltTags": false,
  2889. "x": 4160,
  2890. "y": 340,
  2891. "wires": [
  2892. []
  2893. ]
  2894. },
  2895. {
  2896. "id": "c4660008.45f3a",
  2897. "type": "switch",
  2898. "z": "46e39e32.08f7c",
  2899. "name": "Volume 0/<0",
  2900. "property": "volume",
  2901. "propertyType": "msg",
  2902. "rules": [
  2903. {
  2904. "t": "eq",
  2905. "v": "0",
  2906. "vt": "num"
  2907. },
  2908. {
  2909. "t": "neq",
  2910. "v": "0",
  2911. "vt": "num"
  2912. }
  2913. ],
  2914. "checkall": "false",
  2915. "repair": true,
  2916. "outputs": 2,
  2917. "x": 4270,
  2918. "y": 380,
  2919. "wires": [
  2920. [
  2921. "1729344f.8a69cc"
  2922. ],
  2923. [
  2924. "f41fe5c8.de8c48"
  2925. ]
  2926. ]
  2927. },
  2928. {
  2929. "id": "d1e6eb9d.f40718",
  2930. "type": "api-call-service",
  2931. "z": "46e39e32.08f7c",
  2932. "name": "Return Start",
  2933. "server": "7ab5c227.a3ce8c",
  2934. "version": 1,
  2935. "debugenabled": false,
  2936. "service_domain": "media_player",
  2937. "service": "media_seek",
  2938. "entityId": "",
  2939. "data": "{\"seek_position\": \"0\"}",
  2940. "dataType": "json",
  2941. "mergecontext": "",
  2942. "output_location": "payload",
  2943. "output_location_type": "msg",
  2944. "mustacheAltTags": false,
  2945. "x": 4160,
  2946. "y": 420,
  2947. "wires": [
  2948. []
  2949. ]
  2950. },
  2951. {
  2952. "id": "b4426d27.53a2f",
  2953. "type": "api-call-service",
  2954. "z": "46e39e32.08f7c",
  2955. "name": "Pause",
  2956. "server": "7ab5c227.a3ce8c",
  2957. "version": 1,
  2958. "debugenabled": false,
  2959. "service_domain": "media_player",
  2960. "service": "media_pause",
  2961. "entityId": "",
  2962. "data": "",
  2963. "dataType": "json",
  2964. "mergecontext": "",
  2965. "output_location": "payload",
  2966. "output_location_type": "msg",
  2967. "mustacheAltTags": false,
  2968. "x": 4140,
  2969. "y": 460,
  2970. "wires": [
  2971. []
  2972. ]
  2973. },
  2974. {
  2975. "id": "e42a3857.ce0498",
  2976. "type": "api-call-service",
  2977. "z": "46e39e32.08f7c",
  2978. "name": "Stop all",
  2979. "server": "7ab5c227.a3ce8c",
  2980. "version": 1,
  2981. "debugenabled": false,
  2982. "service_domain": "media_player",
  2983. "service": "turn_off",
  2984. "entityId": "",
  2985. "data": "",
  2986. "dataType": "json",
  2987. "mergecontext": "",
  2988. "output_location": "payload",
  2989. "output_location_type": "msg",
  2990. "mustacheAltTags": false,
  2991. "x": 4160,
  2992. "y": 500,
  2993. "wires": [
  2994. []
  2995. ]
  2996. },
  2997. {
  2998. "id": "d471bd8a.7ee3",
  2999. "type": "change",
  3000. "z": "46e39e32.08f7c",
  3001. "name": "Bedroom",
  3002. "rules": [
  3003. {
  3004. "t": "set",
  3005. "p": "payload",
  3006. "pt": "msg",
  3007. "to": "{\"data\":{\"entity_id\":\"light.bedroom_lights\"}}",
  3008. "tot": "json"
  3009. }
  3010. ],
  3011. "action": "",
  3012. "property": "",
  3013. "from": "",
  3014. "to": "",
  3015. "reg": false,
  3016. "x": 4160,
  3017. "y": 680,
  3018. "wires": [
  3019. [
  3020. "46cd54c9.21102c"
  3021. ]
  3022. ]
  3023. },
  3024. {
  3025. "id": "9c07955a.044bb8",
  3026. "type": "api-current-state",
  3027. "z": "46e39e32.08f7c",
  3028. "name": "Hotbox All",
  3029. "server": "7ab5c227.a3ce8c",
  3030. "version": 1,
  3031. "outputs": 2,
  3032. "halt_if": "on",
  3033. "halt_if_type": "str",
  3034. "halt_if_compare": "is",
  3035. "override_topic": false,
  3036. "entity_id": "binary_sensor.hotbox_all_motion",
  3037. "state_type": "str",
  3038. "state_location": "",
  3039. "override_payload": "none",
  3040. "entity_location": "",
  3041. "override_data": "none",
  3042. "blockInputOverrides": false,
  3043. "x": 3950,
  3044. "y": 680,
  3045. "wires": [
  3046. [
  3047. "d92e2f4c.07677"
  3048. ],
  3049. [
  3050. "1e0cbd28.8484d3",
  3051. "4d88cc46.5d62a4",
  3052. "8a92acaf.0d67"
  3053. ]
  3054. ]
  3055. },
  3056. {
  3057. "id": "8b6d270c.d9f978",
  3058. "type": "change",
  3059. "z": "46e39e32.08f7c",
  3060. "name": "LivingRo",
  3061. "rules": [
  3062. {
  3063. "t": "set",
  3064. "p": "payload",
  3065. "pt": "msg",
  3066. "to": "{\"data\":{\"entity_id\":[\"light.livingroom_lights\"]}}",
  3067. "tot": "json"
  3068. }
  3069. ],
  3070. "action": "",
  3071. "property": "",
  3072. "from": "",
  3073. "to": "",
  3074. "reg": false,
  3075. "x": 4160,
  3076. "y": 840,
  3077. "wires": [
  3078. [
  3079. "46cd54c9.21102c"
  3080. ]
  3081. ]
  3082. },
  3083. {
  3084. "id": "dad1ad11.4a46f",
  3085. "type": "change",
  3086. "z": "46e39e32.08f7c",
  3087. "name": "Kitchen",
  3088. "rules": [
  3089. {
  3090. "t": "set",
  3091. "p": "payload",
  3092. "pt": "msg",
  3093. "to": "{\"data\":{\"entity_id\":[\"light.kitchen_lights\"]}}",
  3094. "tot": "json"
  3095. }
  3096. ],
  3097. "action": "",
  3098. "property": "",
  3099. "from": "",
  3100. "to": "",
  3101. "reg": false,
  3102. "x": 4160,
  3103. "y": 880,
  3104. "wires": [
  3105. [
  3106. "46cd54c9.21102c"
  3107. ]
  3108. ]
  3109. },
  3110. {
  3111. "id": "eae5e7fc.8cc528",
  3112. "type": "change",
  3113. "z": "46e39e32.08f7c",
  3114. "name": "Bathroom",
  3115. "rules": [
  3116. {
  3117. "t": "set",
  3118. "p": "payload",
  3119. "pt": "msg",
  3120. "to": "{\"data\":{\"entity_id\":\"light.bathroom2\"}}",
  3121. "tot": "json"
  3122. }
  3123. ],
  3124. "action": "",
  3125. "property": "",
  3126. "from": "",
  3127. "to": "",
  3128. "reg": false,
  3129. "x": 4160,
  3130. "y": 920,
  3131. "wires": [
  3132. [
  3133. "46cd54c9.21102c"
  3134. ]
  3135. ]
  3136. },
  3137. {
  3138. "id": "e1522efb.be2f8",
  3139. "type": "change",
  3140. "z": "46e39e32.08f7c",
  3141. "name": "Bedroom",
  3142. "rules": [
  3143. {
  3144. "t": "set",
  3145. "p": "payload",
  3146. "pt": "msg",
  3147. "to": "{\"data\":{\"entity_id\":\"light.bedroom_lights\"}}",
  3148. "tot": "json"
  3149. }
  3150. ],
  3151. "action": "",
  3152. "property": "",
  3153. "from": "",
  3154. "to": "",
  3155. "reg": false,
  3156. "x": 3660,
  3157. "y": 1200,
  3158. "wires": [
  3159. [
  3160. "99bb6322.d29df"
  3161. ]
  3162. ]
  3163. },
  3164. {
  3165. "id": "5ca2c76d.74a848",
  3166. "type": "api-current-state",
  3167. "z": "46e39e32.08f7c",
  3168. "name": "Hotbox All",
  3169. "server": "7ab5c227.a3ce8c",
  3170. "version": 1,
  3171. "outputs": 2,
  3172. "halt_if": "on",
  3173. "halt_if_type": "str",
  3174. "halt_if_compare": "is",
  3175. "override_topic": false,
  3176. "entity_id": "binary_sensor.hotbox_all_motion",
  3177. "state_type": "str",
  3178. "state_location": "",
  3179. "override_payload": "none",
  3180. "entity_location": "",
  3181. "override_data": "none",
  3182. "blockInputOverrides": false,
  3183. "x": 3550,
  3184. "y": 1300,
  3185. "wires": [
  3186. [
  3187. "ae52bce9.33ff3"
  3188. ],
  3189. [
  3190. "281aadb6.ad4402",
  3191. "67daac27.5e1ea4",
  3192. "fe02466c.7fb148"
  3193. ]
  3194. ]
  3195. },
  3196. {
  3197. "id": "3f551efe.949682",
  3198. "type": "change",
  3199. "z": "46e39e32.08f7c",
  3200. "name": "LivingRo",
  3201. "rules": [
  3202. {
  3203. "t": "set",
  3204. "p": "payload",
  3205. "pt": "msg",
  3206. "to": "{\"data\":{\"entity_id\":\"light.livingroom_lights\"}}",
  3207. "tot": "json"
  3208. }
  3209. ],
  3210. "action": "",
  3211. "property": "",
  3212. "from": "",
  3213. "to": "",
  3214. "reg": false,
  3215. "x": 3720,
  3216. "y": 1620,
  3217. "wires": [
  3218. [
  3219. "99bb6322.d29df"
  3220. ]
  3221. ]
  3222. },
  3223. {
  3224. "id": "a66832c.b007bd",
  3225. "type": "change",
  3226. "z": "46e39e32.08f7c",
  3227. "name": "Kitchen",
  3228. "rules": [
  3229. {
  3230. "t": "set",
  3231. "p": "payload",
  3232. "pt": "msg",
  3233. "to": "{\"data\":{\"entity_id\":\"light.kitchen_lights\"}}",
  3234. "tot": "json"
  3235. }
  3236. ],
  3237. "action": "",
  3238. "property": "",
  3239. "from": "",
  3240. "to": "",
  3241. "reg": false,
  3242. "x": 3720,
  3243. "y": 1660,
  3244. "wires": [
  3245. [
  3246. "99bb6322.d29df"
  3247. ]
  3248. ]
  3249. },
  3250. {
  3251. "id": "af787fb0.ea8a9",
  3252. "type": "change",
  3253. "z": "46e39e32.08f7c",
  3254. "name": "Bathroom",
  3255. "rules": [
  3256. {
  3257. "t": "set",
  3258. "p": "payload",
  3259. "pt": "msg",
  3260. "to": "{\"data\":{\"entity_id\":\"light.bathroom2\"}}",
  3261. "tot": "json"
  3262. }
  3263. ],
  3264. "action": "",
  3265. "property": "",
  3266. "from": "",
  3267. "to": "",
  3268. "reg": false,
  3269. "x": 3720,
  3270. "y": 1740,
  3271. "wires": [
  3272. [
  3273. "99bb6322.d29df"
  3274. ]
  3275. ]
  3276. },
  3277. {
  3278. "id": "5bbf283.11b54d8",
  3279. "type": "change",
  3280. "z": "46e39e32.08f7c",
  3281. "name": "Bedroom",
  3282. "rules": [
  3283. {
  3284. "t": "set",
  3285. "p": "payload",
  3286. "pt": "msg",
  3287. "to": "{\"data\":{\"entity_id\":\"light.bedroom_lights\"}}",
  3288. "tot": "json"
  3289. }
  3290. ],
  3291. "action": "",
  3292. "property": "",
  3293. "from": "",
  3294. "to": "",
  3295. "reg": false,
  3296. "x": 3960,
  3297. "y": 940,
  3298. "wires": [
  3299. [
  3300. "e4567284.916fa"
  3301. ]
  3302. ]
  3303. },
  3304. {
  3305. "id": "d7e63a35.28ebe8",
  3306. "type": "api-current-state",
  3307. "z": "46e39e32.08f7c",
  3308. "name": "Hotbox All",
  3309. "server": "7ab5c227.a3ce8c",
  3310. "version": 1,
  3311. "outputs": 2,
  3312. "halt_if": "on",
  3313. "halt_if_type": "str",
  3314. "halt_if_compare": "is",
  3315. "override_topic": false,
  3316. "entity_id": "binary_sensor.hotbox_all_motion",
  3317. "state_type": "str",
  3318. "state_location": "",
  3319. "override_payload": "none",
  3320. "entity_location": "",
  3321. "override_data": "none",
  3322. "blockInputOverrides": false,
  3323. "x": 3970,
  3324. "y": 980,
  3325. "wires": [
  3326. [
  3327. "64c02220.9e555c"
  3328. ],
  3329. [
  3330. "585c89d7.9d3438",
  3331. "aced8e47.02074",
  3332. "e05bcceb.64c05"
  3333. ]
  3334. ]
  3335. },
  3336. {
  3337. "id": "6a0ffea2.d2c52",
  3338. "type": "change",
  3339. "z": "46e39e32.08f7c",
  3340. "name": "LivingRo",
  3341. "rules": [
  3342. {
  3343. "t": "set",
  3344. "p": "payload",
  3345. "pt": "msg",
  3346. "to": "{\"data\":{\"entity_id\":[\"light.livingroom_lights\"]}}",
  3347. "tot": "json"
  3348. }
  3349. ],
  3350. "action": "",
  3351. "property": "",
  3352. "from": "",
  3353. "to": "",
  3354. "reg": false,
  3355. "x": 3940,
  3356. "y": 1140,
  3357. "wires": [
  3358. [
  3359. "e4567284.916fa"
  3360. ]
  3361. ]
  3362. },
  3363. {
  3364. "id": "500edc0a.06d8c4",
  3365. "type": "change",
  3366. "z": "46e39e32.08f7c",
  3367. "name": "Kitchen",
  3368. "rules": [
  3369. {
  3370. "t": "set",
  3371. "p": "payload",
  3372. "pt": "msg",
  3373. "to": "{\"data\":{\"entity_id\":[\"light.kitchen_lights\"]}}",
  3374. "tot": "json"
  3375. }
  3376. ],
  3377. "action": "",
  3378. "property": "",
  3379. "from": "",
  3380. "to": "",
  3381. "reg": false,
  3382. "x": 3940,
  3383. "y": 1180,
  3384. "wires": [
  3385. [
  3386. "e4567284.916fa"
  3387. ]
  3388. ]
  3389. },
  3390. {
  3391. "id": "799e9287.c5bbdc",
  3392. "type": "change",
  3393. "z": "46e39e32.08f7c",
  3394. "name": "closet",
  3395. "rules": [
  3396. {
  3397. "t": "set",
  3398. "p": "payload",
  3399. "pt": "msg",
  3400. "to": "{\"data\":{\"entity_id\":\"media_player.closet_speaker\"}}",
  3401. "tot": "json"
  3402. }
  3403. ],
  3404. "action": "",
  3405. "property": "",
  3406. "from": "",
  3407. "to": "",
  3408. "reg": false,
  3409. "x": 3930,
  3410. "y": 1220,
  3411. "wires": [
  3412. [
  3413. "e4567284.916fa"
  3414. ]
  3415. ]
  3416. },
  3417. {
  3418. "id": "5dfa40e9.763b2",
  3419. "type": "change",
  3420. "z": "46e39e32.08f7c",
  3421. "name": "Bathroom",
  3422. "rules": [
  3423. {
  3424. "t": "set",
  3425. "p": "payload",
  3426. "pt": "msg",
  3427. "to": "{\"data\":{\"entity_id\":\"light.bathroom2\"}}",
  3428. "tot": "json"
  3429. }
  3430. ],
  3431. "action": "",
  3432. "property": "",
  3433. "from": "",
  3434. "to": "",
  3435. "reg": false,
  3436. "x": 3940,
  3437. "y": 1260,
  3438. "wires": [
  3439. [
  3440. "e4567284.916fa"
  3441. ]
  3442. ]
  3443. },
  3444. {
  3445. "id": "c79b5f3b.54145",
  3446. "type": "switch",
  3447. "z": "46e39e32.08f7c",
  3448. "name": "count presses",
  3449. "property": "count",
  3450. "propertyType": "flow",
  3451. "rules": [
  3452. {
  3453. "t": "eq",
  3454. "v": "1",
  3455. "vt": "num"
  3456. },
  3457. {
  3458. "t": "eq",
  3459. "v": "2",
  3460. "vt": "num"
  3461. },
  3462. {
  3463. "t": "eq",
  3464. "v": "3",
  3465. "vt": "num"
  3466. },
  3467. {
  3468. "t": "eq",
  3469. "v": "4",
  3470. "vt": "num"
  3471. },
  3472. {
  3473. "t": "eq",
  3474. "v": "5",
  3475. "vt": "num"
  3476. }
  3477. ],
  3478. "checkall": "true",
  3479. "repair": false,
  3480. "outputs": 5,
  3481. "x": 1630,
  3482. "y": 640,
  3483. "wires": [
  3484. [
  3485. "540c5efc.dc142"
  3486. ],
  3487. [
  3488. "a84f7261.af388"
  3489. ],
  3490. [
  3491. "97ba8ad8.5bf5f8"
  3492. ],
  3493. [
  3494. "cfd437e0.73ccd8"
  3495. ],
  3496. [
  3497. "dd79aff3.3fe65"
  3498. ]
  3499. ],
  3500. "info": "Just expand the flow.count to how ever many\npresses you want/need."
  3501. },
  3502. {
  3503. "id": "730e4b13.a7b844",
  3504. "type": "debug",
  3505. "z": "46e39e32.08f7c",
  3506. "name": "YOYOYOYOYO",
  3507. "active": false,
  3508. "tosidebar": true,
  3509. "console": false,
  3510. "tostatus": false,
  3511. "complete": "true",
  3512. "targetType": "full",
  3513. "x": 2000,
  3514. "y": 780,
  3515. "wires": []
  3516. },
  3517. {
  3518. "id": "f3f17a94.ecde68",
  3519. "type": "api-call-service",
  3520. "z": "46e39e32.08f7c",
  3521. "name": "Blind up",
  3522. "server": "7ab5c227.a3ce8c",
  3523. "version": 1,
  3524. "debugenabled": false,
  3525. "service_domain": "cover",
  3526. "service": "open_cover",
  3527. "entityId": "cover.bedroom_window",
  3528. "data": "",
  3529. "dataType": "json",
  3530. "mergecontext": "",
  3531. "output_location": "payload",
  3532. "output_location_type": "msg",
  3533. "mustacheAltTags": false,
  3534. "x": 2740,
  3535. "y": 100,
  3536. "wires": [
  3537. []
  3538. ]
  3539. },
  3540. {
  3541. "id": "83631ece.18054",
  3542. "type": "api-call-service",
  3543. "z": "46e39e32.08f7c",
  3544. "name": "screens on",
  3545. "server": "7ab5c227.a3ce8c",
  3546. "version": 1,
  3547. "debugenabled": false,
  3548. "service_domain": "switch",
  3549. "service": "turn_on",
  3550. "entityId": "switch.screens",
  3551. "data": "",
  3552. "dataType": "json",
  3553. "mergecontext": "",
  3554. "output_location": "payload",
  3555. "output_location_type": "msg",
  3556. "mustacheAltTags": false,
  3557. "x": 2770,
  3558. "y": 140,
  3559. "wires": [
  3560. []
  3561. ]
  3562. },
  3563. {
  3564. "id": "754ce00c.482b9",
  3565. "type": "api-call-service",
  3566. "z": "46e39e32.08f7c",
  3567. "name": "Blind down",
  3568. "server": "7ab5c227.a3ce8c",
  3569. "version": 1,
  3570. "debugenabled": false,
  3571. "service_domain": "cover",
  3572. "service": "close_cover",
  3573. "entityId": "cover.bedroom_window",
  3574. "data": "",
  3575. "dataType": "json",
  3576. "mergecontext": "",
  3577. "output_location": "payload",
  3578. "output_location_type": "msg",
  3579. "mustacheAltTags": false,
  3580. "x": 2750,
  3581. "y": 180,
  3582. "wires": [
  3583. []
  3584. ]
  3585. },
  3586. {
  3587. "id": "81ce22f0.41802",
  3588. "type": "api-call-service",
  3589. "z": "46e39e32.08f7c",
  3590. "name": "Blind up",
  3591. "server": "7ab5c227.a3ce8c",
  3592. "version": 1,
  3593. "debugenabled": false,
  3594. "service_domain": "switch",
  3595. "service": "turn_off",
  3596. "entityId": "switch.screens",
  3597. "data": "",
  3598. "dataType": "json",
  3599. "mergecontext": "",
  3600. "output_location": "payload",
  3601. "output_location_type": "msg",
  3602. "mustacheAltTags": false,
  3603. "x": 2740,
  3604. "y": 220,
  3605. "wires": [
  3606. []
  3607. ]
  3608. },
  3609. {
  3610. "id": "ea51018.9440c",
  3611. "type": "api-call-service",
  3612. "z": "46e39e32.08f7c",
  3613. "name": "Blind up",
  3614. "server": "7ab5c227.a3ce8c",
  3615. "version": 1,
  3616. "debugenabled": false,
  3617. "service_domain": "cover",
  3618. "service": "open_cover",
  3619. "entityId": "cover.living_room",
  3620. "data": "",
  3621. "dataType": "json",
  3622. "mergecontext": "",
  3623. "output_location": "payload",
  3624. "output_location_type": "msg",
  3625. "mustacheAltTags": false,
  3626. "x": 2470,
  3627. "y": 1420,
  3628. "wires": [
  3629. []
  3630. ]
  3631. },
  3632. {
  3633. "id": "99141fe.d1b42e",
  3634. "type": "api-call-service",
  3635. "z": "46e39e32.08f7c",
  3636. "name": "Blind down",
  3637. "server": "7ab5c227.a3ce8c",
  3638. "version": 1,
  3639. "debugenabled": false,
  3640. "service_domain": "cover",
  3641. "service": "close_cover",
  3642. "entityId": "cover.living_room",
  3643. "data": "",
  3644. "dataType": "json",
  3645. "mergecontext": "",
  3646. "output_location": "payload",
  3647. "output_location_type": "msg",
  3648. "mustacheAltTags": false,
  3649. "x": 2480,
  3650. "y": 1480,
  3651. "wires": [
  3652. []
  3653. ]
  3654. },
  3655. {
  3656. "id": "2fd15b76.d9a6a4",
  3657. "type": "api-call-service",
  3658. "z": "46e39e32.08f7c",
  3659. "name": "Blind up",
  3660. "server": "7ab5c227.a3ce8c",
  3661. "version": 1,
  3662. "debugenabled": false,
  3663. "service_domain": "cover",
  3664. "service": "open_cover",
  3665. "entityId": "cover.bedroom_window",
  3666. "data": "",
  3667. "dataType": "json",
  3668. "mergecontext": "",
  3669. "output_location": "payload",
  3670. "output_location_type": "msg",
  3671. "mustacheAltTags": false,
  3672. "x": 2660,
  3673. "y": 820,
  3674. "wires": [
  3675. []
  3676. ]
  3677. },
  3678. {
  3679. "id": "a30b2ef0.bda27",
  3680. "type": "api-call-service",
  3681. "z": "46e39e32.08f7c",
  3682. "name": "Blind down",
  3683. "server": "7ab5c227.a3ce8c",
  3684. "version": 1,
  3685. "debugenabled": false,
  3686. "service_domain": "cover",
  3687. "service": "close_cover",
  3688. "entityId": "cover.bedroom_window",
  3689. "data": "",
  3690. "dataType": "json",
  3691. "mergecontext": "",
  3692. "output_location": "payload",
  3693. "output_location_type": "msg",
  3694. "mustacheAltTags": false,
  3695. "x": 2670,
  3696. "y": 900,
  3697. "wires": [
  3698. []
  3699. ]
  3700. },
  3701. {
  3702. "id": "a7e41b7c.5f3178",
  3703. "type": "change",
  3704. "z": "46e39e32.08f7c",
  3705. "name": "Bedroom",
  3706. "rules": [
  3707. {
  3708. "t": "set",
  3709. "p": "payload",
  3710. "pt": "msg",
  3711. "to": "{\"data\":{\"entity_id\":\"light.bedroom_lights\"}}",
  3712. "tot": "json"
  3713. }
  3714. ],
  3715. "action": "",
  3716. "property": "",
  3717. "from": "",
  3718. "to": "",
  3719. "reg": false,
  3720. "x": 4340,
  3721. "y": 40,
  3722. "wires": [
  3723. [
  3724. "9a5bcf2b.910bc"
  3725. ]
  3726. ]
  3727. },
  3728. {
  3729. "id": "5265b9dc.3b4cc8",
  3730. "type": "change",
  3731. "z": "46e39e32.08f7c",
  3732. "name": "HotBox",
  3733. "rules": [
  3734. {
  3735. "t": "set",
  3736. "p": "payload",
  3737. "pt": "msg",
  3738. "to": "{\"data\":{\"entity_id\":[\"light.hotbox_lights\"]}}",
  3739. "tot": "json"
  3740. }
  3741. ],
  3742. "action": "",
  3743. "property": "",
  3744. "from": "",
  3745. "to": "",
  3746. "reg": false,
  3747. "x": 4340,
  3748. "y": 80,
  3749. "wires": [
  3750. [
  3751. "9a5bcf2b.910bc",
  3752. "dc73623c.0e0ed"
  3753. ]
  3754. ]
  3755. },
  3756. {
  3757. "id": "eb4fe03d.b120b",
  3758. "type": "change",
  3759. "z": "46e39e32.08f7c",
  3760. "name": "LivingRo",
  3761. "rules": [
  3762. {
  3763. "t": "set",
  3764. "p": "payload",
  3765. "pt": "msg",
  3766. "to": "{\"data\":{\"entity_id\":[\"light.livingroom_lights\"]}}",
  3767. "tot": "json"
  3768. }
  3769. ],
  3770. "action": "",
  3771. "property": "",
  3772. "from": "",
  3773. "to": "",
  3774. "reg": false,
  3775. "x": 4340,
  3776. "y": 120,
  3777. "wires": [
  3778. [
  3779. "9a5bcf2b.910bc"
  3780. ]
  3781. ]
  3782. },
  3783. {
  3784. "id": "a248ca37.235628",
  3785. "type": "change",
  3786. "z": "46e39e32.08f7c",
  3787. "name": "Kitchen",
  3788. "rules": [
  3789. {
  3790. "t": "set",
  3791. "p": "payload",
  3792. "pt": "msg",
  3793. "to": "{\"data\":{\"entity_id\":[\"light.kitchen_lights\"]}}",
  3794. "tot": "json"
  3795. }
  3796. ],
  3797. "action": "",
  3798. "property": "",
  3799. "from": "",
  3800. "to": "",
  3801. "reg": false,
  3802. "x": 4340,
  3803. "y": 160,
  3804. "wires": [
  3805. [
  3806. "9a5bcf2b.910bc"
  3807. ]
  3808. ]
  3809. },
  3810. {
  3811. "id": "d08aacb3.8b4b",
  3812. "type": "change",
  3813. "z": "46e39e32.08f7c",
  3814. "name": "Bathroom",
  3815. "rules": [
  3816. {
  3817. "t": "set",
  3818. "p": "payload",
  3819. "pt": "msg",
  3820. "to": "{\"data\":{\"entity_id\":\"light.bathroom2\"}}",
  3821. "tot": "json"
  3822. }
  3823. ],
  3824. "action": "",
  3825. "property": "",
  3826. "from": "",
  3827. "to": "",
  3828. "reg": false,
  3829. "x": 4340,
  3830. "y": 200,
  3831. "wires": [
  3832. [
  3833. "9a5bcf2b.910bc"
  3834. ]
  3835. ]
  3836. },
  3837. {
  3838. "id": "ff4d9bdb.ad84b8",
  3839. "type": "switch",
  3840. "z": "46e39e32.08f7c",
  3841. "name": "Tv",
  3842. "property": "payload.data.entity_id",
  3843. "propertyType": "msg",
  3844. "rules": [
  3845. {
  3846. "t": "cont",
  3847. "v": "media_player.plex_pc",
  3848. "vt": "str"
  3849. },
  3850. {
  3851. "t": "cont",
  3852. "v": "media_player.hotbox_tv",
  3853. "vt": "str"
  3854. },
  3855. {
  3856. "t": "cont",
  3857. "v": "media_player.living_room_tv",
  3858. "vt": "str"
  3859. }
  3860. ],
  3861. "checkall": "false",
  3862. "repair": true,
  3863. "outputs": 3,
  3864. "x": 4290,
  3865. "y": 260,
  3866. "wires": [
  3867. [
  3868. "51b0caa0.d2faf4"
  3869. ],
  3870. [
  3871. "5eef71cc.3993c"
  3872. ],
  3873. [
  3874. "c90b6400.c22aa8"
  3875. ]
  3876. ]
  3877. },
  3878. {
  3879. "id": "f1186296.b96b4",
  3880. "type": "api-call-service",
  3881. "z": "46e39e32.08f7c",
  3882. "name": "V. Up S",
  3883. "server": "7ab5c227.a3ce8c",
  3884. "version": 1,
  3885. "debugenabled": false,
  3886. "service_domain": "media_player",
  3887. "service": "volume_up",
  3888. "entityId": "",
  3889. "data": "",
  3890. "dataType": "json",
  3891. "mergecontext": "",
  3892. "output_location": "payload",
  3893. "output_location_type": "msg",
  3894. "mustacheAltTags": false,
  3895. "x": 4620,
  3896. "y": 300,
  3897. "wires": [
  3898. []
  3899. ]
  3900. },
  3901. {
  3902. "id": "1729344f.8a69cc",
  3903. "type": "switch",
  3904. "z": "46e39e32.08f7c",
  3905. "name": "Tv",
  3906. "property": "payload.data.entity_id",
  3907. "propertyType": "msg",
  3908. "rules": [
  3909. {
  3910. "t": "cont",
  3911. "v": "media_player.plex_pc",
  3912. "vt": "str"
  3913. },
  3914. {
  3915. "t": "cont",
  3916. "v": "media_player.hotbox_tv",
  3917. "vt": "str"
  3918. },
  3919. {
  3920. "t": "cont",
  3921. "v": "media_player.living_room_tv",
  3922. "vt": "str"
  3923. }
  3924. ],
  3925. "checkall": "false",
  3926. "repair": true,
  3927. "outputs": 3,
  3928. "x": 4470,
  3929. "y": 360,
  3930. "wires": [
  3931. [
  3932. "559da70e.505828"
  3933. ],
  3934. [
  3935. "648b68a.f1c0498"
  3936. ],
  3937. [
  3938. "d0cbcb06.6d1b08"
  3939. ]
  3940. ]
  3941. },
  3942. {
  3943. "id": "f41fe5c8.de8c48",
  3944. "type": "api-call-service",
  3945. "z": "46e39e32.08f7c",
  3946. "name": "V. down S",
  3947. "server": "7ab5c227.a3ce8c",
  3948. "version": 1,
  3949. "debugenabled": false,
  3950. "service_domain": "media_player",
  3951. "service": "volume_down",
  3952. "entityId": "",
  3953. "data": "",
  3954. "dataType": "json",
  3955. "mergecontext": "",
  3956. "output_location": "payload",
  3957. "output_location_type": "msg",
  3958. "mustacheAltTags": false,
  3959. "x": 4760,
  3960. "y": 440,
  3961. "wires": [
  3962. []
  3963. ]
  3964. },
  3965. {
  3966. "id": "46cd54c9.21102c",
  3967. "type": "switch",
  3968. "z": "46e39e32.08f7c",
  3969. "name": "",
  3970. "property": "command",
  3971. "propertyType": "msg",
  3972. "rules": [
  3973. {
  3974. "t": "cont",
  3975. "v": "on",
  3976. "vt": "str"
  3977. },
  3978. {
  3979. "t": "cont",
  3980. "v": "up",
  3981. "vt": "str"
  3982. },
  3983. {
  3984. "t": "cont",
  3985. "v": "down",
  3986. "vt": "str"
  3987. },
  3988. {
  3989. "t": "cont",
  3990. "v": "off",
  3991. "vt": "str"
  3992. }
  3993. ],
  3994. "checkall": "true",
  3995. "repair": false,
  3996. "outputs": 4,
  3997. "x": 4490,
  3998. "y": 740,
  3999. "wires": [
  4000. [
  4001. "b0707a5a.151448"
  4002. ],
  4003. [
  4004. "3313a3c2.841f1c"
  4005. ],
  4006. [
  4007. "8126fe05.09a54"
  4008. ],
  4009. [
  4010. "700f1b85.042fd4"
  4011. ]
  4012. ]
  4013. },
  4014. {
  4015. "id": "d92e2f4c.07677",
  4016. "type": "change",
  4017. "z": "46e39e32.08f7c",
  4018. "name": "HotBox",
  4019. "rules": [
  4020. {
  4021. "t": "set",
  4022. "p": "payload",
  4023. "pt": "msg",
  4024. "to": "{\"data\":{\"entity_id\":[\"light.hotbox_lights\"]}}",
  4025. "tot": "json"
  4026. }
  4027. ],
  4028. "action": "",
  4029. "property": "",
  4030. "from": "",
  4031. "to": "",
  4032. "reg": false,
  4033. "x": 4160,
  4034. "y": 720,
  4035. "wires": [
  4036. [
  4037. "46cd54c9.21102c"
  4038. ]
  4039. ]
  4040. },
  4041. {
  4042. "id": "1e0cbd28.8484d3",
  4043. "type": "api-current-state",
  4044. "z": "46e39e32.08f7c",
  4045. "name": "Hotbox down",
  4046. "server": "7ab5c227.a3ce8c",
  4047. "version": 1,
  4048. "outputs": 2,
  4049. "halt_if": "on",
  4050. "halt_if_type": "str",
  4051. "halt_if_compare": "is",
  4052. "override_topic": false,
  4053. "entity_id": "binary_sensor.motion_hotbox_down",
  4054. "state_type": "str",
  4055. "state_location": "",
  4056. "override_payload": "none",
  4057. "entity_location": "",
  4058. "override_data": "none",
  4059. "blockInputOverrides": false,
  4060. "x": 3950,
  4061. "y": 720,
  4062. "wires": [
  4063. [
  4064. "ccf6313e.6591f"
  4065. ],
  4066. []
  4067. ]
  4068. },
  4069. {
  4070. "id": "4d88cc46.5d62a4",
  4071. "type": "api-current-state",
  4072. "z": "46e39e32.08f7c",
  4073. "name": "Hotbox top",
  4074. "server": "7ab5c227.a3ce8c",
  4075. "version": 1,
  4076. "outputs": 2,
  4077. "halt_if": "on",
  4078. "halt_if_type": "str",
  4079. "halt_if_compare": "is",
  4080. "override_topic": false,
  4081. "entity_id": "binary_sensor.motion_hotbox_top",
  4082. "state_type": "str",
  4083. "state_location": "",
  4084. "override_payload": "none",
  4085. "entity_location": "",
  4086. "override_data": "none",
  4087. "blockInputOverrides": false,
  4088. "x": 3950,
  4089. "y": 760,
  4090. "wires": [
  4091. [
  4092. "7ddde00e.acdd1"
  4093. ],
  4094. []
  4095. ]
  4096. },
  4097. {
  4098. "id": "8a92acaf.0d67",
  4099. "type": "api-current-state",
  4100. "z": "46e39e32.08f7c",
  4101. "name": "Hotbox All",
  4102. "server": "7ab5c227.a3ce8c",
  4103. "version": 1,
  4104. "outputs": 2,
  4105. "halt_if": "on",
  4106. "halt_if_type": "str",
  4107. "halt_if_compare": "is",
  4108. "override_topic": false,
  4109. "entity_id": "binary_sensor.hotbox_all_motion_off",
  4110. "state_type": "str",
  4111. "state_location": "",
  4112. "override_payload": "none",
  4113. "entity_location": "",
  4114. "override_data": "none",
  4115. "blockInputOverrides": false,
  4116. "x": 3920,
  4117. "y": 800,
  4118. "wires": [
  4119. [
  4120. "d92e2f4c.07677"
  4121. ],
  4122. []
  4123. ]
  4124. },
  4125. {
  4126. "id": "99bb6322.d29df",
  4127. "type": "switch",
  4128. "z": "46e39e32.08f7c",
  4129. "name": "",
  4130. "property": "command",
  4131. "propertyType": "msg",
  4132. "rules": [
  4133. {
  4134. "t": "cont",
  4135. "v": "on",
  4136. "vt": "str"
  4137. },
  4138. {
  4139. "t": "cont",
  4140. "v": "up",
  4141. "vt": "str"
  4142. },
  4143. {
  4144. "t": "cont",
  4145. "v": "down",
  4146. "vt": "str"
  4147. },
  4148. {
  4149. "t": "cont",
  4150. "v": "off",
  4151. "vt": "str"
  4152. }
  4153. ],
  4154. "checkall": "true",
  4155. "repair": false,
  4156. "outputs": 4,
  4157. "x": 3940,
  4158. "y": 1400,
  4159. "wires": [
  4160. [
  4161. "f6b0f40f.49e6e8"
  4162. ],
  4163. [
  4164. "95f5ed93.d4c5e"
  4165. ],
  4166. [
  4167. "8027d973.6e7c18"
  4168. ],
  4169. [
  4170. "86501ace.9dc768"
  4171. ]
  4172. ]
  4173. },
  4174. {
  4175. "id": "ae52bce9.33ff3",
  4176. "type": "change",
  4177. "z": "46e39e32.08f7c",
  4178. "name": "HotBox",
  4179. "rules": [
  4180. {
  4181. "t": "set",
  4182. "p": "payload",
  4183. "pt": "msg",
  4184. "to": "{\"data\":{\"entity_id\":\"light.hotbox_lights\"}}",
  4185. "tot": "json"
  4186. }
  4187. ],
  4188. "action": "",
  4189. "property": "",
  4190. "from": "",
  4191. "to": "",
  4192. "reg": false,
  4193. "x": 3740,
  4194. "y": 1360,
  4195. "wires": [
  4196. [
  4197. "99bb6322.d29df"
  4198. ]
  4199. ]
  4200. },
  4201. {
  4202. "id": "281aadb6.ad4402",
  4203. "type": "api-current-state",
  4204. "z": "46e39e32.08f7c",
  4205. "name": "Hotbox down",
  4206. "server": "7ab5c227.a3ce8c",
  4207. "version": 1,
  4208. "outputs": 2,
  4209. "halt_if": "on",
  4210. "halt_if_type": "str",
  4211. "halt_if_compare": "is",
  4212. "override_topic": false,
  4213. "entity_id": "binary_sensor.motion_hotbox_down",
  4214. "state_type": "str",
  4215. "state_location": "",
  4216. "override_payload": "none",
  4217. "entity_location": "",
  4218. "override_data": "none",
  4219. "blockInputOverrides": false,
  4220. "x": 3540,
  4221. "y": 1360,
  4222. "wires": [
  4223. [
  4224. "1de1baa5.2557d5"
  4225. ],
  4226. []
  4227. ]
  4228. },
  4229. {
  4230. "id": "67daac27.5e1ea4",
  4231. "type": "api-current-state",
  4232. "z": "46e39e32.08f7c",
  4233. "name": "Hotbox top",
  4234. "server": "7ab5c227.a3ce8c",
  4235. "version": 1,
  4236. "outputs": 2,
  4237. "halt_if": "on",
  4238. "halt_if_type": "str",
  4239. "halt_if_compare": "is",
  4240. "override_topic": false,
  4241. "entity_id": "binary_sensor.motion_hotbox_top",
  4242. "state_type": "str",
  4243. "state_location": "",
  4244. "override_payload": "none",
  4245. "entity_location": "",
  4246. "override_data": "none",
  4247. "blockInputOverrides": false,
  4248. "x": 3550,
  4249. "y": 1420,
  4250. "wires": [
  4251. [
  4252. "228a5ab2.4057f6"
  4253. ],
  4254. []
  4255. ]
  4256. },
  4257. {
  4258. "id": "fe02466c.7fb148",
  4259. "type": "api-current-state",
  4260. "z": "46e39e32.08f7c",
  4261. "name": "Hotbox All",
  4262. "server": "7ab5c227.a3ce8c",
  4263. "version": 1,
  4264. "outputs": 2,
  4265. "halt_if": "on",
  4266. "halt_if_type": "str",
  4267. "halt_if_compare": "is",
  4268. "override_topic": false,
  4269. "entity_id": "binary_sensor.hotbox_all_motion_off",
  4270. "state_type": "str",
  4271. "state_location": "",
  4272. "override_payload": "none",
  4273. "entity_location": "",
  4274. "override_data": "none",
  4275. "blockInputOverrides": false,
  4276. "x": 3550,
  4277. "y": 1480,
  4278. "wires": [
  4279. [
  4280. "ae52bce9.33ff3"
  4281. ],
  4282. []
  4283. ]
  4284. },
  4285. {
  4286. "id": "e4567284.916fa",
  4287. "type": "switch",
  4288. "z": "46e39e32.08f7c",
  4289. "name": "command",
  4290. "property": "command",
  4291. "propertyType": "msg",
  4292. "rules": [
  4293. {
  4294. "t": "cont",
  4295. "v": "up",
  4296. "vt": "str"
  4297. },
  4298. {
  4299. "t": "cont",
  4300. "v": "down",
  4301. "vt": "str"
  4302. }
  4303. ],
  4304. "checkall": "true",
  4305. "repair": false,
  4306. "outputs": 2,
  4307. "x": 4320,
  4308. "y": 1020,
  4309. "wires": [
  4310. [
  4311. "9f4f3e4.306fdc"
  4312. ],
  4313. [
  4314. "9d3e9529.16f558"
  4315. ]
  4316. ]
  4317. },
  4318. {
  4319. "id": "64c02220.9e555c",
  4320. "type": "change",
  4321. "z": "46e39e32.08f7c",
  4322. "name": "HotBox",
  4323. "rules": [
  4324. {
  4325. "t": "set",
  4326. "p": "payload",
  4327. "pt": "msg",
  4328. "to": "{\"data\":{\"entity_id\":\"light.hotbox_lights\"}}",
  4329. "tot": "json"
  4330. }
  4331. ],
  4332. "action": "",
  4333. "property": "",
  4334. "from": "",
  4335. "to": "",
  4336. "reg": false,
  4337. "x": 4120,
  4338. "y": 980,
  4339. "wires": [
  4340. [
  4341. "e4567284.916fa"
  4342. ]
  4343. ]
  4344. },
  4345. {
  4346. "id": "585c89d7.9d3438",
  4347. "type": "api-current-state",
  4348. "z": "46e39e32.08f7c",
  4349. "name": "Hotbox down",
  4350. "server": "7ab5c227.a3ce8c",
  4351. "version": 1,
  4352. "outputs": 2,
  4353. "halt_if": "on",
  4354. "halt_if_type": "str",
  4355. "halt_if_compare": "is",
  4356. "override_topic": false,
  4357. "entity_id": "binary_sensor.motion_hotbox_down",
  4358. "state_type": "str",
  4359. "state_location": "",
  4360. "override_payload": "none",
  4361. "entity_location": "",
  4362. "override_data": "none",
  4363. "blockInputOverrides": false,
  4364. "x": 3970,
  4365. "y": 1020,
  4366. "wires": [
  4367. [
  4368. "9f66c6d8.100f98"
  4369. ],
  4370. []
  4371. ]
  4372. },
  4373. {
  4374. "id": "aced8e47.02074",
  4375. "type": "api-current-state",
  4376. "z": "46e39e32.08f7c",
  4377. "name": "Hotbox top",
  4378. "server": "7ab5c227.a3ce8c",
  4379. "version": 1,
  4380. "outputs": 2,
  4381. "halt_if": "on",
  4382. "halt_if_type": "str",
  4383. "halt_if_compare": "is",
  4384. "override_topic": false,
  4385. "entity_id": "binary_sensor.motion_hotbox_top",
  4386. "state_type": "str",
  4387. "state_location": "",
  4388. "override_payload": "none",
  4389. "entity_location": "",
  4390. "override_data": "none",
  4391. "blockInputOverrides": false,
  4392. "x": 3970,
  4393. "y": 1060,
  4394. "wires": [
  4395. [
  4396. "247b1430.bc0f9c"
  4397. ],
  4398. []
  4399. ]
  4400. },
  4401. {
  4402. "id": "e05bcceb.64c05",
  4403. "type": "api-current-state",
  4404. "z": "46e39e32.08f7c",
  4405. "name": "Hotbox All",
  4406. "server": "7ab5c227.a3ce8c",
  4407. "version": 1,
  4408. "outputs": 2,
  4409. "halt_if": "on",
  4410. "halt_if_type": "str",
  4411. "halt_if_compare": "is",
  4412. "override_topic": false,
  4413. "entity_id": "binary_sensor.hotbox_all_motion_off",
  4414. "state_type": "str",
  4415. "state_location": "",
  4416. "override_payload": "none",
  4417. "entity_location": "",
  4418. "override_data": "none",
  4419. "blockInputOverrides": false,
  4420. "x": 3960,
  4421. "y": 1100,
  4422. "wires": [
  4423. [
  4424. "64c02220.9e555c"
  4425. ],
  4426. []
  4427. ]
  4428. },
  4429. {
  4430. "id": "518b0123.edffd",
  4431. "type": "trigger",
  4432. "z": "46e39e32.08f7c",
  4433. "op1": "",
  4434. "op2": "0",
  4435. "op1type": "nul",
  4436. "op2type": "str",
  4437. "duration": "800",
  4438. "extend": true,
  4439. "units": "ms",
  4440. "reset": "",
  4441. "bytopic": "all",
  4442. "name": "",
  4443. "x": 1300,
  4444. "y": 640,
  4445. "wires": [
  4446. [
  4447. "1220f152.65569f",
  4448. "c79b5f3b.54145"
  4449. ]
  4450. ]
  4451. },
  4452. {
  4453. "id": "9a5bcf2b.910bc",
  4454. "type": "switch",
  4455. "z": "46e39e32.08f7c",
  4456. "name": "",
  4457. "property": "command",
  4458. "propertyType": "msg",
  4459. "rules": [
  4460. {
  4461. "t": "cont",
  4462. "v": "on",
  4463. "vt": "str"
  4464. },
  4465. {
  4466. "t": "cont",
  4467. "v": "up",
  4468. "vt": "str"
  4469. },
  4470. {
  4471. "t": "cont",
  4472. "v": "down",
  4473. "vt": "str"
  4474. },
  4475. {
  4476. "t": "cont",
  4477. "v": "off",
  4478. "vt": "str"
  4479. }
  4480. ],
  4481. "checkall": "true",
  4482. "repair": false,
  4483. "outputs": 4,
  4484. "x": 4550,
  4485. "y": 100,
  4486. "wires": [
  4487. [
  4488. "3f01591e.f66d46"
  4489. ],
  4490. [
  4491. "51a60953.f78698"
  4492. ],
  4493. [
  4494. "aab90588.920bf8"
  4495. ],
  4496. [
  4497. "bb29fa80.b1edf8"
  4498. ]
  4499. ]
  4500. },
  4501. {
  4502. "id": "dc73623c.0e0ed",
  4503. "type": "debug",
  4504. "z": "46e39e32.08f7c",
  4505. "name": "",
  4506. "active": false,
  4507. "tosidebar": true,
  4508. "console": false,
  4509. "tostatus": false,
  4510. "complete": "true",
  4511. "targetType": "full",
  4512. "x": 4530,
  4513. "y": 180,
  4514. "wires": []
  4515. },
  4516. {
  4517. "id": "51b0caa0.d2faf4",
  4518. "type": "change",
  4519. "z": "46e39e32.08f7c",
  4520. "name": "Roku",
  4521. "rules": [
  4522. {
  4523. "t": "set",
  4524. "p": "payload",
  4525. "pt": "msg",
  4526. "to": "{\"data\":{\"entity_id\":\"media_player.bedroom_tv\"}}",
  4527. "tot": "json"
  4528. }
  4529. ],
  4530. "action": "",
  4531. "property": "",
  4532. "from": "",
  4533. "to": "",
  4534. "reg": false,
  4535. "x": 4430,
  4536. "y": 240,
  4537. "wires": [
  4538. [
  4539. "f1186296.b96b4"
  4540. ]
  4541. ]
  4542. },
  4543. {
  4544. "id": "5eef71cc.3993c",
  4545. "type": "change",
  4546. "z": "46e39e32.08f7c",
  4547. "name": "Roku",
  4548. "rules": [
  4549. {
  4550. "t": "set",
  4551. "p": "payload",
  4552. "pt": "msg",
  4553. "to": "{\"data\":{\"entity_id\":\"media_player.roku\"}}",
  4554. "tot": "json"
  4555. }
  4556. ],
  4557. "action": "",
  4558. "property": "",
  4559. "from": "",
  4560. "to": "",
  4561. "reg": false,
  4562. "x": 4430,
  4563. "y": 280,
  4564. "wires": [
  4565. [
  4566. "f1186296.b96b4"
  4567. ]
  4568. ]
  4569. },
  4570. {
  4571. "id": "c90b6400.c22aa8",
  4572. "type": "change",
  4573. "z": "46e39e32.08f7c",
  4574. "name": "Roku",
  4575. "rules": [
  4576. {
  4577. "t": "set",
  4578. "p": "payload",
  4579. "pt": "msg",
  4580. "to": "{\"data\":{\"entity_id\":\"media_player.living_room_lg_2\"}}",
  4581. "tot": "json"
  4582. }
  4583. ],
  4584. "action": "",
  4585. "property": "",
  4586. "from": "",
  4587. "to": "",
  4588. "reg": false,
  4589. "x": 4410,
  4590. "y": 320,
  4591. "wires": [
  4592. [
  4593. "f1186296.b96b4"
  4594. ]
  4595. ]
  4596. },
  4597. {
  4598. "id": "559da70e.505828",
  4599. "type": "change",
  4600. "z": "46e39e32.08f7c",
  4601. "name": "Roku",
  4602. "rules": [
  4603. {
  4604. "t": "set",
  4605. "p": "payload",
  4606. "pt": "msg",
  4607. "to": "{\"data\":{\"entity_id\":\"media_player.bedroom_tv\"}}",
  4608. "tot": "json"
  4609. }
  4610. ],
  4611. "action": "",
  4612. "property": "",
  4613. "from": "",
  4614. "to": "",
  4615. "reg": false,
  4616. "x": 4620,
  4617. "y": 380,
  4618. "wires": [
  4619. [
  4620. "f41fe5c8.de8c48"
  4621. ]
  4622. ]
  4623. },
  4624. {
  4625. "id": "648b68a.f1c0498",
  4626. "type": "change",
  4627. "z": "46e39e32.08f7c",
  4628. "name": "Roku",
  4629. "rules": [
  4630. {
  4631. "t": "set",
  4632. "p": "payload",
  4633. "pt": "msg",
  4634. "to": "{\"data\":{\"entity_id\":\"media_player.roku\"}}",
  4635. "tot": "json"
  4636. }
  4637. ],
  4638. "action": "",
  4639. "property": "",
  4640. "from": "",
  4641. "to": "",
  4642. "reg": false,
  4643. "x": 4610,
  4644. "y": 340,
  4645. "wires": [
  4646. [
  4647. "f41fe5c8.de8c48"
  4648. ]
  4649. ]
  4650. },
  4651. {
  4652. "id": "d0cbcb06.6d1b08",
  4653. "type": "change",
  4654. "z": "46e39e32.08f7c",
  4655. "name": "Roku",
  4656. "rules": [
  4657. {
  4658. "t": "set",
  4659. "p": "payload",
  4660. "pt": "msg",
  4661. "to": "{\"data\":{\"entity_id\":\"media_player.living_room_lg_2\"}}",
  4662. "tot": "json"
  4663. }
  4664. ],
  4665. "action": "",
  4666. "property": "",
  4667. "from": "",
  4668. "to": "",
  4669. "reg": false,
  4670. "x": 4610,
  4671. "y": 400,
  4672. "wires": [
  4673. [
  4674. "f41fe5c8.de8c48"
  4675. ]
  4676. ]
  4677. },
  4678. {
  4679. "id": "b0707a5a.151448",
  4680. "type": "api-call-service",
  4681. "z": "46e39e32.08f7c",
  4682. "name": "Lights on",
  4683. "server": "7ab5c227.a3ce8c",
  4684. "version": 1,
  4685. "debugenabled": false,
  4686. "service_domain": "light",
  4687. "service": "turn_on",
  4688. "entityId": "",
  4689. "data": "",
  4690. "dataType": "json",
  4691. "mergecontext": "",
  4692. "output_location": "",
  4693. "output_location_type": "none",
  4694. "mustacheAltTags": false,
  4695. "x": 4700,
  4696. "y": 700,
  4697. "wires": [
  4698. []
  4699. ]
  4700. },
  4701. {
  4702. "id": "3313a3c2.841f1c",
  4703. "type": "api-call-service",
  4704. "z": "46e39e32.08f7c",
  4705. "name": "Brigthen lights",
  4706. "server": "7ab5c227.a3ce8c",
  4707. "version": 1,
  4708. "debugenabled": false,
  4709. "service_domain": "light",
  4710. "service": "turn_on",
  4711. "entityId": "",
  4712. "data": "{\"brightness_step\":25}",
  4713. "dataType": "json",
  4714. "mergecontext": "",
  4715. "output_location": "",
  4716. "output_location_type": "none",
  4717. "mustacheAltTags": false,
  4718. "x": 4740,
  4719. "y": 740,
  4720. "wires": [
  4721. []
  4722. ]
  4723. },
  4724. {
  4725. "id": "8126fe05.09a54",
  4726. "type": "api-call-service",
  4727. "z": "46e39e32.08f7c",
  4728. "name": "Dim lights",
  4729. "server": "7ab5c227.a3ce8c",
  4730. "version": 1,
  4731. "debugenabled": false,
  4732. "service_domain": "light",
  4733. "service": "turn_on",
  4734. "entityId": "",
  4735. "data": "{\"brightness_step\":-35}",
  4736. "dataType": "json",
  4737. "mergecontext": "",
  4738. "output_location": "",
  4739. "output_location_type": "none",
  4740. "mustacheAltTags": false,
  4741. "x": 4720,
  4742. "y": 780,
  4743. "wires": [
  4744. []
  4745. ]
  4746. },
  4747. {
  4748. "id": "700f1b85.042fd4",
  4749. "type": "api-call-service",
  4750. "z": "46e39e32.08f7c",
  4751. "name": "Lights off",
  4752. "server": "7ab5c227.a3ce8c",
  4753. "version": 1,
  4754. "debugenabled": false,
  4755. "service_domain": "light",
  4756. "service": "turn_off",
  4757. "entityId": "",
  4758. "data": "",
  4759. "dataType": "json",
  4760. "mergecontext": "",
  4761. "output_location": "",
  4762. "output_location_type": "none",
  4763. "mustacheAltTags": false,
  4764. "x": 4720,
  4765. "y": 820,
  4766. "wires": [
  4767. []
  4768. ]
  4769. },
  4770. {
  4771. "id": "ccf6313e.6591f",
  4772. "type": "change",
  4773. "z": "46e39e32.08f7c",
  4774. "name": "HotBox Down",
  4775. "rules": [
  4776. {
  4777. "t": "set",
  4778. "p": "payload",
  4779. "pt": "msg",
  4780. "to": "{\"data\":{\"entity_id\":[\"light.hotbox_down\"]}}",
  4781. "tot": "json"
  4782. }
  4783. ],
  4784. "action": "",
  4785. "property": "",
  4786. "from": "",
  4787. "to": "",
  4788. "reg": false,
  4789. "x": 4160,
  4790. "y": 760,
  4791. "wires": [
  4792. [
  4793. "46cd54c9.21102c"
  4794. ]
  4795. ]
  4796. },
  4797. {
  4798. "id": "7ddde00e.acdd1",
  4799. "type": "change",
  4800. "z": "46e39e32.08f7c",
  4801. "name": "HotBox Wall",
  4802. "rules": [
  4803. {
  4804. "t": "set",
  4805. "p": "payload",
  4806. "pt": "msg",
  4807. "to": "{\"data\":{\"entity_id\":[\"light.hotbox_wall\"]}}",
  4808. "tot": "json"
  4809. }
  4810. ],
  4811. "action": "",
  4812. "property": "",
  4813. "from": "",
  4814. "to": "",
  4815. "reg": false,
  4816. "x": 4150,
  4817. "y": 800,
  4818. "wires": [
  4819. [
  4820. "46cd54c9.21102c"
  4821. ]
  4822. ]
  4823. },
  4824. {
  4825. "id": "f6b0f40f.49e6e8",
  4826. "type": "change",
  4827. "z": "46e39e32.08f7c",
  4828. "name": "set id to curent state",
  4829. "rules": [
  4830. {
  4831. "t": "set",
  4832. "p": "payload.entity_id",
  4833. "pt": "msg",
  4834. "to": "payload.data.entity_id",
  4835. "tot": "msg"
  4836. }
  4837. ],
  4838. "action": "",
  4839. "property": "",
  4840. "from": "",
  4841. "to": "",
  4842. "reg": false,
  4843. "x": 4110,
  4844. "y": 1340,
  4845. "wires": [
  4846. [
  4847. "401b9615.f012d8",
  4848. "728b19d0.ee5098"
  4849. ]
  4850. ]
  4851. },
  4852. {
  4853. "id": "95f5ed93.d4c5e",
  4854. "type": "change",
  4855. "z": "46e39e32.08f7c",
  4856. "name": "set id to curent state",
  4857. "rules": [
  4858. {
  4859. "t": "set",
  4860. "p": "payload.entity_id",
  4861. "pt": "msg",
  4862. "to": "payload.data.entity_id",
  4863. "tot": "msg"
  4864. }
  4865. ],
  4866. "action": "",
  4867. "property": "",
  4868. "from": "",
  4869. "to": "",
  4870. "reg": false,
  4871. "x": 4130,
  4872. "y": 1380,
  4873. "wires": [
  4874. [
  4875. "b59e4b3.cbd33b8"
  4876. ]
  4877. ]
  4878. },
  4879. {
  4880. "id": "8027d973.6e7c18",
  4881. "type": "change",
  4882. "z": "46e39e32.08f7c",
  4883. "name": "set id to curent state",
  4884. "rules": [
  4885. {
  4886. "t": "set",
  4887. "p": "payload.entity_id",
  4888. "pt": "msg",
  4889. "to": "payload.data.entity_id",
  4890. "tot": "msg"
  4891. }
  4892. ],
  4893. "action": "",
  4894. "property": "",
  4895. "from": "",
  4896. "to": "",
  4897. "reg": false,
  4898. "x": 4130,
  4899. "y": 1420,
  4900. "wires": [
  4901. [
  4902. "6c597de3.399c64"
  4903. ]
  4904. ]
  4905. },
  4906. {
  4907. "id": "86501ace.9dc768",
  4908. "type": "change",
  4909. "z": "46e39e32.08f7c",
  4910. "name": "set id to curent state",
  4911. "rules": [
  4912. {
  4913. "t": "set",
  4914. "p": "payload.entity_id",
  4915. "pt": "msg",
  4916. "to": "payload.data.entity_id",
  4917. "tot": "msg"
  4918. }
  4919. ],
  4920. "action": "",
  4921. "property": "",
  4922. "from": "",
  4923. "to": "",
  4924. "reg": false,
  4925. "x": 4110,
  4926. "y": 1460,
  4927. "wires": [
  4928. [
  4929. "d2395327.50788"
  4930. ]
  4931. ]
  4932. },
  4933. {
  4934. "id": "1de1baa5.2557d5",
  4935. "type": "change",
  4936. "z": "46e39e32.08f7c",
  4937. "name": "HotBox Down",
  4938. "rules": [
  4939. {
  4940. "t": "set",
  4941. "p": "payload",
  4942. "pt": "msg",
  4943. "to": "{\"data\":{\"entity_id\":\"light.hotbox_down\"}}",
  4944. "tot": "json"
  4945. }
  4946. ],
  4947. "action": "",
  4948. "property": "",
  4949. "from": "",
  4950. "to": "",
  4951. "reg": false,
  4952. "x": 3760,
  4953. "y": 1400,
  4954. "wires": [
  4955. [
  4956. "99bb6322.d29df"
  4957. ]
  4958. ]
  4959. },
  4960. {
  4961. "id": "228a5ab2.4057f6",
  4962. "type": "change",
  4963. "z": "46e39e32.08f7c",
  4964. "name": "HotBox Wall",
  4965. "rules": [
  4966. {
  4967. "t": "set",
  4968. "p": "payload",
  4969. "pt": "msg",
  4970. "to": "{\"data\":{\"entity_id\":\"light.hotbox_wall\"}}",
  4971. "tot": "json"
  4972. }
  4973. ],
  4974. "action": "",
  4975. "property": "",
  4976. "from": "",
  4977. "to": "",
  4978. "reg": false,
  4979. "x": 3750,
  4980. "y": 1440,
  4981. "wires": [
  4982. [
  4983. "99bb6322.d29df"
  4984. ]
  4985. ]
  4986. },
  4987. {
  4988. "id": "9f4f3e4.306fdc",
  4989. "type": "api-call-service",
  4990. "z": "46e39e32.08f7c",
  4991. "name": "max brightness",
  4992. "server": "7ab5c227.a3ce8c",
  4993. "version": 1,
  4994. "debugenabled": false,
  4995. "service_domain": "light",
  4996. "service": "turn_on",
  4997. "entityId": "",
  4998. "data": "{\"brightness_pct\":100}",
  4999. "dataType": "json",
  5000. "mergecontext": "",
  5001. "output_location": "",
  5002. "output_location_type": "none",
  5003. "mustacheAltTags": false,
  5004. "x": 4520,
  5005. "y": 980,
  5006. "wires": [
  5007. []
  5008. ]
  5009. },
  5010. {
  5011. "id": "9d3e9529.16f558",
  5012. "type": "api-call-service",
  5013. "z": "46e39e32.08f7c",
  5014. "name": "min brightness",
  5015. "server": "7ab5c227.a3ce8c",
  5016. "version": 1,
  5017. "debugenabled": false,
  5018. "service_domain": "light",
  5019. "service": "turn_on",
  5020. "entityId": "",
  5021. "data": "{\"brightness_pct\":15}",
  5022. "dataType": "json",
  5023. "mergecontext": "",
  5024. "output_location": "",
  5025. "output_location_type": "none",
  5026. "mustacheAltTags": false,
  5027. "x": 4520,
  5028. "y": 1020,
  5029. "wires": [
  5030. []
  5031. ]
  5032. },
  5033. {
  5034. "id": "9f66c6d8.100f98",
  5035. "type": "change",
  5036. "z": "46e39e32.08f7c",
  5037. "name": "HotBox Down",
  5038. "rules": [
  5039. {
  5040. "t": "set",
  5041. "p": "payload",
  5042. "pt": "msg",
  5043. "to": "{\"data\":{\"entity_id\":[\"light.hotbox_down\"]}}",
  5044. "tot": "json"
  5045. }
  5046. ],
  5047. "action": "",
  5048. "property": "",
  5049. "from": "",
  5050. "to": "",
  5051. "reg": false,
  5052. "x": 4140,
  5053. "y": 1020,
  5054. "wires": [
  5055. [
  5056. "e4567284.916fa"
  5057. ]
  5058. ]
  5059. },
  5060. {
  5061. "id": "247b1430.bc0f9c",
  5062. "type": "change",
  5063. "z": "46e39e32.08f7c",
  5064. "name": "HotBox Wall",
  5065. "rules": [
  5066. {
  5067. "t": "set",
  5068. "p": "payload",
  5069. "pt": "msg",
  5070. "to": "{\"data\":{\"entity_id\":[\"light.hotbox_wall\"]}}",
  5071. "tot": "json"
  5072. }
  5073. ],
  5074. "action": "",
  5075. "property": "",
  5076. "from": "",
  5077. "to": "",
  5078. "reg": false,
  5079. "x": 4130,
  5080. "y": 1060,
  5081. "wires": [
  5082. [
  5083. "e4567284.916fa"
  5084. ]
  5085. ]
  5086. },
  5087. {
  5088. "id": "1220f152.65569f",
  5089. "type": "delay",
  5090. "z": "46e39e32.08f7c",
  5091. "name": "Delay",
  5092. "pauseType": "delay",
  5093. "timeout": "1",
  5094. "timeoutUnits": "milliseconds",
  5095. "rate": "1",
  5096. "nbRateUnits": "1",
  5097. "rateUnits": "second",
  5098. "randomFirst": "1",
  5099. "randomLast": "5",
  5100. "randomUnits": "seconds",
  5101. "drop": false,
  5102. "x": 1270,
  5103. "y": 600,
  5104. "wires": [
  5105. [
  5106. "a1e8a3c4.e4fc4"
  5107. ]
  5108. ]
  5109. },
  5110. {
  5111. "id": "fbfe0617.3fbbc8",
  5112. "type": "api-current-state",
  5113. "z": "46e39e32.08f7c",
  5114. "name": "Watch",
  5115. "server": "7ab5c227.a3ce8c",
  5116. "version": 1,
  5117. "outputs": 1,
  5118. "halt_if": "",
  5119. "halt_if_type": "str",
  5120. "halt_if_compare": "is",
  5121. "override_topic": true,
  5122. "entity_id": "sensor.galaxywatch",
  5123. "state_type": "str",
  5124. "state_location": "location",
  5125. "override_payload": "msg",
  5126. "entity_location": "",
  5127. "override_data": "none",
  5128. "blockInputOverrides": false,
  5129. "x": 1030,
  5130. "y": 540,
  5131. "wires": [
  5132. [
  5133. "518b0123.edffd",
  5134. "2ec8ec26.2c8d24"
  5135. ]
  5136. ]
  5137. },
  5138. {
  5139. "id": "3f01591e.f66d46",
  5140. "type": "api-call-service",
  5141. "z": "46e39e32.08f7c",
  5142. "name": "Lights on",
  5143. "server": "7ab5c227.a3ce8c",
  5144. "version": 1,
  5145. "debugenabled": false,
  5146. "service_domain": "light",
  5147. "service": "turn_on",
  5148. "entityId": "",
  5149. "data": "",
  5150. "dataType": "json",
  5151. "mergecontext": "",
  5152. "output_location": "",
  5153. "output_location_type": "none",
  5154. "mustacheAltTags": false,
  5155. "x": 4740,
  5156. "y": 60,
  5157. "wires": [
  5158. []
  5159. ]
  5160. },
  5161. {
  5162. "id": "51a60953.f78698",
  5163. "type": "api-call-service",
  5164. "z": "46e39e32.08f7c",
  5165. "name": "Brigthen lights",
  5166. "server": "7ab5c227.a3ce8c",
  5167. "version": 1,
  5168. "debugenabled": false,
  5169. "service_domain": "light",
  5170. "service": "turn_on",
  5171. "entityId": "",
  5172. "data": "{\"brightness_step\":25}",
  5173. "dataType": "json",
  5174. "mergecontext": "",
  5175. "output_location": "",
  5176. "output_location_type": "none",
  5177. "mustacheAltTags": false,
  5178. "x": 4760,
  5179. "y": 100,
  5180. "wires": [
  5181. []
  5182. ]
  5183. },
  5184. {
  5185. "id": "aab90588.920bf8",
  5186. "type": "api-call-service",
  5187. "z": "46e39e32.08f7c",
  5188. "name": "Dim lights",
  5189. "server": "7ab5c227.a3ce8c",
  5190. "version": 1,
  5191. "debugenabled": false,
  5192. "service_domain": "light",
  5193. "service": "turn_on",
  5194. "entityId": "",
  5195. "data": "{\"brightness_step\":-35}",
  5196. "dataType": "json",
  5197. "mergecontext": "",
  5198. "output_location": "",
  5199. "output_location_type": "none",
  5200. "mustacheAltTags": false,
  5201. "x": 4740,
  5202. "y": 140,
  5203. "wires": [
  5204. []
  5205. ]
  5206. },
  5207. {
  5208. "id": "bb29fa80.b1edf8",
  5209. "type": "api-call-service",
  5210. "z": "46e39e32.08f7c",
  5211. "name": "Lights off",
  5212. "server": "7ab5c227.a3ce8c",
  5213. "version": 1,
  5214. "debugenabled": false,
  5215. "service_domain": "light",
  5216. "service": "turn_off",
  5217. "entityId": "",
  5218. "data": "",
  5219. "dataType": "json",
  5220. "mergecontext": "",
  5221. "output_location": "",
  5222. "output_location_type": "none",
  5223. "mustacheAltTags": false,
  5224. "x": 4740,
  5225. "y": 180,
  5226. "wires": [
  5227. []
  5228. ]
  5229. },
  5230. {
  5231. "id": "401b9615.f012d8",
  5232. "type": "api-current-state",
  5233. "z": "46e39e32.08f7c",
  5234. "name": "",
  5235. "server": "7ab5c227.a3ce8c",
  5236. "version": 1,
  5237. "outputs": 1,
  5238. "halt_if": "",
  5239. "halt_if_type": "str",
  5240. "halt_if_compare": "is",
  5241. "override_topic": false,
  5242. "entity_id": "",
  5243. "state_type": "str",
  5244. "state_location": "",
  5245. "override_payload": "none",
  5246. "entity_location": "color",
  5247. "override_data": "msg",
  5248. "blockInputOverrides": false,
  5249. "x": 4310,
  5250. "y": 1340,
  5251. "wires": [
  5252. [
  5253. "a9f77b94.af8768",
  5254. "5905a25b.3ef3bc"
  5255. ]
  5256. ]
  5257. },
  5258. {
  5259. "id": "728b19d0.ee5098",
  5260. "type": "debug",
  5261. "z": "46e39e32.08f7c",
  5262. "name": "",
  5263. "active": false,
  5264. "tosidebar": true,
  5265. "console": false,
  5266. "tostatus": false,
  5267. "complete": "true",
  5268. "targetType": "full",
  5269. "x": 4330,
  5270. "y": 1280,
  5271. "wires": []
  5272. },
  5273. {
  5274. "id": "b59e4b3.cbd33b8",
  5275. "type": "api-current-state",
  5276. "z": "46e39e32.08f7c",
  5277. "name": "",
  5278. "server": "7ab5c227.a3ce8c",
  5279. "version": 1,
  5280. "outputs": 1,
  5281. "halt_if": "",
  5282. "halt_if_type": "str",
  5283. "halt_if_compare": "is",
  5284. "override_topic": false,
  5285. "entity_id": "",
  5286. "state_type": "str",
  5287. "state_location": "",
  5288. "override_payload": "none",
  5289. "entity_location": "color",
  5290. "override_data": "msg",
  5291. "blockInputOverrides": false,
  5292. "x": 4330,
  5293. "y": 1380,
  5294. "wires": [
  5295. [
  5296. "52b21c6.3d858e4"
  5297. ]
  5298. ]
  5299. },
  5300. {
  5301. "id": "6c597de3.399c64",
  5302. "type": "api-current-state",
  5303. "z": "46e39e32.08f7c",
  5304. "name": "",
  5305. "server": "7ab5c227.a3ce8c",
  5306. "version": 1,
  5307. "outputs": 1,
  5308. "halt_if": "",
  5309. "halt_if_type": "str",
  5310. "halt_if_compare": "is",
  5311. "override_topic": false,
  5312. "entity_id": "",
  5313. "state_type": "str",
  5314. "state_location": "",
  5315. "override_payload": "none",
  5316. "entity_location": "color",
  5317. "override_data": "msg",
  5318. "blockInputOverrides": false,
  5319. "x": 4330,
  5320. "y": 1420,
  5321. "wires": [
  5322. [
  5323. "5509e9db.4342e8"
  5324. ]
  5325. ]
  5326. },
  5327. {
  5328. "id": "d2395327.50788",
  5329. "type": "api-current-state",
  5330. "z": "46e39e32.08f7c",
  5331. "name": "",
  5332. "server": "7ab5c227.a3ce8c",
  5333. "version": 1,
  5334. "outputs": 1,
  5335. "halt_if": "",
  5336. "halt_if_type": "str",
  5337. "halt_if_compare": "is",
  5338. "override_topic": false,
  5339. "entity_id": "",
  5340. "state_type": "str",
  5341. "state_location": "",
  5342. "override_payload": "none",
  5343. "entity_location": "color",
  5344. "override_data": "msg",
  5345. "blockInputOverrides": false,
  5346. "x": 4310,
  5347. "y": 1460,
  5348. "wires": [
  5349. [
  5350. "337b32b9.f57c1e"
  5351. ]
  5352. ]
  5353. },
  5354. {
  5355. "id": "a1e8a3c4.e4fc4",
  5356. "type": "change",
  5357. "z": "46e39e32.08f7c",
  5358. "name": "Reset",
  5359. "rules": [
  5360. {
  5361. "t": "set",
  5362. "p": "reset",
  5363. "pt": "msg",
  5364. "to": "foo",
  5365. "tot": "str"
  5366. },
  5367. {
  5368. "t": "delete",
  5369. "p": "payload",
  5370. "pt": "msg"
  5371. }
  5372. ],
  5373. "action": "",
  5374. "property": "",
  5375. "from": "",
  5376. "to": "",
  5377. "reg": false,
  5378. "x": 1450,
  5379. "y": 600,
  5380. "wires": [
  5381. [
  5382. "2ec8ec26.2c8d24"
  5383. ]
  5384. ]
  5385. },
  5386. {
  5387. "id": "2ec8ec26.2c8d24",
  5388. "type": "counter",
  5389. "z": "46e39e32.08f7c",
  5390. "name": "",
  5391. "init": "0",
  5392. "step": "1",
  5393. "lower": "",
  5394. "upper": "",
  5395. "mode": "increment",
  5396. "outputs": "1",
  5397. "x": 1450,
  5398. "y": 540,
  5399. "wires": [
  5400. [
  5401. "ba36d3c4.f64f1"
  5402. ]
  5403. ]
  5404. },
  5405. {
  5406. "id": "d6b7c7f.3115938",
  5407. "type": "change",
  5408. "z": "46e39e32.08f7c",
  5409. "name": "command",
  5410. "rules": [
  5411. {
  5412. "t": "set",
  5413. "p": "command",
  5414. "pt": "msg",
  5415. "to": "up",
  5416. "tot": "str"
  5417. }
  5418. ],
  5419. "action": "",
  5420. "property": "",
  5421. "from": "",
  5422. "to": "",
  5423. "reg": false,
  5424. "x": 890,
  5425. "y": 460,
  5426. "wires": [
  5427. [
  5428. "fbfe0617.3fbbc8"
  5429. ]
  5430. ]
  5431. },
  5432. {
  5433. "id": "a93b4372.30c0d",
  5434. "type": "change",
  5435. "z": "46e39e32.08f7c",
  5436. "name": "command",
  5437. "rules": [
  5438. {
  5439. "t": "set",
  5440. "p": "command",
  5441. "pt": "msg",
  5442. "to": "down",
  5443. "tot": "str"
  5444. }
  5445. ],
  5446. "action": "",
  5447. "property": "",
  5448. "from": "",
  5449. "to": "",
  5450. "reg": false,
  5451. "x": 890,
  5452. "y": 500,
  5453. "wires": [
  5454. [
  5455. "fbfe0617.3fbbc8"
  5456. ]
  5457. ]
  5458. },
  5459. {
  5460. "id": "e6fcf885.722e18",
  5461. "type": "change",
  5462. "z": "46e39e32.08f7c",
  5463. "name": "command",
  5464. "rules": [
  5465. {
  5466. "t": "set",
  5467. "p": "command",
  5468. "pt": "msg",
  5469. "to": "off",
  5470. "tot": "str"
  5471. }
  5472. ],
  5473. "action": "",
  5474. "property": "",
  5475. "from": "",
  5476. "to": "",
  5477. "reg": false,
  5478. "x": 790,
  5479. "y": 540,
  5480. "wires": [
  5481. [
  5482. "fbfe0617.3fbbc8"
  5483. ]
  5484. ]
  5485. },
  5486. {
  5487. "id": "cce8a306.9195b",
  5488. "type": "change",
  5489. "z": "46e39e32.08f7c",
  5490. "name": "command",
  5491. "rules": [
  5492. {
  5493. "t": "set",
  5494. "p": "command",
  5495. "pt": "msg",
  5496. "to": "on",
  5497. "tot": "str"
  5498. }
  5499. ],
  5500. "action": "",
  5501. "property": "",
  5502. "from": "",
  5503. "to": "",
  5504. "reg": false,
  5505. "x": 790,
  5506. "y": 580,
  5507. "wires": [
  5508. [
  5509. "fbfe0617.3fbbc8"
  5510. ]
  5511. ]
  5512. },
  5513. {
  5514. "id": "a9f77b94.af8768",
  5515. "type": "function",
  5516. "z": "46e39e32.08f7c",
  5517. "name": "color",
  5518. "func": "var color1 = msg.color.attributes.rgb_color[0];\nvar color2 = msg.color.attributes.rgb_color[1];\nvar color3 = msg.color.attributes.rgb_color[2];\n\nif (color1 == 255 && color2 > 253 && color3 > 253){\n var newColor = \"white\";\n} else {\n var newColor = \"other\";\n}\n\nvar newMsg = {\n \"color\": newColor,\n \"payload\": {\n \"data\": {\n \"entity_id\": msg.payload.entity_id\n }\n }\n};\nreturn newMsg;",
  5519. "outputs": 1,
  5520. "noerr": 0,
  5521. "x": 4460,
  5522. "y": 1340,
  5523. "wires": [
  5524. [
  5525. "8e01e05f.8bead"
  5526. ]
  5527. ]
  5528. },
  5529. {
  5530. "id": "5905a25b.3ef3bc",
  5531. "type": "debug",
  5532. "z": "46e39e32.08f7c",
  5533. "name": "",
  5534. "active": false,
  5535. "tosidebar": true,
  5536. "console": false,
  5537. "tostatus": false,
  5538. "complete": "true",
  5539. "targetType": "full",
  5540. "x": 4470,
  5541. "y": 1180,
  5542. "wires": []
  5543. },
  5544. {
  5545. "id": "52b21c6.3d858e4",
  5546. "type": "function",
  5547. "z": "46e39e32.08f7c",
  5548. "name": "color",
  5549. "func": "var color1 = msg.color.attributes.rgb_color[0];\nvar color2 = msg.color.attributes.rgb_color[1];\nvar color3 = msg.color.attributes.rgb_color[2];\n\nif (color1 == 0 && color2 == 0 && color3 == 255){\n var newColor = \"blue\";\n} else {\n var newColor = \"other\";\n}\n\nvar newMsg = {\n \"color\": newColor,\n \"payload\": {\n \"data\": {\n \"entity_id\": msg.payload.entity_id\n }\n }\n};\nreturn newMsg;",
  5550. "outputs": 1,
  5551. "noerr": 0,
  5552. "x": 4480,
  5553. "y": 1380,
  5554. "wires": [
  5555. [
  5556. "75d00827.3451b8"
  5557. ]
  5558. ]
  5559. },
  5560. {
  5561. "id": "5509e9db.4342e8",
  5562. "type": "function",
  5563. "z": "46e39e32.08f7c",
  5564. "name": "color",
  5565. "func": "var color1 = msg.color.attributes.rgb_color[0];\nvar color2 = msg.color.attributes.rgb_color[1];\nvar color3 = msg.color.attributes.rgb_color[2];\n\nif (color1 == 0 && color2 == 255 && color3 == 0){\n var newColor = \"green\";\n} else {\n var newColor = \"other\";\n}\n\nvar newMsg = {\n \"color\": newColor,\n \"payload\": {\n \"data\": {\n \"entity_id\": msg.payload.entity_id\n }\n }\n};\nreturn newMsg;",
  5566. "outputs": 1,
  5567. "noerr": 0,
  5568. "x": 4480,
  5569. "y": 1420,
  5570. "wires": [
  5571. [
  5572. "740feca4.38cfb4"
  5573. ]
  5574. ]
  5575. },
  5576. {
  5577. "id": "337b32b9.f57c1e",
  5578. "type": "function",
  5579. "z": "46e39e32.08f7c",
  5580. "name": "color",
  5581. "func": "var color1 = msg.color.attributes.rgb_color[0];\nvar color2 = msg.color.attributes.rgb_color[1];\nvar color3 = msg.color.attributes.rgb_color[2];\n\nif (color1 == 255 && color2 == 254 && color3 == 0){\n var newColor = \"yellow\";\n} else {\n var newColor = \"other\";\n}\n\nvar newMsg = {\n \"color\": newColor,\n \"payload\": {\n \"data\": {\n \"entity_id\": msg.payload.entity_id\n }\n }\n};\nreturn newMsg;",
  5582. "outputs": 1,
  5583. "noerr": 0,
  5584. "x": 4460,
  5585. "y": 1460,
  5586. "wires": [
  5587. [
  5588. "1760cc86.fbfe23"
  5589. ]
  5590. ]
  5591. },
  5592. {
  5593. "id": "1cbcc9ec.c15fd6",
  5594. "type": "inject",
  5595. "z": "46e39e32.08f7c",
  5596. "name": "Reset",
  5597. "topic": "",
  5598. "payload": "",
  5599. "payloadType": "date",
  5600. "repeat": "",
  5601. "crontab": "",
  5602. "once": true,
  5603. "onceDelay": "0.5",
  5604. "x": 1270,
  5605. "y": 560,
  5606. "wires": [
  5607. [
  5608. "a1e8a3c4.e4fc4"
  5609. ]
  5610. ]
  5611. },
  5612. {
  5613. "id": "ba36d3c4.f64f1",
  5614. "type": "change",
  5615. "z": "46e39e32.08f7c",
  5616. "name": "Flow set",
  5617. "rules": [
  5618. {
  5619. "t": "set",
  5620. "p": "count",
  5621. "pt": "flow",
  5622. "to": "count",
  5623. "tot": "msg"
  5624. }
  5625. ],
  5626. "action": "",
  5627. "property": "",
  5628. "from": "",
  5629. "to": "",
  5630. "reg": false,
  5631. "x": 1610,
  5632. "y": 540,
  5633. "wires": [
  5634. [
  5635. "b1a9d8cf.8b5468"
  5636. ]
  5637. ]
  5638. },
  5639. {
  5640. "id": "693f683a.522e18",
  5641. "type": "switch",
  5642. "z": "46e39e32.08f7c",
  5643. "name": "Ste?",
  5644. "property": "payload.event.args[0]",
  5645. "propertyType": "msg",
  5646. "rules": [
  5647. {
  5648. "t": "eq",
  5649. "v": "0",
  5650. "vt": "num"
  5651. },
  5652. {
  5653. "t": "eq",
  5654. "v": "1",
  5655. "vt": "str"
  5656. }
  5657. ],
  5658. "checkall": "true",
  5659. "repair": false,
  5660. "outputs": 2,
  5661. "x": 760,
  5662. "y": 500,
  5663. "wires": [
  5664. [
  5665. "d6b7c7f.3115938"
  5666. ],
  5667. [
  5668. "a93b4372.30c0d"
  5669. ]
  5670. ]
  5671. },
  5672. {
  5673. "id": "e6f53bb.be945c8",
  5674. "type": "switch",
  5675. "z": "46e39e32.08f7c",
  5676. "name": "Command?",
  5677. "property": "payload.event.command",
  5678. "propertyType": "msg",
  5679. "rules": [
  5680. {
  5681. "t": "eq",
  5682. "v": "step",
  5683. "vt": "str"
  5684. },
  5685. {
  5686. "t": "eq",
  5687. "v": "off_with_effect",
  5688. "vt": "str"
  5689. },
  5690. {
  5691. "t": "eq",
  5692. "v": "on",
  5693. "vt": "str"
  5694. }
  5695. ],
  5696. "checkall": "true",
  5697. "repair": false,
  5698. "outputs": 3,
  5699. "x": 610,
  5700. "y": 520,
  5701. "wires": [
  5702. [
  5703. "693f683a.522e18"
  5704. ],
  5705. [
  5706. "e6fcf885.722e18"
  5707. ],
  5708. [
  5709. "cce8a306.9195b"
  5710. ]
  5711. ]
  5712. },
  5713. {
  5714. "id": "8e01e05f.8bead",
  5715. "type": "switch",
  5716. "z": "46e39e32.08f7c",
  5717. "name": "",
  5718. "property": "color",
  5719. "propertyType": "msg",
  5720. "rules": [
  5721. {
  5722. "t": "neq",
  5723. "v": "white",
  5724. "vt": "str"
  5725. },
  5726. {
  5727. "t": "eq",
  5728. "v": "white",
  5729. "vt": "str"
  5730. }
  5731. ],
  5732. "checkall": "true",
  5733. "repair": false,
  5734. "outputs": 2,
  5735. "x": 4680,
  5736. "y": 1340,
  5737. "wires": [
  5738. [
  5739. "c5e092d6.d2a7f"
  5740. ],
  5741. [
  5742. "b2894d96.6c3bb"
  5743. ]
  5744. ]
  5745. },
  5746. {
  5747. "id": "75d00827.3451b8",
  5748. "type": "switch",
  5749. "z": "46e39e32.08f7c",
  5750. "name": "",
  5751. "property": "color",
  5752. "propertyType": "msg",
  5753. "rules": [
  5754. {
  5755. "t": "neq",
  5756. "v": "blue",
  5757. "vt": "str"
  5758. },
  5759. {
  5760. "t": "eq",
  5761. "v": "blue",
  5762. "vt": "str"
  5763. }
  5764. ],
  5765. "checkall": "true",
  5766. "repair": false,
  5767. "outputs": 2,
  5768. "x": 4680,
  5769. "y": 1380,
  5770. "wires": [
  5771. [
  5772. "d9ca0602.927158"
  5773. ],
  5774. [
  5775. "e04874.57fc379"
  5776. ]
  5777. ]
  5778. },
  5779. {
  5780. "id": "740feca4.38cfb4",
  5781. "type": "switch",
  5782. "z": "46e39e32.08f7c",
  5783. "name": "",
  5784. "property": "color",
  5785. "propertyType": "msg",
  5786. "rules": [
  5787. {
  5788. "t": "neq",
  5789. "v": "green",
  5790. "vt": "str"
  5791. },
  5792. {
  5793. "t": "eq",
  5794. "v": "green",
  5795. "vt": "str"
  5796. }
  5797. ],
  5798. "checkall": "true",
  5799. "repair": false,
  5800. "outputs": 2,
  5801. "x": 4680,
  5802. "y": 1420,
  5803. "wires": [
  5804. [
  5805. "31d0c40f.d88eec"
  5806. ],
  5807. [
  5808. "31b10624.4ea06a"
  5809. ]
  5810. ]
  5811. },
  5812. {
  5813. "id": "1760cc86.fbfe23",
  5814. "type": "switch",
  5815. "z": "46e39e32.08f7c",
  5816. "name": "",
  5817. "property": "color",
  5818. "propertyType": "msg",
  5819. "rules": [
  5820. {
  5821. "t": "neq",
  5822. "v": "yellow",
  5823. "vt": "str"
  5824. },
  5825. {
  5826. "t": "eq",
  5827. "v": "yellow",
  5828. "vt": "str"
  5829. }
  5830. ],
  5831. "checkall": "true",
  5832. "repair": false,
  5833. "outputs": 2,
  5834. "x": 4660,
  5835. "y": 1460,
  5836. "wires": [
  5837. [
  5838. "4a0b8d0a.ffd5e4"
  5839. ],
  5840. [
  5841. "6d4df1fe.a678b"
  5842. ]
  5843. ]
  5844. },
  5845. {
  5846. "id": "b1a9d8cf.8b5468",
  5847. "type": "debug",
  5848. "z": "46e39e32.08f7c",
  5849. "name": "",
  5850. "active": false,
  5851. "tosidebar": true,
  5852. "console": false,
  5853. "tostatus": false,
  5854. "complete": "count",
  5855. "targetType": "msg",
  5856. "x": 1840,
  5857. "y": 540,
  5858. "wires": []
  5859. },
  5860. {
  5861. "id": "edf54e03.86a4b",
  5862. "type": "switch",
  5863. "z": "46e39e32.08f7c",
  5864. "name": "Device?",
  5865. "property": "payload.event.device_ieee",
  5866. "propertyType": "msg",
  5867. "rules": [
  5868. {
  5869. "t": "eq",
  5870. "v": "00:17:88:01:08:0b:50:a4",
  5871. "vt": "str"
  5872. }
  5873. ],
  5874. "checkall": "true",
  5875. "repair": false,
  5876. "outputs": 1,
  5877. "x": 400,
  5878. "y": 520,
  5879. "wires": [
  5880. [
  5881. "e6f53bb.be945c8",
  5882. "26715017.f2f5a"
  5883. ]
  5884. ]
  5885. },
  5886. {
  5887. "id": "c5e092d6.d2a7f",
  5888. "type": "api-call-service",
  5889. "z": "46e39e32.08f7c",
  5890. "name": "White llights",
  5891. "server": "7ab5c227.a3ce8c",
  5892. "version": 1,
  5893. "debugenabled": false,
  5894. "service_domain": "light",
  5895. "service": "turn_on",
  5896. "entityId": "",
  5897. "data": "{\"rgb_color\":[255,255,254]}",
  5898. "dataType": "json",
  5899. "mergecontext": "",
  5900. "output_location": "",
  5901. "output_location_type": "none",
  5902. "mustacheAltTags": false,
  5903. "x": 4870,
  5904. "y": 1300,
  5905. "wires": [
  5906. []
  5907. ]
  5908. },
  5909. {
  5910. "id": "b2894d96.6c3bb",
  5911. "type": "api-call-service",
  5912. "z": "46e39e32.08f7c",
  5913. "name": "Purple lights",
  5914. "server": "7ab5c227.a3ce8c",
  5915. "version": 1,
  5916. "debugenabled": false,
  5917. "service_domain": "light",
  5918. "service": "turn_on",
  5919. "entityId": "",
  5920. "data": "{\"color_name\":\"purple\"}",
  5921. "dataType": "json",
  5922. "mergecontext": "",
  5923. "output_location": "",
  5924. "output_location_type": "none",
  5925. "mustacheAltTags": false,
  5926. "x": 4880,
  5927. "y": 1340,
  5928. "wires": [
  5929. []
  5930. ]
  5931. },
  5932. {
  5933. "id": "d9ca0602.927158",
  5934. "type": "api-call-service",
  5935. "z": "46e39e32.08f7c",
  5936. "name": "Blue Lights",
  5937. "server": "7ab5c227.a3ce8c",
  5938. "version": 1,
  5939. "debugenabled": false,
  5940. "service_domain": "light",
  5941. "service": "turn_on",
  5942. "entityId": "",
  5943. "data": "{\"color_name\":\"blue\"}",
  5944. "dataType": "json",
  5945. "mergecontext": "",
  5946. "output_location": "",
  5947. "output_location_type": "none",
  5948. "mustacheAltTags": false,
  5949. "x": 4880,
  5950. "y": 1380,
  5951. "wires": [
  5952. []
  5953. ]
  5954. },
  5955. {
  5956. "id": "e04874.57fc379",
  5957. "type": "api-call-service",
  5958. "z": "46e39e32.08f7c",
  5959. "name": "Red lights",
  5960. "server": "7ab5c227.a3ce8c",
  5961. "version": 1,
  5962. "debugenabled": false,
  5963. "service_domain": "light",
  5964. "service": "turn_on",
  5965. "entityId": "",
  5966. "data": "{\"color_name\":\"red\"}",
  5967. "dataType": "json",
  5968. "mergecontext": "",
  5969. "output_location": "",
  5970. "output_location_type": "none",
  5971. "mustacheAltTags": false,
  5972. "x": 4890,
  5973. "y": 1420,
  5974. "wires": [
  5975. []
  5976. ]
  5977. },
  5978. {
  5979. "id": "31d0c40f.d88eec",
  5980. "type": "api-call-service",
  5981. "z": "46e39e32.08f7c",
  5982. "name": "GReen Lights",
  5983. "server": "7ab5c227.a3ce8c",
  5984. "version": 1,
  5985. "debugenabled": false,
  5986. "service_domain": "light",
  5987. "service": "turn_on",
  5988. "entityId": "",
  5989. "data": "{\"color_name\":\"green\"}",
  5990. "dataType": "json",
  5991. "mergecontext": "",
  5992. "output_location": "",
  5993. "output_location_type": "none",
  5994. "mustacheAltTags": false,
  5995. "x": 4890,
  5996. "y": 1460,
  5997. "wires": [
  5998. []
  5999. ]
  6000. },
  6001. {
  6002. "id": "31b10624.4ea06a",
  6003. "type": "api-call-service",
  6004. "z": "46e39e32.08f7c",
  6005. "name": "Orange Lights",
  6006. "server": "7ab5c227.a3ce8c",
  6007. "version": 1,
  6008. "debugenabled": false,
  6009. "service_domain": "light",
  6010. "service": "turn_on",
  6011. "entityId": "",
  6012. "data": "{\"color_name\":\"orange\"}",
  6013. "dataType": "json",
  6014. "mergecontext": "",
  6015. "output_location": "",
  6016. "output_location_type": "none",
  6017. "mustacheAltTags": false,
  6018. "x": 4890,
  6019. "y": 1500,
  6020. "wires": [
  6021. []
  6022. ]
  6023. },
  6024. {
  6025. "id": "4a0b8d0a.ffd5e4",
  6026. "type": "api-call-service",
  6027. "z": "46e39e32.08f7c",
  6028. "name": "Yellow Lights",
  6029. "server": "7ab5c227.a3ce8c",
  6030. "version": 1,
  6031. "debugenabled": false,
  6032. "service_domain": "light",
  6033. "service": "turn_on",
  6034. "entityId": "",
  6035. "data": "{\"color_name\":\"yellow\"}",
  6036. "dataType": "json",
  6037. "mergecontext": "",
  6038. "output_location": "",
  6039. "output_location_type": "none",
  6040. "mustacheAltTags": false,
  6041. "x": 4880,
  6042. "y": 1540,
  6043. "wires": [
  6044. []
  6045. ]
  6046. },
  6047. {
  6048. "id": "6d4df1fe.a678b",
  6049. "type": "api-call-service",
  6050. "z": "46e39e32.08f7c",
  6051. "name": "Cyan Lights",
  6052. "server": "7ab5c227.a3ce8c",
  6053. "version": 1,
  6054. "debugenabled": false,
  6055. "service_domain": "light",
  6056. "service": "turn_on",
  6057. "entityId": "",
  6058. "data": "{\"color_name\":\"cyan\"}",
  6059. "dataType": "json",
  6060. "mergecontext": "",
  6061. "output_location": "",
  6062. "output_location_type": "none",
  6063. "mustacheAltTags": false,
  6064. "x": 4880,
  6065. "y": 1580,
  6066. "wires": [
  6067. []
  6068. ]
  6069. },
  6070. {
  6071. "id": "dd4a9127.2cf1a",
  6072. "type": "server-events",
  6073. "z": "46e39e32.08f7c",
  6074. "name": "",
  6075. "server": "7ab5c227.a3ce8c",
  6076. "event_type": "zha_event",
  6077. "exposeToHomeAssistant": false,
  6078. "haConfig": [
  6079. {
  6080. "property": "name",
  6081. "value": ""
  6082. },
  6083. {
  6084. "property": "icon",
  6085. "value": ""
  6086. }
  6087. ],
  6088. "x": 170,
  6089. "y": 500,
  6090. "wires": [
  6091. [
  6092. "ab7f7635.28e9d8",
  6093. "edf54e03.86a4b"
  6094. ]
  6095. ]
  6096. },
  6097. {
  6098. "id": "26715017.f2f5a",
  6099. "type": "debug",
  6100. "z": "46e39e32.08f7c",
  6101. "name": "first",
  6102. "active": false,
  6103. "tosidebar": true,
  6104. "console": false,
  6105. "tostatus": false,
  6106. "complete": "true",
  6107. "targetType": "full",
  6108. "x": 610,
  6109. "y": 400,
  6110. "wires": []
  6111. },
  6112. {
  6113. "id": "ab7f7635.28e9d8",
  6114. "type": "debug",
  6115. "z": "46e39e32.08f7c",
  6116. "name": "zero",
  6117. "active": false,
  6118. "tosidebar": true,
  6119. "console": false,
  6120. "tostatus": false,
  6121. "complete": "true",
  6122. "targetType": "full",
  6123. "x": 410,
  6124. "y": 380,
  6125. "wires": []
  6126. },
  6127. {
  6128. "id": "7ab5c227.a3ce8c",
  6129. "type": "server",
  6130. "z": "",
  6131. "name": "Home Assistant",
  6132. "legacy": false,
  6133. "addon": false,
  6134. "rejectUnauthorizedCerts": false,
  6135. "ha_boolean": "y|yes|true|on|home|open",
  6136. "connectionDelay": true,
  6137. "cacheJson": false
  6138. }
  6139. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement