Advertisement
Guest User

Hue Dial 10 Update Scene

a guest
May 29th, 2024
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 107.90 KB | None | 0 0
  1. [
  2. {
  3. "id": "26dc23f0398a79c2",
  4. "type": "subflow",
  5. "name": "Multipress",
  6. "info": "",
  7. "category": "",
  8. "in": [
  9. {
  10. "x": 40,
  11. "y": 460,
  12. "wires": [
  13. {
  14. "id": "c2c049ba0d3221b1"
  15. },
  16. {
  17. "id": "38fadaf395ea0d75"
  18. },
  19. {
  20. "id": "72c4dc5febf27b7b"
  21. }
  22. ]
  23. }
  24. ],
  25. "out": [
  26. {
  27. "x": 1110,
  28. "y": 220,
  29. "wires": [
  30. {
  31. "id": "a097ef0bd92f0533",
  32. "port": 0
  33. }
  34. ]
  35. },
  36. {
  37. "x": 1120,
  38. "y": 260,
  39. "wires": [
  40. {
  41. "id": "892af95c35da20eb",
  42. "port": 0
  43. }
  44. ]
  45. },
  46. {
  47. "x": 1110,
  48. "y": 300,
  49. "wires": [
  50. {
  51. "id": "d4d3d74391052d5b",
  52. "port": 0
  53. }
  54. ]
  55. },
  56. {
  57. "x": 1120,
  58. "y": 340,
  59. "wires": [
  60. {
  61. "id": "fb0d6c0a66e1df43",
  62. "port": 0
  63. }
  64. ]
  65. },
  66. {
  67. "x": 1150,
  68. "y": 400,
  69. "wires": [
  70. {
  71. "id": "f9e3c1e5b294383f",
  72. "port": 0
  73. }
  74. ]
  75. }
  76. ],
  77. "env": [],
  78. "meta": {
  79. "module": "multipress",
  80. "version": "0.0.1",
  81. "author": "Torben Stallknecht <[email protected]>",
  82. "desc": "Multi button press flow"
  83. },
  84. "color": "#3FADB5",
  85. "inputLabels": [
  86. "No Of pushes"
  87. ],
  88. "outputLabels": [
  89. "Single",
  90. "Double",
  91. "Tripple",
  92. "Quadro",
  93. "Complete payload"
  94. ],
  95. "status": {
  96. "x": 1080,
  97. "y": 160,
  98. "wires": [
  99. {
  100. "id": "eeee16cdd86d70ce",
  101. "port": 0
  102. }
  103. ]
  104. }
  105. },
  106. {
  107. "id": "fc0263cd622c89ae",
  108. "type": "change",
  109. "z": "26dc23f0398a79c2",
  110. "name": "Reset",
  111. "rules": [
  112. {
  113. "t": "set",
  114. "p": "reset",
  115. "pt": "msg",
  116. "to": "foo",
  117. "tot": "str"
  118. },
  119. {
  120. "t": "delete",
  121. "p": "payload",
  122. "pt": "msg"
  123. }
  124. ],
  125. "action": "",
  126. "property": "",
  127. "from": "",
  128. "to": "",
  129. "reg": false,
  130. "x": 510,
  131. "y": 380,
  132. "wires": [
  133. [
  134. "38fadaf395ea0d75"
  135. ]
  136. ]
  137. },
  138. {
  139. "id": "83e63bac5a7e69c4",
  140. "type": "switch",
  141. "z": "26dc23f0398a79c2",
  142. "name": "count presses",
  143. "property": "count",
  144. "propertyType": "flow",
  145. "rules": [
  146. {
  147. "t": "eq",
  148. "v": "1",
  149. "vt": "num"
  150. },
  151. {
  152. "t": "eq",
  153. "v": "2",
  154. "vt": "num"
  155. },
  156. {
  157. "t": "eq",
  158. "v": "3",
  159. "vt": "num"
  160. },
  161. {
  162. "t": "eq",
  163. "v": "4",
  164. "vt": "num"
  165. }
  166. ],
  167. "checkall": "true",
  168. "repair": false,
  169. "outputs": 4,
  170. "x": 420,
  171. "y": 280,
  172. "wires": [
  173. [
  174. "a097ef0bd92f0533"
  175. ],
  176. [
  177. "892af95c35da20eb"
  178. ],
  179. [
  180. "d4d3d74391052d5b"
  181. ],
  182. [
  183. "fb0d6c0a66e1df43"
  184. ]
  185. ]
  186. },
  187. {
  188. "id": "c2c049ba0d3221b1",
  189. "type": "trigger",
  190. "z": "26dc23f0398a79c2",
  191. "name": "",
  192. "op1": "",
  193. "op2": "0",
  194. "op1type": "nul",
  195. "op2type": "str",
  196. "duration": "500",
  197. "extend": true,
  198. "overrideDelay": false,
  199. "units": "ms",
  200. "reset": "",
  201. "bytopic": "all",
  202. "topic": "topic",
  203. "outputs": 1,
  204. "x": 200,
  205. "y": 280,
  206. "wires": [
  207. [
  208. "9c4e7cf586f4231f",
  209. "83e63bac5a7e69c4"
  210. ]
  211. ]
  212. },
  213. {
  214. "id": "a097ef0bd92f0533",
  215. "type": "change",
  216. "z": "26dc23f0398a79c2",
  217. "name": "Single Press",
  218. "rules": [
  219. {
  220. "t": "set",
  221. "p": "payload",
  222. "pt": "msg",
  223. "to": "1",
  224. "tot": "str"
  225. }
  226. ],
  227. "action": "",
  228. "property": "",
  229. "from": "",
  230. "to": "",
  231. "reg": false,
  232. "x": 640,
  233. "y": 220,
  234. "wires": [
  235. [
  236. "f9e3c1e5b294383f",
  237. "eeee16cdd86d70ce"
  238. ]
  239. ]
  240. },
  241. {
  242. "id": "892af95c35da20eb",
  243. "type": "change",
  244. "z": "26dc23f0398a79c2",
  245. "name": "Double Press",
  246. "rules": [
  247. {
  248. "t": "set",
  249. "p": "payload",
  250. "pt": "msg",
  251. "to": "2",
  252. "tot": "num"
  253. }
  254. ],
  255. "action": "",
  256. "property": "",
  257. "from": "",
  258. "to": "",
  259. "reg": false,
  260. "x": 650,
  261. "y": 260,
  262. "wires": [
  263. [
  264. "f9e3c1e5b294383f",
  265. "eeee16cdd86d70ce"
  266. ]
  267. ]
  268. },
  269. {
  270. "id": "d4d3d74391052d5b",
  271. "type": "change",
  272. "z": "26dc23f0398a79c2",
  273. "name": "Tripple Press",
  274. "rules": [
  275. {
  276. "t": "set",
  277. "p": "payload",
  278. "pt": "msg",
  279. "to": "3",
  280. "tot": "num"
  281. }
  282. ],
  283. "action": "",
  284. "property": "",
  285. "from": "",
  286. "to": "",
  287. "reg": false,
  288. "x": 640,
  289. "y": 300,
  290. "wires": [
  291. [
  292. "f9e3c1e5b294383f",
  293. "eeee16cdd86d70ce"
  294. ]
  295. ]
  296. },
  297. {
  298. "id": "fb0d6c0a66e1df43",
  299. "type": "change",
  300. "z": "26dc23f0398a79c2",
  301. "name": "Four Press",
  302. "rules": [
  303. {
  304. "t": "set",
  305. "p": "payload",
  306. "pt": "msg",
  307. "to": "4",
  308. "tot": "num"
  309. }
  310. ],
  311. "action": "",
  312. "property": "",
  313. "from": "",
  314. "to": "",
  315. "reg": false,
  316. "x": 640,
  317. "y": 340,
  318. "wires": [
  319. [
  320. "f9e3c1e5b294383f",
  321. "eeee16cdd86d70ce"
  322. ]
  323. ]
  324. },
  325. {
  326. "id": "45f054435fe0ba3a",
  327. "type": "comment",
  328. "z": "26dc23f0398a79c2",
  329. "name": "DELAY - Instructions",
  330. "info": "In order to ensure correct triggering,\nthe delay should be set to be a little \nlonger than it would take to perfrom the maximum \namount of presses.\n\n",
  331. "x": 350,
  332. "y": 420,
  333. "wires": []
  334. },
  335. {
  336. "id": "de4eb71303ab40f6",
  337. "type": "comment",
  338. "z": "26dc23f0398a79c2",
  339. "name": "Input",
  340. "info": "",
  341. "x": 230,
  342. "y": 40,
  343. "wires": []
  344. },
  345. {
  346. "id": "508fdcc1deb34a36",
  347. "type": "comment",
  348. "z": "26dc23f0398a79c2",
  349. "name": "Outputs",
  350. "info": "Debug nodes are here now, but just connect\nthem to what ever you want.\nThe messages sent are in the nodes just before\nthe debug nodes.\n",
  351. "x": 1090,
  352. "y": 40,
  353. "wires": []
  354. },
  355. {
  356. "id": "9c4e7cf586f4231f",
  357. "type": "delay",
  358. "z": "26dc23f0398a79c2",
  359. "name": "Delay",
  360. "pauseType": "delay",
  361. "timeout": "1",
  362. "timeoutUnits": "seconds",
  363. "rate": "1",
  364. "nbRateUnits": "1",
  365. "rateUnits": "second",
  366. "randomFirst": "1",
  367. "randomLast": "5",
  368. "randomUnits": "seconds",
  369. "drop": false,
  370. "allowrate": false,
  371. "outputs": 1,
  372. "x": 390,
  373. "y": 380,
  374. "wires": [
  375. [
  376. "fc0263cd622c89ae"
  377. ]
  378. ]
  379. },
  380. {
  381. "id": "45c69515b0bc0fec",
  382. "type": "change",
  383. "z": "26dc23f0398a79c2",
  384. "name": "Flow set count",
  385. "rules": [
  386. {
  387. "t": "set",
  388. "p": "count",
  389. "pt": "flow",
  390. "to": "count",
  391. "tot": "msg"
  392. }
  393. ],
  394. "action": "",
  395. "property": "",
  396. "from": "",
  397. "to": "",
  398. "reg": false,
  399. "x": 1140,
  400. "y": 460,
  401. "wires": [
  402. []
  403. ]
  404. },
  405. {
  406. "id": "38fadaf395ea0d75",
  407. "type": "counter",
  408. "z": "26dc23f0398a79c2",
  409. "name": "Count presses",
  410. "init": "0",
  411. "step": "1",
  412. "lower": "",
  413. "upper": "",
  414. "mode": "increment",
  415. "outputs": "1",
  416. "x": 720,
  417. "y": 460,
  418. "wires": [
  419. [
  420. "45c69515b0bc0fec"
  421. ]
  422. ]
  423. },
  424. {
  425. "id": "72c4dc5febf27b7b",
  426. "type": "change",
  427. "z": "26dc23f0398a79c2",
  428. "name": "Store origional payload",
  429. "rules": [
  430. {
  431. "t": "set",
  432. "p": "org_payload",
  433. "pt": "flow",
  434. "to": "payload",
  435. "tot": "msg",
  436. "dc": true
  437. }
  438. ],
  439. "action": "",
  440. "property": "",
  441. "from": "",
  442. "to": "",
  443. "reg": false,
  444. "x": 200,
  445. "y": 500,
  446. "wires": [
  447. []
  448. ]
  449. },
  450. {
  451. "id": "f9e3c1e5b294383f",
  452. "type": "function",
  453. "z": "26dc23f0398a79c2",
  454. "name": "Merge presses with payload",
  455. "func": "var presses = msg.payload;\n\nmsg.payload = flow.get(\"org_payload\");\n\nmsg.payload.presses = presses;\nreturn msg;",
  456. "outputs": 1,
  457. "timeout": 0,
  458. "noerr": 0,
  459. "initialize": "",
  460. "finalize": "",
  461. "libs": [],
  462. "x": 920,
  463. "y": 400,
  464. "wires": [
  465. []
  466. ]
  467. },
  468. {
  469. "id": "eeee16cdd86d70ce",
  470. "type": "change",
  471. "z": "26dc23f0398a79c2",
  472. "name": "Format status",
  473. "rules": [
  474. {
  475. "t": "set",
  476. "p": "payload",
  477. "pt": "msg",
  478. "to": "{\t \"fill\":\"green\",\t \"shape\":\"dot\",\t \"text\": \"Presses: \" & payload\t}",
  479. "tot": "jsonata"
  480. }
  481. ],
  482. "action": "",
  483. "property": "",
  484. "from": "",
  485. "to": "",
  486. "reg": false,
  487. "x": 900,
  488. "y": 160,
  489. "wires": [
  490. []
  491. ]
  492. },
  493. {
  494. "id": "7f86a26448c0ffe9",
  495. "type": "tab",
  496. "label": "Hue Dial 10",
  497. "disabled": false,
  498. "info": "",
  499. "env": []
  500. },
  501. {
  502. "id": "43d7d9f1f7f178af",
  503. "type": "comment",
  504. "z": "7f86a26448c0ffe9",
  505. "name": "Philips Hue dial music control",
  506. "info": "",
  507. "x": 260,
  508. "y": 320,
  509. "wires": []
  510. },
  511. {
  512. "id": "69b3c5b610b52c51",
  513. "type": "switch",
  514. "z": "7f86a26448c0ffe9",
  515. "name": "TriActionHueTap",
  516. "property": "payload",
  517. "propertyType": "msg",
  518. "rules": [
  519. {
  520. "t": "eq",
  521. "v": "button_1_press_release",
  522. "vt": "str"
  523. },
  524. {
  525. "t": "eq",
  526. "v": "button_2_press_release",
  527. "vt": "str"
  528. },
  529. {
  530. "t": "eq",
  531. "v": "button_3_press_release",
  532. "vt": "str"
  533. },
  534. {
  535. "t": "eq",
  536. "v": "button_4_hold",
  537. "vt": "str"
  538. },
  539. {
  540. "t": "eq",
  541. "v": "button_4_press_release",
  542. "vt": "str"
  543. },
  544. {
  545. "t": "eq",
  546. "v": "button_2_hold",
  547. "vt": "str"
  548. },
  549. {
  550. "t": "regex",
  551. "v": "dial_rotate_right_.*|dial_rotate_left_.*",
  552. "vt": "str",
  553. "case": false
  554. }
  555. ],
  556. "checkall": "true",
  557. "repair": false,
  558. "outputs": 7,
  559. "x": 320,
  560. "y": 600,
  561. "wires": [
  562. [
  563. "4339f482a2975da3"
  564. ],
  565. [
  566. "3b5d76660b086464"
  567. ],
  568. [
  569. "849b9bb1f87e9d14"
  570. ],
  571. [
  572. "6b7db223d715b6b0"
  573. ],
  574. [
  575. "9bdb160e541ca10a"
  576. ],
  577. [
  578. "53de8e285caa4dc2"
  579. ],
  580. [
  581. "1ab3a3345f2a9443"
  582. ]
  583. ]
  584. },
  585. {
  586. "id": "bdf3d59ad27a9947",
  587. "type": "switch",
  588. "z": "7f86a26448c0ffe9",
  589. "name": "last played?",
  590. "property": "lastplayed",
  591. "propertyType": "flow",
  592. "rules": [
  593. {
  594. "t": "eq",
  595. "v": "Discover Weekly",
  596. "vt": "str"
  597. },
  598. {
  599. "t": "eq",
  600. "v": "Disco",
  601. "vt": "str"
  602. },
  603. {
  604. "t": "eq",
  605. "v": "Flow, your personal mix",
  606. "vt": "str"
  607. },
  608. {
  609. "t": "eq",
  610. "v": "regenbogen",
  611. "vt": "str"
  612. },
  613. {
  614. "t": "else"
  615. }
  616. ],
  617. "checkall": "true",
  618. "repair": false,
  619. "outputs": 5,
  620. "x": 2770,
  621. "y": 480,
  622. "wires": [
  623. [
  624. "67d1c2aace76bcc3",
  625. "de8a985805195d5d"
  626. ],
  627. [
  628. "31a8514ea3a369e6",
  629. "169997519ce2e10a"
  630. ],
  631. [
  632. "c9b24861b3feda5c",
  633. "e437398d25926a50"
  634. ],
  635. [
  636. "b2a08f633395fad5",
  637. "22daf5dfe92c793c"
  638. ],
  639. [
  640. "af6eba8b97b15d36",
  641. "27cff7c190fd8776"
  642. ]
  643. ]
  644. },
  645. {
  646. "id": "ca828af2ae7a53da",
  647. "type": "switch",
  648. "z": "7f86a26448c0ffe9",
  649. "d": true,
  650. "name": "playing?",
  651. "property": "playerstate",
  652. "propertyType": "flow",
  653. "rules": [
  654. {
  655. "t": "neq",
  656. "v": "playing",
  657. "vt": "str"
  658. },
  659. {
  660. "t": "else"
  661. }
  662. ],
  663. "checkall": "true",
  664. "repair": false,
  665. "outputs": 2,
  666. "x": 1600,
  667. "y": 2180,
  668. "wires": [
  669. [
  670. "687e1530f7385d10"
  671. ],
  672. [
  673. "fe4aa048e6699c40"
  674. ]
  675. ]
  676. },
  677. {
  678. "id": "fe4aa048e6699c40",
  679. "type": "function",
  680. "z": "7f86a26448c0ffe9",
  681. "d": true,
  682. "name": "rotation -> volume",
  683. "func": "var currentVolume = flow.get(\"volume\") || 0.1;\nvar NEWexpectedrotation = msg.payload.rotaryevent;\nvar OLDexpectedrotation = flow.get(\"OLDexpectedrotation\") || 0;\nvar NETexpectedrotation = NEWexpectedrotation - OLDexpectedrotation;\n\n// Vérifier si NEWexpectedrotation est défini et est un nombre valide\nif (isNaN(NEWexpectedrotation)) {\n node.warn(\"NEWexpectedrotation n'est pas un nombre valide\");\n return null; // arrêter le traitement du message\n}\n\nif (msg.payload.hasOwnProperty(\"rotaryevent\")) {\n var rotaryevent = msg.payload.rotaryevent;\n if (rotaryevent == 1) {\n if (NEWexpectedrotation < 0) {\n //msg.payload = Math.round((NEWexpectedrotation) / 15);\n msg.payload = Math.round((NEWexpectedrotation) /15);\n } else if (Math.round((NEWexpectedrotation) / 25) + 1 > 9) {\n msg.payload = 8.5;\n } else {\n //msg.payload = Math.round((NEWexpectedrotation) / 25);\n msg.payload = Math.round((NEWexpectedrotation) / 2);\n }\n } else {\n if (NEWexpectedrotation < 0) {\n // msg.payload = Math.round((NETexpectedrotation) / 15);\n msg.payload = Math.round((NETexpectedrotation) /15);\n } else if (Math.round((NETexpectedrotation) / 25) + 1 > 9) {\n //msg.payload = 9;\n msg.payload = 8.5;\n } else {\n //msg.payload = Math.round((NETexpectedrotation) / 25);\n msg.payload = Math.round((NETexpectedrotation) / 2);\n }\n }\n}\n\nflow.set(\"OLDexpectedrotation\", NEWexpectedrotation);\n\nmsg.payload = (msg.payload / 100) + currentVolume;\n\nif (msg.payload < 0.01) {\n msg.payload = 0;\n}\n\nreturn msg;\n",
  684. "outputs": 1,
  685. "timeout": "",
  686. "noerr": 0,
  687. "initialize": "",
  688. "finalize": "",
  689. "libs": [],
  690. "x": 2260,
  691. "y": 2400,
  692. "wires": [
  693. [
  694. "a445632f89446fd9",
  695. "07d1ff1def880a51"
  696. ]
  697. ]
  698. },
  699. {
  700. "id": "67d1c2aace76bcc3",
  701. "type": "change",
  702. "z": "7f86a26448c0ffe9",
  703. "name": "Modify To \"Disco\"",
  704. "rules": [
  705. {
  706. "t": "set",
  707. "p": "lastplayed",
  708. "pt": "flow",
  709. "to": "Disco",
  710. "tot": "str"
  711. }
  712. ],
  713. "action": "",
  714. "property": "",
  715. "from": "",
  716. "to": "",
  717. "reg": false,
  718. "x": 3170,
  719. "y": 300,
  720. "wires": [
  721. [
  722. "386ca9ac135971c4"
  723. ]
  724. ]
  725. },
  726. {
  727. "id": "4bf1d2dd0f59af70",
  728. "type": "inject",
  729. "z": "7f86a26448c0ffe9",
  730. "name": "Auto-reset source and volume",
  731. "props": [],
  732. "repeat": "",
  733. "crontab": "26 23 * * *",
  734. "once": false,
  735. "onceDelay": 0.1,
  736. "topic": "",
  737. "x": 290,
  738. "y": 80,
  739. "wires": [
  740. [
  741. "7e6d73a06b42bec0"
  742. ]
  743. ]
  744. },
  745. {
  746. "id": "8e5d56100acb45a6",
  747. "type": "trigger",
  748. "z": "7f86a26448c0ffe9",
  749. "name": "",
  750. "op1": "light",
  751. "op2": "volume",
  752. "op1type": "str",
  753. "op2type": "str",
  754. "duration": "3",
  755. "extend": true,
  756. "overrideDelay": false,
  757. "units": "s",
  758. "reset": "StopLight",
  759. "bytopic": "all",
  760. "topic": "topic",
  761. "outputs": 1,
  762. "x": 1020,
  763. "y": 920,
  764. "wires": [
  765. [
  766. "e880641aeb36830d",
  767. "4064e2e1733df475"
  768. ]
  769. ]
  770. },
  771. {
  772. "id": "e880641aeb36830d",
  773. "type": "change",
  774. "z": "7f86a26448c0ffe9",
  775. "name": "",
  776. "rules": [
  777. {
  778. "t": "set",
  779. "p": "mode",
  780. "pt": "flow",
  781. "to": "payload",
  782. "tot": "msg"
  783. }
  784. ],
  785. "action": "",
  786. "property": "",
  787. "from": "",
  788. "to": "",
  789. "reg": false,
  790. "x": 1260,
  791. "y": 920,
  792. "wires": [
  793. []
  794. ]
  795. },
  796. {
  797. "id": "4f9fd7aeb6b12cb4",
  798. "type": "api-call-service",
  799. "z": "7f86a26448c0ffe9",
  800. "name": "toggle living room lights",
  801. "server": "92ab386eaaffa3ef",
  802. "version": 5,
  803. "debugenabled": false,
  804. "domain": "light",
  805. "service": "turn_on",
  806. "areaId": [],
  807. "deviceId": [],
  808. "entityId": [
  809. "light.credence"
  810. ],
  811. "data": "{\"brightness_step\": -150, \"transition\": 0.5}",
  812. "dataType": "json",
  813. "mergeContext": "",
  814. "mustacheAltTags": false,
  815. "outputProperties": [],
  816. "queue": "none",
  817. "output_location": "",
  818. "output_location_type": "none",
  819. "x": 1070,
  820. "y": 860,
  821. "wires": [
  822. [
  823. "4fd5ec8a743f73b4"
  824. ]
  825. ]
  826. },
  827. {
  828. "id": "c8b29b8c5557c021",
  829. "type": "api-call-service",
  830. "z": "7f86a26448c0ffe9",
  831. "name": "toggle living room lights",
  832. "server": "92ab386eaaffa3ef",
  833. "version": 5,
  834. "debugenabled": false,
  835. "domain": "light",
  836. "service": "toggle",
  837. "areaId": [],
  838. "deviceId": [],
  839. "entityId": [
  840. "light.credence"
  841. ],
  842. "data": "{\"brightness_step\": 155, \"transition\": 0.5}",
  843. "dataType": "json",
  844. "mergeContext": "",
  845. "mustacheAltTags": false,
  846. "outputProperties": [],
  847. "queue": "none",
  848. "output_location": "",
  849. "output_location_type": "none",
  850. "x": 1510,
  851. "y": 860,
  852. "wires": [
  853. []
  854. ]
  855. },
  856. {
  857. "id": "9bdb160e541ca10a",
  858. "type": "delay",
  859. "z": "7f86a26448c0ffe9",
  860. "name": "",
  861. "pauseType": "rate",
  862. "timeout": "5",
  863. "timeoutUnits": "seconds",
  864. "rate": "1",
  865. "nbRateUnits": "2",
  866. "rateUnits": "second",
  867. "randomFirst": "1",
  868. "randomLast": "5",
  869. "randomUnits": "seconds",
  870. "drop": true,
  871. "allowrate": false,
  872. "outputs": 1,
  873. "x": 800,
  874. "y": 840,
  875. "wires": [
  876. [
  877. "8e5d56100acb45a6",
  878. "4f9fd7aeb6b12cb4"
  879. ]
  880. ]
  881. },
  882. {
  883. "id": "de8a985805195d5d",
  884. "type": "api-call-service",
  885. "z": "7f86a26448c0ffe9",
  886. "name": "\"Playing Smooth Jazz radio\"",
  887. "server": "92ab386eaaffa3ef",
  888. "version": 5,
  889. "debugenabled": false,
  890. "domain": "tts",
  891. "service": "google_say",
  892. "areaId": [],
  893. "deviceId": [],
  894. "entityId": [
  895. "media_player.move"
  896. ],
  897. "data": "{\"message\":\"Playlist Vrac\",\"language\":\"fr\"}",
  898. "dataType": "json",
  899. "mergeContext": "",
  900. "mustacheAltTags": false,
  901. "outputProperties": [
  902. {
  903. "property": "meta",
  904. "propertyType": "msg",
  905. "value": "",
  906. "valueType": "data"
  907. }
  908. ],
  909. "queue": "none",
  910. "output_location": "",
  911. "output_location_type": "none",
  912. "x": 3200,
  913. "y": 340,
  914. "wires": [
  915. [
  916. "386ca9ac135971c4",
  917. "1f23819ff9254007"
  918. ]
  919. ]
  920. },
  921. {
  922. "id": "27cff7c190fd8776",
  923. "type": "api-call-service",
  924. "z": "7f86a26448c0ffe9",
  925. "name": "\"Playing Discover Weekly on Spotify\"",
  926. "server": "92ab386eaaffa3ef",
  927. "version": 5,
  928. "debugenabled": true,
  929. "domain": "tts",
  930. "service": "google_say",
  931. "areaId": [],
  932. "deviceId": [],
  933. "entityId": [
  934. "media_player.move"
  935. ],
  936. "data": "{\"message\":\"Qmusic Radio\",\"language\":\"fr\"}",
  937. "dataType": "json",
  938. "mergeContext": "",
  939. "mustacheAltTags": false,
  940. "outputProperties": [
  941. {
  942. "property": "meta",
  943. "propertyType": "msg",
  944. "value": "",
  945. "valueType": "data"
  946. }
  947. ],
  948. "queue": "none",
  949. "output_location": "",
  950. "output_location_type": "none",
  951. "x": 3230,
  952. "y": 840,
  953. "wires": [
  954. [
  955. "386ca9ac135971c4",
  956. "df70b12212777c68"
  957. ]
  958. ]
  959. },
  960. {
  961. "id": "ac194a7f31aefe85",
  962. "type": "api-call-service",
  963. "z": "7f86a26448c0ffe9",
  964. "name": "",
  965. "server": "92ab386eaaffa3ef",
  966. "version": 5,
  967. "debugenabled": false,
  968. "domain": "media_player",
  969. "service": "volume_set",
  970. "areaId": [],
  971. "deviceId": [],
  972. "entityId": [
  973. "media_player.move"
  974. ],
  975. "data": "{ \"volume_level\": {{payload}}}",
  976. "dataType": "json",
  977. "mergeContext": "",
  978. "mustacheAltTags": false,
  979. "outputProperties": [
  980. {
  981. "property": "meta",
  982. "propertyType": "msg",
  983. "value": "",
  984. "valueType": "data"
  985. }
  986. ],
  987. "queue": "none",
  988. "output_location": "",
  989. "output_location_type": "none",
  990. "x": 2630,
  991. "y": 2400,
  992. "wires": [
  993. [
  994. "4cc441fb62daa1ea"
  995. ]
  996. ]
  997. },
  998. {
  999. "id": "4cc441fb62daa1ea",
  1000. "type": "trigger",
  1001. "z": "7f86a26448c0ffe9",
  1002. "name": "",
  1003. "op1": "",
  1004. "op2": "",
  1005. "op1type": "nul",
  1006. "op2type": "payl",
  1007. "duration": "1",
  1008. "extend": true,
  1009. "overrideDelay": false,
  1010. "units": "s",
  1011. "reset": "",
  1012. "bytopic": "all",
  1013. "topic": "topic",
  1014. "outputs": 1,
  1015. "x": 2880,
  1016. "y": 2400,
  1017. "wires": [
  1018. [
  1019. "f924a53f5a27c3fe"
  1020. ]
  1021. ]
  1022. },
  1023. {
  1024. "id": "f924a53f5a27c3fe",
  1025. "type": "switch",
  1026. "z": "7f86a26448c0ffe9",
  1027. "name": "if volume 0",
  1028. "property": "volume",
  1029. "propertyType": "flow",
  1030. "rules": [
  1031. {
  1032. "t": "lte",
  1033. "v": "0",
  1034. "vt": "num"
  1035. }
  1036. ],
  1037. "checkall": "true",
  1038. "repair": false,
  1039. "outputs": 1,
  1040. "x": 3050,
  1041. "y": 2400,
  1042. "wires": [
  1043. [
  1044. "242aa30e56d30088"
  1045. ]
  1046. ]
  1047. },
  1048. {
  1049. "id": "242aa30e56d30088",
  1050. "type": "api-call-service",
  1051. "z": "7f86a26448c0ffe9",
  1052. "name": "",
  1053. "server": "92ab386eaaffa3ef",
  1054. "version": 5,
  1055. "debugenabled": false,
  1056. "domain": "media_player",
  1057. "service": "media_pause",
  1058. "areaId": [],
  1059. "deviceId": [],
  1060. "entityId": [
  1061. "media_player.move"
  1062. ],
  1063. "data": "",
  1064. "dataType": "json",
  1065. "mergeContext": "",
  1066. "mustacheAltTags": false,
  1067. "outputProperties": [
  1068. {
  1069. "property": "meta",
  1070. "propertyType": "msg",
  1071. "value": "",
  1072. "valueType": "data"
  1073. }
  1074. ],
  1075. "queue": "none",
  1076. "output_location": "",
  1077. "output_location_type": "none",
  1078. "x": 3300,
  1079. "y": 2400,
  1080. "wires": [
  1081. [
  1082. "efe0d62f44ba0bd1"
  1083. ]
  1084. ]
  1085. },
  1086. {
  1087. "id": "849b9bb1f87e9d14",
  1088. "type": "api-call-service",
  1089. "z": "7f86a26448c0ffe9",
  1090. "name": "",
  1091. "server": "92ab386eaaffa3ef",
  1092. "version": 5,
  1093. "debugenabled": false,
  1094. "domain": "media_player",
  1095. "service": "media_play_pause",
  1096. "areaId": [],
  1097. "deviceId": [],
  1098. "entityId": [
  1099. "media_player.move"
  1100. ],
  1101. "data": "",
  1102. "dataType": "json",
  1103. "mergeContext": "",
  1104. "mustacheAltTags": false,
  1105. "outputProperties": [
  1106. {
  1107. "property": "payload",
  1108. "propertyType": "msg",
  1109. "value": "",
  1110. "valueType": "data"
  1111. }
  1112. ],
  1113. "queue": "none",
  1114. "output_location": "",
  1115. "output_location_type": "none",
  1116. "x": 1200,
  1117. "y": 680,
  1118. "wires": [
  1119. [
  1120. "adc6bd185e0d316a"
  1121. ]
  1122. ]
  1123. },
  1124. {
  1125. "id": "855a54bc1ea31c1f",
  1126. "type": "api-call-service",
  1127. "z": "7f86a26448c0ffe9",
  1128. "d": true,
  1129. "name": "",
  1130. "server": "92ab386eaaffa3ef",
  1131. "version": 5,
  1132. "debugenabled": false,
  1133. "domain": "media_player",
  1134. "service": "volume_set",
  1135. "areaId": [],
  1136. "deviceId": [],
  1137. "entityId": [
  1138. "media_player.move"
  1139. ],
  1140. "data": "{\"volume_level\": 0.08}",
  1141. "dataType": "json",
  1142. "mergeContext": "",
  1143. "mustacheAltTags": false,
  1144. "outputProperties": [
  1145. {
  1146. "property": "meta",
  1147. "propertyType": "msg",
  1148. "value": "",
  1149. "valueType": "data"
  1150. }
  1151. ],
  1152. "queue": "none",
  1153. "output_location": "",
  1154. "output_location_type": "none",
  1155. "x": 2280,
  1156. "y": 2180,
  1157. "wires": [
  1158. [
  1159. "3758c9b1690e57e2",
  1160. "efe0d62f44ba0bd1"
  1161. ]
  1162. ]
  1163. },
  1164. {
  1165. "id": "3758c9b1690e57e2",
  1166. "type": "api-call-service",
  1167. "z": "7f86a26448c0ffe9",
  1168. "name": "",
  1169. "server": "92ab386eaaffa3ef",
  1170. "version": 5,
  1171. "debugenabled": false,
  1172. "domain": "media_player",
  1173. "service": "media_play",
  1174. "areaId": [],
  1175. "deviceId": [],
  1176. "entityId": [
  1177. "media_player.move"
  1178. ],
  1179. "data": "",
  1180. "dataType": "json",
  1181. "mergeContext": "",
  1182. "mustacheAltTags": false,
  1183. "outputProperties": [
  1184. {
  1185. "property": "meta",
  1186. "propertyType": "msg",
  1187. "value": "",
  1188. "valueType": "data"
  1189. }
  1190. ],
  1191. "queue": "none",
  1192. "output_location": "",
  1193. "output_location_type": "none",
  1194. "x": 3110,
  1195. "y": 2020,
  1196. "wires": [
  1197. [
  1198. "efe0d62f44ba0bd1"
  1199. ]
  1200. ]
  1201. },
  1202. {
  1203. "id": "f4fd5405872c666b",
  1204. "type": "api-call-service",
  1205. "z": "7f86a26448c0ffe9",
  1206. "name": "",
  1207. "server": "92ab386eaaffa3ef",
  1208. "version": 5,
  1209. "debugenabled": false,
  1210. "domain": "media_player",
  1211. "service": "media_previous_track",
  1212. "areaId": [],
  1213. "deviceId": [],
  1214. "entityId": [
  1215. "media_player.move"
  1216. ],
  1217. "data": "",
  1218. "dataType": "json",
  1219. "mergeContext": "",
  1220. "mustacheAltTags": false,
  1221. "outputProperties": [
  1222. {
  1223. "property": "payload",
  1224. "propertyType": "msg",
  1225. "value": "",
  1226. "valueType": "data"
  1227. }
  1228. ],
  1229. "queue": "none",
  1230. "output_location": "",
  1231. "output_location_type": "none",
  1232. "x": 1210,
  1233. "y": 500,
  1234. "wires": [
  1235. [
  1236. "adc6bd185e0d316a"
  1237. ]
  1238. ]
  1239. },
  1240. {
  1241. "id": "561b3393c91a65ee",
  1242. "type": "api-call-service",
  1243. "z": "7f86a26448c0ffe9",
  1244. "name": "",
  1245. "server": "92ab386eaaffa3ef",
  1246. "version": 5,
  1247. "debugenabled": false,
  1248. "domain": "media_player",
  1249. "service": "media_next_track",
  1250. "areaId": [],
  1251. "deviceId": [],
  1252. "entityId": [
  1253. "media_player.move"
  1254. ],
  1255. "data": "",
  1256. "dataType": "json",
  1257. "mergeContext": "",
  1258. "mustacheAltTags": false,
  1259. "outputProperties": [
  1260. {
  1261. "property": "payload",
  1262. "propertyType": "msg",
  1263. "value": "",
  1264. "valueType": "data"
  1265. }
  1266. ],
  1267. "queue": "none",
  1268. "output_location": "",
  1269. "output_location_type": "none",
  1270. "x": 1190,
  1271. "y": 560,
  1272. "wires": [
  1273. [
  1274. "adc6bd185e0d316a"
  1275. ]
  1276. ]
  1277. },
  1278. {
  1279. "id": "c33a8c48c1aa6f3b",
  1280. "type": "api-call-service",
  1281. "z": "7f86a26448c0ffe9",
  1282. "name": "",
  1283. "server": "92ab386eaaffa3ef",
  1284. "version": 5,
  1285. "debugenabled": false,
  1286. "domain": "media_player",
  1287. "service": "media_play",
  1288. "areaId": [],
  1289. "deviceId": [],
  1290. "entityId": [
  1291. "media_player.move"
  1292. ],
  1293. "data": "",
  1294. "dataType": "json",
  1295. "mergeContext": "",
  1296. "mustacheAltTags": false,
  1297. "outputProperties": [],
  1298. "queue": "none",
  1299. "output_location": "",
  1300. "output_location_type": "none",
  1301. "x": 3990,
  1302. "y": 840,
  1303. "wires": [
  1304. [
  1305. "fa4820cce656fd80"
  1306. ]
  1307. ]
  1308. },
  1309. {
  1310. "id": "fa4820cce656fd80",
  1311. "type": "api-call-service",
  1312. "z": "7f86a26448c0ffe9",
  1313. "name": "",
  1314. "server": "92ab386eaaffa3ef",
  1315. "version": 5,
  1316. "debugenabled": false,
  1317. "domain": "media_player",
  1318. "service": "shuffle_set",
  1319. "areaId": [],
  1320. "deviceId": [],
  1321. "entityId": [
  1322. "media_player.move"
  1323. ],
  1324. "data": "{\"shuffle\": true}",
  1325. "dataType": "json",
  1326. "mergeContext": "",
  1327. "mustacheAltTags": false,
  1328. "outputProperties": [],
  1329. "queue": "none",
  1330. "output_location": "",
  1331. "output_location_type": "none",
  1332. "x": 4270,
  1333. "y": 840,
  1334. "wires": [
  1335. []
  1336. ]
  1337. },
  1338. {
  1339. "id": "bd2cdd2f4bbc4472",
  1340. "type": "api-call-service",
  1341. "z": "7f86a26448c0ffe9",
  1342. "name": "",
  1343. "server": "92ab386eaaffa3ef",
  1344. "version": 5,
  1345. "debugenabled": false,
  1346. "domain": "media_player",
  1347. "service": "media_play",
  1348. "areaId": [],
  1349. "deviceId": [],
  1350. "entityId": [
  1351. "media_player.move"
  1352. ],
  1353. "data": "",
  1354. "dataType": "json",
  1355. "mergeContext": "",
  1356. "mustacheAltTags": false,
  1357. "outputProperties": [],
  1358. "queue": "none",
  1359. "output_location": "",
  1360. "output_location_type": "none",
  1361. "x": 3890,
  1362. "y": 340,
  1363. "wires": [
  1364. [
  1365. "50d81c3d72b3f558"
  1366. ]
  1367. ]
  1368. },
  1369. {
  1370. "id": "f7eb7281f2caf1aa",
  1371. "type": "api-call-service",
  1372. "z": "7f86a26448c0ffe9",
  1373. "name": "",
  1374. "server": "92ab386eaaffa3ef",
  1375. "version": 5,
  1376. "debugenabled": false,
  1377. "domain": "media_player",
  1378. "service": "volume_set",
  1379. "areaId": [],
  1380. "deviceId": [],
  1381. "entityId": [
  1382. "media_player.move"
  1383. ],
  1384. "data": "{\"volume_level\": 0.08}",
  1385. "dataType": "json",
  1386. "mergeContext": "",
  1387. "mustacheAltTags": false,
  1388. "outputProperties": [],
  1389. "queue": "none",
  1390. "output_location": "",
  1391. "output_location_type": "none",
  1392. "x": 810,
  1393. "y": 80,
  1394. "wires": [
  1395. [
  1396. "69a76da9d36c12a1"
  1397. ]
  1398. ]
  1399. },
  1400. {
  1401. "id": "69a76da9d36c12a1",
  1402. "type": "api-call-service",
  1403. "z": "7f86a26448c0ffe9",
  1404. "name": "",
  1405. "server": "92ab386eaaffa3ef",
  1406. "version": 5,
  1407. "debugenabled": false,
  1408. "domain": "media_player",
  1409. "service": "media_pause",
  1410. "areaId": [],
  1411. "deviceId": [],
  1412. "entityId": [
  1413. "media_player.move"
  1414. ],
  1415. "data": "",
  1416. "dataType": "json",
  1417. "mergeContext": "",
  1418. "mustacheAltTags": false,
  1419. "outputProperties": [],
  1420. "queue": "none",
  1421. "output_location": "",
  1422. "output_location_type": "none",
  1423. "x": 1060,
  1424. "y": 80,
  1425. "wires": [
  1426. [
  1427. "ae078c6bec362f51"
  1428. ]
  1429. ]
  1430. },
  1431. {
  1432. "id": "7e6d73a06b42bec0",
  1433. "type": "api-call-service",
  1434. "z": "7f86a26448c0ffe9",
  1435. "name": "",
  1436. "server": "92ab386eaaffa3ef",
  1437. "version": 5,
  1438. "debugenabled": false,
  1439. "domain": "media_player",
  1440. "service": "select_source",
  1441. "areaId": [],
  1442. "deviceId": [],
  1443. "entityId": [
  1444. "media_player.move"
  1445. ],
  1446. "data": "{\"source\":\"Discover Weekly\"}",
  1447. "dataType": "json",
  1448. "mergeContext": "",
  1449. "mustacheAltTags": false,
  1450. "outputProperties": [],
  1451. "queue": "none",
  1452. "output_location": "",
  1453. "output_location_type": "none",
  1454. "x": 560,
  1455. "y": 80,
  1456. "wires": [
  1457. [
  1458. "f7eb7281f2caf1aa"
  1459. ]
  1460. ]
  1461. },
  1462. {
  1463. "id": "ae078c6bec362f51",
  1464. "type": "change",
  1465. "z": "7f86a26448c0ffe9",
  1466. "name": "",
  1467. "rules": [
  1468. {
  1469. "t": "set",
  1470. "p": "lastplayed",
  1471. "pt": "flow",
  1472. "to": "Discover Weekly",
  1473. "tot": "str"
  1474. }
  1475. ],
  1476. "action": "",
  1477. "property": "",
  1478. "from": "",
  1479. "to": "",
  1480. "reg": false,
  1481. "x": 1290,
  1482. "y": 80,
  1483. "wires": [
  1484. []
  1485. ]
  1486. },
  1487. {
  1488. "id": "4fd5ec8a743f73b4",
  1489. "type": "delay",
  1490. "z": "7f86a26448c0ffe9",
  1491. "name": "",
  1492. "pauseType": "delay",
  1493. "timeout": "0.3",
  1494. "timeoutUnits": "seconds",
  1495. "rate": "1",
  1496. "nbRateUnits": "1",
  1497. "rateUnits": "second",
  1498. "randomFirst": "1",
  1499. "randomLast": "5",
  1500. "randomUnits": "seconds",
  1501. "drop": false,
  1502. "allowrate": false,
  1503. "outputs": 1,
  1504. "x": 1270,
  1505. "y": 860,
  1506. "wires": [
  1507. [
  1508. "c8b29b8c5557c021"
  1509. ]
  1510. ]
  1511. },
  1512. {
  1513. "id": "1060ac72b4f8a208",
  1514. "type": "change",
  1515. "z": "7f86a26448c0ffe9",
  1516. "name": "save volume and playing state",
  1517. "rules": [
  1518. {
  1519. "t": "set",
  1520. "p": "volume",
  1521. "pt": "flow",
  1522. "to": "media.new_state.attributes.volume_level",
  1523. "tot": "msg"
  1524. },
  1525. {
  1526. "t": "set",
  1527. "p": "playerstate",
  1528. "pt": "flow",
  1529. "to": "media.new_state.state",
  1530. "tot": "msg"
  1531. }
  1532. ],
  1533. "action": "",
  1534. "property": "",
  1535. "from": "",
  1536. "to": "",
  1537. "reg": false,
  1538. "x": 610,
  1539. "y": 420,
  1540. "wires": [
  1541. []
  1542. ]
  1543. },
  1544. {
  1545. "id": "02e73717a9f69cfb",
  1546. "type": "server-state-changed",
  1547. "z": "7f86a26448c0ffe9",
  1548. "name": "",
  1549. "server": "92ab386eaaffa3ef",
  1550. "version": 5,
  1551. "outputs": 1,
  1552. "exposeAsEntityConfig": "",
  1553. "entityId": "media_player.move",
  1554. "entityIdType": "exact",
  1555. "outputInitially": true,
  1556. "stateType": "str",
  1557. "ifState": "",
  1558. "ifStateType": "str",
  1559. "ifStateOperator": "is",
  1560. "outputOnlyOnStateChange": false,
  1561. "for": "0",
  1562. "forType": "num",
  1563. "forUnits": "minutes",
  1564. "ignorePrevStateNull": false,
  1565. "ignorePrevStateUnknown": false,
  1566. "ignorePrevStateUnavailable": false,
  1567. "ignoreCurrentStateUnknown": true,
  1568. "ignoreCurrentStateUnavailable": true,
  1569. "outputProperties": [
  1570. {
  1571. "property": "media",
  1572. "propertyType": "msg",
  1573. "value": "",
  1574. "valueType": "eventData"
  1575. }
  1576. ],
  1577. "x": 260,
  1578. "y": 380,
  1579. "wires": [
  1580. [
  1581. "1060ac72b4f8a208",
  1582. "5e8857d9e2798fd8"
  1583. ]
  1584. ]
  1585. },
  1586. {
  1587. "id": "4c759ad21fe28b89",
  1588. "type": "delay",
  1589. "z": "7f86a26448c0ffe9",
  1590. "d": true,
  1591. "name": "",
  1592. "pauseType": "rate",
  1593. "timeout": "5",
  1594. "timeoutUnits": "seconds",
  1595. "rate": "1",
  1596. "nbRateUnits": "1",
  1597. "rateUnits": "second",
  1598. "randomFirst": "1",
  1599. "randomLast": "5",
  1600. "randomUnits": "seconds",
  1601. "drop": true,
  1602. "allowrate": false,
  1603. "outputs": 1,
  1604. "x": 2070,
  1605. "y": 2180,
  1606. "wires": [
  1607. [
  1608. "855a54bc1ea31c1f"
  1609. ]
  1610. ]
  1611. },
  1612. {
  1613. "id": "a445632f89446fd9",
  1614. "type": "delay",
  1615. "z": "7f86a26448c0ffe9",
  1616. "d": true,
  1617. "name": "limit",
  1618. "pauseType": "rate",
  1619. "timeout": "5",
  1620. "timeoutUnits": "seconds",
  1621. "rate": "1",
  1622. "nbRateUnits": "0.1",
  1623. "rateUnits": "second",
  1624. "randomFirst": "1",
  1625. "randomLast": "5",
  1626. "randomUnits": "seconds",
  1627. "drop": true,
  1628. "allowrate": false,
  1629. "outputs": 1,
  1630. "x": 2440,
  1631. "y": 2400,
  1632. "wires": [
  1633. [
  1634. "ac194a7f31aefe85"
  1635. ]
  1636. ]
  1637. },
  1638. {
  1639. "id": "2b1b6ed8be41b8e5",
  1640. "type": "delay",
  1641. "z": "7f86a26448c0ffe9",
  1642. "name": "",
  1643. "pauseType": "rate",
  1644. "timeout": "5",
  1645. "timeoutUnits": "seconds",
  1646. "rate": "1",
  1647. "nbRateUnits": "2",
  1648. "rateUnits": "second",
  1649. "randomFirst": "1",
  1650. "randomLast": "5",
  1651. "randomUnits": "seconds",
  1652. "drop": true,
  1653. "allowrate": false,
  1654. "outputs": 1,
  1655. "x": 2580,
  1656. "y": 480,
  1657. "wires": [
  1658. [
  1659. "bdf3d59ad27a9947"
  1660. ]
  1661. ]
  1662. },
  1663. {
  1664. "id": "5e8857d9e2798fd8",
  1665. "type": "debug",
  1666. "z": "7f86a26448c0ffe9",
  1667. "name": "",
  1668. "active": true,
  1669. "tosidebar": true,
  1670. "console": false,
  1671. "tostatus": false,
  1672. "complete": "media.new_state.attributes.volume_level",
  1673. "targetType": "msg",
  1674. "statusVal": "",
  1675. "statusType": "auto",
  1676. "x": 650,
  1677. "y": 380,
  1678. "wires": []
  1679. },
  1680. {
  1681. "id": "adc6bd185e0d316a",
  1682. "type": "debug",
  1683. "z": "7f86a26448c0ffe9",
  1684. "name": "",
  1685. "active": false,
  1686. "tosidebar": true,
  1687. "console": false,
  1688. "tostatus": false,
  1689. "complete": "payload.service",
  1690. "targetType": "msg",
  1691. "statusVal": "",
  1692. "statusType": "auto",
  1693. "x": 1560,
  1694. "y": 560,
  1695. "wires": []
  1696. },
  1697. {
  1698. "id": "386ca9ac135971c4",
  1699. "type": "debug",
  1700. "z": "7f86a26448c0ffe9",
  1701. "name": "",
  1702. "active": true,
  1703. "tosidebar": true,
  1704. "console": false,
  1705. "tostatus": false,
  1706. "complete": "meta.data.message",
  1707. "targetType": "msg",
  1708. "statusVal": "",
  1709. "statusType": "auto",
  1710. "x": 3610,
  1711. "y": 300,
  1712. "wires": []
  1713. },
  1714. {
  1715. "id": "efe0d62f44ba0bd1",
  1716. "type": "debug",
  1717. "z": "7f86a26448c0ffe9",
  1718. "name": "",
  1719. "active": false,
  1720. "tosidebar": true,
  1721. "console": false,
  1722. "tostatus": false,
  1723. "complete": "meta.service",
  1724. "targetType": "msg",
  1725. "statusVal": "",
  1726. "statusType": "auto",
  1727. "x": 3550,
  1728. "y": 2200,
  1729. "wires": []
  1730. },
  1731. {
  1732. "id": "07d1ff1def880a51",
  1733. "type": "debug",
  1734. "z": "7f86a26448c0ffe9",
  1735. "d": true,
  1736. "name": "",
  1737. "active": true,
  1738. "tosidebar": true,
  1739. "console": false,
  1740. "tostatus": false,
  1741. "complete": "payload",
  1742. "targetType": "msg",
  1743. "statusVal": "",
  1744. "statusType": "auto",
  1745. "x": 2590,
  1746. "y": 2450,
  1747. "wires": []
  1748. },
  1749. {
  1750. "id": "35b1cd5f9649755d",
  1751. "type": "comment",
  1752. "z": "7f86a26448c0ffe9",
  1753. "name": "link to latest version of this flow",
  1754. "info": "Latest version of this flow can be found at \nhttps://flows.nodered.org/flow/c95d562d4858cbe1bf80fee95ba9815f#",
  1755. "x": 560,
  1756. "y": 320,
  1757. "wires": []
  1758. },
  1759. {
  1760. "id": "4931bbc27225a7d7",
  1761. "type": "mqtt in",
  1762. "z": "7f86a26448c0ffe9",
  1763. "name": "MQTT Trigger",
  1764. "topic": "zigbee2mqtt/HueSwitch/action",
  1765. "qos": "2",
  1766. "datatype": "auto-detect",
  1767. "broker": "99709302a818dd3b",
  1768. "nl": false,
  1769. "rap": false,
  1770. "inputs": 0,
  1771. "x": 110,
  1772. "y": 600,
  1773. "wires": [
  1774. [
  1775. "ce97660f4c735035",
  1776. "69b3c5b610b52c51"
  1777. ]
  1778. ]
  1779. },
  1780. {
  1781. "id": "ce97660f4c735035",
  1782. "type": "debug",
  1783. "z": "7f86a26448c0ffe9",
  1784. "name": "MqTT Triggerr",
  1785. "active": false,
  1786. "tosidebar": true,
  1787. "console": false,
  1788. "tostatus": false,
  1789. "complete": "payload",
  1790. "targetType": "msg",
  1791. "statusVal": "",
  1792. "statusType": "auto",
  1793. "x": 160,
  1794. "y": 720,
  1795. "wires": []
  1796. },
  1797. {
  1798. "id": "1ab3a3345f2a9443",
  1799. "type": "switch",
  1800. "z": "7f86a26448c0ffe9",
  1801. "name": "Mode Light/Temp/Volume",
  1802. "property": "mode",
  1803. "propertyType": "flow",
  1804. "rules": [
  1805. {
  1806. "t": "eq",
  1807. "v": "temperature",
  1808. "vt": "str"
  1809. },
  1810. {
  1811. "t": "eq",
  1812. "v": "volume",
  1813. "vt": "str"
  1814. },
  1815. {
  1816. "t": "eq",
  1817. "v": "light",
  1818. "vt": "str"
  1819. }
  1820. ],
  1821. "checkall": "true",
  1822. "repair": false,
  1823. "outputs": 3,
  1824. "x": 550,
  1825. "y": 1100,
  1826. "wires": [
  1827. [
  1828. "b220b796f9f7c38e",
  1829. "b4b80bfb0cbccb46"
  1830. ],
  1831. [
  1832. "cf52694a024cd0af",
  1833. "36af925053eb1254"
  1834. ],
  1835. [
  1836. "289a557d7b669421",
  1837. "00d898a5c77af9a8",
  1838. "a682a60698636eea",
  1839. "8e5d56100acb45a6"
  1840. ]
  1841. ]
  1842. },
  1843. {
  1844. "id": "b254c88688b77051",
  1845. "type": "sonos-universal",
  1846. "z": "7f86a26448c0ffe9",
  1847. "confignode": "421ce7d478b2e9b1",
  1848. "command": "group.play.mysonos",
  1849. "state": "",
  1850. "stateType": "str",
  1851. "avoidCheckPlayerAvailability": false,
  1852. "name": "",
  1853. "x": 3640,
  1854. "y": 340,
  1855. "wires": [
  1856. [
  1857. "bd2cdd2f4bbc4472"
  1858. ]
  1859. ]
  1860. },
  1861. {
  1862. "id": "1f23819ff9254007",
  1863. "type": "change",
  1864. "z": "7f86a26448c0ffe9",
  1865. "name": "",
  1866. "rules": [
  1867. {
  1868. "t": "set",
  1869. "p": "payload",
  1870. "pt": "msg",
  1871. "to": "Liste",
  1872. "tot": "str"
  1873. }
  1874. ],
  1875. "action": "",
  1876. "property": "",
  1877. "from": "",
  1878. "to": "",
  1879. "reg": false,
  1880. "x": 3440,
  1881. "y": 340,
  1882. "wires": [
  1883. [
  1884. "b254c88688b77051"
  1885. ]
  1886. ]
  1887. },
  1888. {
  1889. "id": "ca840d3c025e196b",
  1890. "type": "sonos-manage-mysonos",
  1891. "z": "7f86a26448c0ffe9",
  1892. "confignode": "421ce7d478b2e9b1",
  1893. "command": "mysonos.stream.item",
  1894. "state": "",
  1895. "stateType": "str",
  1896. "avoidCheckPlayerAvailability": false,
  1897. "name": "",
  1898. "x": 3740,
  1899. "y": 840,
  1900. "wires": [
  1901. [
  1902. "c33a8c48c1aa6f3b"
  1903. ]
  1904. ]
  1905. },
  1906. {
  1907. "id": "df70b12212777c68",
  1908. "type": "change",
  1909. "z": "7f86a26448c0ffe9",
  1910. "name": "",
  1911. "rules": [
  1912. {
  1913. "t": "set",
  1914. "p": "payload",
  1915. "pt": "msg",
  1916. "to": "Qmusic",
  1917. "tot": "str"
  1918. }
  1919. ],
  1920. "action": "",
  1921. "property": "",
  1922. "from": "",
  1923. "to": "",
  1924. "reg": false,
  1925. "x": 3500,
  1926. "y": 840,
  1927. "wires": [
  1928. [
  1929. "ca840d3c025e196b"
  1930. ]
  1931. ]
  1932. },
  1933. {
  1934. "id": "af6eba8b97b15d36",
  1935. "type": "change",
  1936. "z": "7f86a26448c0ffe9",
  1937. "name": "",
  1938. "rules": [
  1939. {
  1940. "t": "set",
  1941. "p": "lastplayed",
  1942. "pt": "flow",
  1943. "to": "Discover Weekly",
  1944. "tot": "str"
  1945. }
  1946. ],
  1947. "action": "",
  1948. "property": "",
  1949. "from": "",
  1950. "to": "",
  1951. "reg": false,
  1952. "x": 3170,
  1953. "y": 800,
  1954. "wires": [
  1955. []
  1956. ]
  1957. },
  1958. {
  1959. "id": "fe52e16b1e7b1c09",
  1960. "type": "api-call-service",
  1961. "z": "7f86a26448c0ffe9",
  1962. "name": "",
  1963. "server": "92ab386eaaffa3ef",
  1964. "version": 5,
  1965. "debugenabled": false,
  1966. "domain": "media_player",
  1967. "service": "shuffle_set",
  1968. "areaId": [],
  1969. "deviceId": [],
  1970. "entityId": [
  1971. "media_player.move"
  1972. ],
  1973. "data": "{\"shuffle\": true}",
  1974. "dataType": "json",
  1975. "mergeContext": "",
  1976. "mustacheAltTags": false,
  1977. "outputProperties": [],
  1978. "queue": "none",
  1979. "output_location": "",
  1980. "output_location_type": "none",
  1981. "x": 4090,
  1982. "y": 460,
  1983. "wires": [
  1984. []
  1985. ]
  1986. },
  1987. {
  1988. "id": "cc4046f96ad15ce2",
  1989. "type": "api-call-service",
  1990. "z": "7f86a26448c0ffe9",
  1991. "name": "",
  1992. "server": "92ab386eaaffa3ef",
  1993. "version": 5,
  1994. "debugenabled": false,
  1995. "domain": "media_player",
  1996. "service": "media_play",
  1997. "areaId": [],
  1998. "deviceId": [],
  1999. "entityId": [
  2000. "media_player.move"
  2001. ],
  2002. "data": "",
  2003. "dataType": "json",
  2004. "mergeContext": "",
  2005. "mustacheAltTags": false,
  2006. "outputProperties": [],
  2007. "queue": "none",
  2008. "output_location": "",
  2009. "output_location_type": "none",
  2010. "x": 3810,
  2011. "y": 460,
  2012. "wires": [
  2013. [
  2014. "fe52e16b1e7b1c09"
  2015. ]
  2016. ]
  2017. },
  2018. {
  2019. "id": "f9bf699dbec25482",
  2020. "type": "sonos-manage-mysonos",
  2021. "z": "7f86a26448c0ffe9",
  2022. "confignode": "421ce7d478b2e9b1",
  2023. "command": "mysonos.stream.item",
  2024. "state": "",
  2025. "stateType": "str",
  2026. "avoidCheckPlayerAvailability": false,
  2027. "name": "",
  2028. "x": 3560,
  2029. "y": 460,
  2030. "wires": [
  2031. [
  2032. "cc4046f96ad15ce2"
  2033. ]
  2034. ]
  2035. },
  2036. {
  2037. "id": "169997519ce2e10a",
  2038. "type": "change",
  2039. "z": "7f86a26448c0ffe9",
  2040. "name": "",
  2041. "rules": [
  2042. {
  2043. "t": "set",
  2044. "p": "payload",
  2045. "pt": "msg",
  2046. "to": "Viva Cité Charleroi",
  2047. "tot": "str"
  2048. }
  2049. ],
  2050. "action": "",
  2051. "property": "",
  2052. "from": "",
  2053. "to": "",
  2054. "reg": false,
  2055. "x": 3160,
  2056. "y": 460,
  2057. "wires": [
  2058. [
  2059. "9cf82b52e7db03d2"
  2060. ]
  2061. ]
  2062. },
  2063. {
  2064. "id": "31a8514ea3a369e6",
  2065. "type": "change",
  2066. "z": "7f86a26448c0ffe9",
  2067. "name": "Modify To \"Flow, your personal mix\"",
  2068. "rules": [
  2069. {
  2070. "t": "set",
  2071. "p": "lastplayed",
  2072. "pt": "flow",
  2073. "to": "Flow, your personal mix",
  2074. "tot": "str"
  2075. }
  2076. ],
  2077. "action": "",
  2078. "property": "",
  2079. "from": "",
  2080. "to": "",
  2081. "reg": false,
  2082. "x": 3220,
  2083. "y": 420,
  2084. "wires": [
  2085. []
  2086. ]
  2087. },
  2088. {
  2089. "id": "289a557d7b669421",
  2090. "type": "debug",
  2091. "z": "7f86a26448c0ffe9",
  2092. "name": "debug 172",
  2093. "active": false,
  2094. "tosidebar": true,
  2095. "console": false,
  2096. "tostatus": false,
  2097. "complete": "true",
  2098. "targetType": "full",
  2099. "statusVal": "",
  2100. "statusType": "auto",
  2101. "x": 1090,
  2102. "y": 1700,
  2103. "wires": []
  2104. },
  2105. {
  2106. "id": "85a6f85c2d9f9367",
  2107. "type": "sonos-universal",
  2108. "z": "7f86a26448c0ffe9",
  2109. "confignode": "421ce7d478b2e9b1",
  2110. "command": "group.play.mysonos",
  2111. "state": "Flow, your personal mix",
  2112. "stateType": "str",
  2113. "avoidCheckPlayerAvailability": false,
  2114. "name": "",
  2115. "x": 3520,
  2116. "y": 620,
  2117. "wires": [
  2118. [
  2119. "c288f59337b9a82f"
  2120. ]
  2121. ]
  2122. },
  2123. {
  2124. "id": "c288f59337b9a82f",
  2125. "type": "debug",
  2126. "z": "7f86a26448c0ffe9",
  2127. "name": "End Flow, your personal mix",
  2128. "active": true,
  2129. "tosidebar": true,
  2130. "console": false,
  2131. "tostatus": false,
  2132. "complete": "payload",
  2133. "targetType": "msg",
  2134. "statusVal": "",
  2135. "statusType": "auto",
  2136. "x": 3840,
  2137. "y": 620,
  2138. "wires": []
  2139. },
  2140. {
  2141. "id": "c9b24861b3feda5c",
  2142. "type": "change",
  2143. "z": "7f86a26448c0ffe9",
  2144. "name": "Modify To \"Regenbogen\"",
  2145. "rules": [
  2146. {
  2147. "t": "set",
  2148. "p": "lastplayed",
  2149. "pt": "flow",
  2150. "to": "regenbogen",
  2151. "tot": "str"
  2152. }
  2153. ],
  2154. "action": "",
  2155. "property": "",
  2156. "from": "",
  2157. "to": "",
  2158. "reg": false,
  2159. "x": 3230,
  2160. "y": 580,
  2161. "wires": [
  2162. []
  2163. ]
  2164. },
  2165. {
  2166. "id": "7445beb1f5f8513b",
  2167. "type": "debug",
  2168. "z": "7f86a26448c0ffe9",
  2169. "d": true,
  2170. "name": "debug 173",
  2171. "active": true,
  2172. "tosidebar": true,
  2173. "console": false,
  2174. "tostatus": false,
  2175. "complete": "false",
  2176. "statusVal": "",
  2177. "statusType": "auto",
  2178. "x": 1990,
  2179. "y": 2100,
  2180. "wires": []
  2181. },
  2182. {
  2183. "id": "9a061e5f0676af39",
  2184. "type": "api-call-service",
  2185. "z": "7f86a26448c0ffe9",
  2186. "name": "Set Volume UP",
  2187. "server": "92ab386eaaffa3ef",
  2188. "version": 5,
  2189. "debugenabled": false,
  2190. "domain": "media_player",
  2191. "service": "volume_up",
  2192. "areaId": [],
  2193. "deviceId": [],
  2194. "entityId": [
  2195. "media_player.move"
  2196. ],
  2197. "data": "",
  2198. "dataType": "json",
  2199. "mergeContext": "",
  2200. "mustacheAltTags": false,
  2201. "outputProperties": [],
  2202. "queue": "none",
  2203. "x": 1790,
  2204. "y": 1320,
  2205. "wires": [
  2206. [
  2207. "3758c9b1690e57e2"
  2208. ]
  2209. ]
  2210. },
  2211. {
  2212. "id": "c79cbc2eb96367a7",
  2213. "type": "api-call-service",
  2214. "z": "7f86a26448c0ffe9",
  2215. "name": "Set Volume DOWN",
  2216. "server": "92ab386eaaffa3ef",
  2217. "version": 5,
  2218. "debugenabled": false,
  2219. "domain": "media_player",
  2220. "service": "volume_down",
  2221. "areaId": [],
  2222. "deviceId": [],
  2223. "entityId": [
  2224. "media_player.move"
  2225. ],
  2226. "data": "",
  2227. "dataType": "json",
  2228. "mergeContext": "",
  2229. "mustacheAltTags": false,
  2230. "outputProperties": [],
  2231. "queue": "none",
  2232. "x": 1800,
  2233. "y": 1420,
  2234. "wires": [
  2235. [
  2236. "4cc441fb62daa1ea"
  2237. ]
  2238. ]
  2239. },
  2240. {
  2241. "id": "36af925053eb1254",
  2242. "type": "switch",
  2243. "z": "7f86a26448c0ffe9",
  2244. "name": "Switch on Dial Rotate Left",
  2245. "property": "payload",
  2246. "propertyType": "msg",
  2247. "rules": [
  2248. {
  2249. "t": "eq",
  2250. "v": "dial_rotate_left_step",
  2251. "vt": "str"
  2252. },
  2253. {
  2254. "t": "eq",
  2255. "v": "dial_rotate_left_slow",
  2256. "vt": "str"
  2257. },
  2258. {
  2259. "t": "eq",
  2260. "v": "dial_rotate_left_fast",
  2261. "vt": "str"
  2262. }
  2263. ],
  2264. "checkall": "true",
  2265. "repair": false,
  2266. "outputs": 3,
  2267. "x": 1130,
  2268. "y": 1420,
  2269. "wires": [
  2270. [
  2271. "c79cbc2eb96367a7"
  2272. ],
  2273. [
  2274. "c79cbc2eb96367a7"
  2275. ],
  2276. [
  2277. "c79cbc2eb96367a7"
  2278. ]
  2279. ]
  2280. },
  2281. {
  2282. "id": "cf52694a024cd0af",
  2283. "type": "switch",
  2284. "z": "7f86a26448c0ffe9",
  2285. "name": "Switch on Dial Rotate Right",
  2286. "property": "payload",
  2287. "propertyType": "msg",
  2288. "rules": [
  2289. {
  2290. "t": "eq",
  2291. "v": "dial_rotate_right_step",
  2292. "vt": "str"
  2293. },
  2294. {
  2295. "t": "eq",
  2296. "v": "dial_rotate_right_slow",
  2297. "vt": "str"
  2298. },
  2299. {
  2300. "t": "eq",
  2301. "v": "dial_rotate_right_fast",
  2302. "vt": "str"
  2303. }
  2304. ],
  2305. "checkall": "true",
  2306. "repair": false,
  2307. "outputs": 3,
  2308. "x": 1130,
  2309. "y": 1340,
  2310. "wires": [
  2311. [
  2312. "9a061e5f0676af39"
  2313. ],
  2314. [
  2315. "9a061e5f0676af39"
  2316. ],
  2317. [
  2318. "9a061e5f0676af39"
  2319. ]
  2320. ]
  2321. },
  2322. {
  2323. "id": "00d898a5c77af9a8",
  2324. "type": "switch",
  2325. "z": "7f86a26448c0ffe9",
  2326. "name": "Switch on Dial Rotate Left",
  2327. "property": "payload",
  2328. "propertyType": "msg",
  2329. "rules": [
  2330. {
  2331. "t": "eq",
  2332. "v": "dial_rotate_left_step",
  2333. "vt": "str"
  2334. },
  2335. {
  2336. "t": "eq",
  2337. "v": "dial_rotate_left_slow",
  2338. "vt": "str"
  2339. },
  2340. {
  2341. "t": "eq",
  2342. "v": "dial_rotate_left_fast",
  2343. "vt": "str"
  2344. }
  2345. ],
  2346. "checkall": "true",
  2347. "repair": false,
  2348. "outputs": 3,
  2349. "x": 1130,
  2350. "y": 1820,
  2351. "wires": [
  2352. [
  2353. "0584655d50c80cda"
  2354. ],
  2355. [
  2356. "0584655d50c80cda"
  2357. ],
  2358. [
  2359. "0584655d50c80cda"
  2360. ]
  2361. ]
  2362. },
  2363. {
  2364. "id": "0584655d50c80cda",
  2365. "type": "api-call-service",
  2366. "z": "7f86a26448c0ffe9",
  2367. "name": "Light Down",
  2368. "server": "92ab386eaaffa3ef",
  2369. "version": 5,
  2370. "debugenabled": false,
  2371. "domain": "light",
  2372. "service": "turn_on",
  2373. "areaId": [],
  2374. "deviceId": [],
  2375. "entityId": [
  2376. "light.credence"
  2377. ],
  2378. "data": "{\t \"brightness_step_pct\": -10}",
  2379. "dataType": "jsonata",
  2380. "mergeContext": "",
  2381. "mustacheAltTags": false,
  2382. "outputProperties": [],
  2383. "queue": "none",
  2384. "x": 1800,
  2385. "y": 1840,
  2386. "wires": [
  2387. []
  2388. ]
  2389. },
  2390. {
  2391. "id": "8ba3c470fabfc8d9",
  2392. "type": "api-call-service",
  2393. "z": "7f86a26448c0ffe9",
  2394. "name": "Light UP",
  2395. "server": "92ab386eaaffa3ef",
  2396. "version": 5,
  2397. "debugenabled": false,
  2398. "domain": "light",
  2399. "service": "turn_on",
  2400. "areaId": [],
  2401. "deviceId": [],
  2402. "entityId": [
  2403. "light.credence"
  2404. ],
  2405. "data": "{\t \"brightness_step_pct\": 10}",
  2406. "dataType": "jsonata",
  2407. "mergeContext": "",
  2408. "mustacheAltTags": false,
  2409. "outputProperties": [],
  2410. "queue": "none",
  2411. "x": 1800,
  2412. "y": 1760,
  2413. "wires": [
  2414. []
  2415. ]
  2416. },
  2417. {
  2418. "id": "a682a60698636eea",
  2419. "type": "switch",
  2420. "z": "7f86a26448c0ffe9",
  2421. "name": "Switch on Dial Rotate Right",
  2422. "property": "payload",
  2423. "propertyType": "msg",
  2424. "rules": [
  2425. {
  2426. "t": "eq",
  2427. "v": "dial_rotate_right_step",
  2428. "vt": "str"
  2429. },
  2430. {
  2431. "t": "eq",
  2432. "v": "dial_rotate_right_slow",
  2433. "vt": "str"
  2434. },
  2435. {
  2436. "t": "eq",
  2437. "v": "dial_rotate_right_fast",
  2438. "vt": "str"
  2439. }
  2440. ],
  2441. "checkall": "true",
  2442. "repair": false,
  2443. "outputs": 3,
  2444. "x": 1140,
  2445. "y": 1740,
  2446. "wires": [
  2447. [
  2448. "8ba3c470fabfc8d9"
  2449. ],
  2450. [
  2451. "8ba3c470fabfc8d9"
  2452. ],
  2453. [
  2454. "8ba3c470fabfc8d9"
  2455. ]
  2456. ]
  2457. },
  2458. {
  2459. "id": "53de8e285caa4dc2",
  2460. "type": "delay",
  2461. "z": "7f86a26448c0ffe9",
  2462. "name": "",
  2463. "pauseType": "rate",
  2464. "timeout": "5",
  2465. "timeoutUnits": "seconds",
  2466. "rate": "1",
  2467. "nbRateUnits": "2",
  2468. "rateUnits": "second",
  2469. "randomFirst": "1",
  2470. "randomLast": "5",
  2471. "randomUnits": "seconds",
  2472. "drop": true,
  2473. "allowrate": false,
  2474. "outputs": 1,
  2475. "x": 800,
  2476. "y": 1020,
  2477. "wires": [
  2478. [
  2479. "b220b796f9f7c38e"
  2480. ]
  2481. ]
  2482. },
  2483. {
  2484. "id": "b220b796f9f7c38e",
  2485. "type": "trigger",
  2486. "z": "7f86a26448c0ffe9",
  2487. "name": "",
  2488. "op1": "temperature",
  2489. "op2": "volume",
  2490. "op1type": "str",
  2491. "op2type": "str",
  2492. "duration": "3",
  2493. "extend": true,
  2494. "overrideDelay": false,
  2495. "units": "s",
  2496. "reset": "StopTemperature",
  2497. "bytopic": "all",
  2498. "topic": "payload",
  2499. "outputs": 1,
  2500. "x": 1060,
  2501. "y": 1060,
  2502. "wires": [
  2503. [
  2504. "ace79b93065e6d79",
  2505. "6ae624698bc53f1b"
  2506. ]
  2507. ]
  2508. },
  2509. {
  2510. "id": "ace79b93065e6d79",
  2511. "type": "change",
  2512. "z": "7f86a26448c0ffe9",
  2513. "name": "Temperature",
  2514. "rules": [
  2515. {
  2516. "t": "set",
  2517. "p": "mode",
  2518. "pt": "flow",
  2519. "to": "payload",
  2520. "tot": "msg"
  2521. }
  2522. ],
  2523. "action": "",
  2524. "property": "",
  2525. "from": "",
  2526. "to": "",
  2527. "reg": false,
  2528. "x": 1850,
  2529. "y": 1060,
  2530. "wires": [
  2531. []
  2532. ]
  2533. },
  2534. {
  2535. "id": "2775de41299ab7cf",
  2536. "type": "switch",
  2537. "z": "7f86a26448c0ffe9",
  2538. "name": "Switch on Dial Rotate Left",
  2539. "property": "payload",
  2540. "propertyType": "msg",
  2541. "rules": [
  2542. {
  2543. "t": "eq",
  2544. "v": "dial_rotate_left_step",
  2545. "vt": "str"
  2546. },
  2547. {
  2548. "t": "eq",
  2549. "v": "dial_rotate_left_slow",
  2550. "vt": "str"
  2551. },
  2552. {
  2553. "t": "eq",
  2554. "v": "dial_rotate_left_fast",
  2555. "vt": "str"
  2556. }
  2557. ],
  2558. "checkall": "true",
  2559. "repair": false,
  2560. "outputs": 3,
  2561. "x": 3210,
  2562. "y": 1440,
  2563. "wires": [
  2564. [
  2565. "763aea758f0e645d"
  2566. ],
  2567. [
  2568. "763aea758f0e645d"
  2569. ],
  2570. [
  2571. "763aea758f0e645d"
  2572. ]
  2573. ]
  2574. },
  2575. {
  2576. "id": "3268c55095832389",
  2577. "type": "switch",
  2578. "z": "7f86a26448c0ffe9",
  2579. "name": "Switch on Dial Rotate Right",
  2580. "property": "payload",
  2581. "propertyType": "msg",
  2582. "rules": [
  2583. {
  2584. "t": "eq",
  2585. "v": "dial_rotate_right_step",
  2586. "vt": "str"
  2587. },
  2588. {
  2589. "t": "eq",
  2590. "v": "dial_rotate_right_slow",
  2591. "vt": "str"
  2592. },
  2593. {
  2594. "t": "eq",
  2595. "v": "dial_rotate_right_fast",
  2596. "vt": "str"
  2597. }
  2598. ],
  2599. "checkall": "true",
  2600. "repair": false,
  2601. "outputs": 3,
  2602. "x": 3220,
  2603. "y": 1260,
  2604. "wires": [
  2605. [
  2606. "dba0341f9ba0de42"
  2607. ],
  2608. [
  2609. "dba0341f9ba0de42"
  2610. ],
  2611. [
  2612. "dba0341f9ba0de42"
  2613. ]
  2614. ]
  2615. },
  2616. {
  2617. "id": "fd833d0dc3a50f2a",
  2618. "type": "inject",
  2619. "z": "7f86a26448c0ffe9",
  2620. "name": "",
  2621. "props": [
  2622. {
  2623. "p": "payload"
  2624. },
  2625. {
  2626. "p": "topic",
  2627. "vt": "str"
  2628. }
  2629. ],
  2630. "repeat": "",
  2631. "crontab": "",
  2632. "once": false,
  2633. "onceDelay": 0.1,
  2634. "topic": "",
  2635. "payload": "dial_rotate_right_step",
  2636. "payloadType": "str",
  2637. "x": 2980,
  2638. "y": 1160,
  2639. "wires": [
  2640. [
  2641. "3268c55095832389"
  2642. ]
  2643. ]
  2644. },
  2645. {
  2646. "id": "ed01e60e45b1d62b",
  2647. "type": "inject",
  2648. "z": "7f86a26448c0ffe9",
  2649. "name": "",
  2650. "props": [
  2651. {
  2652. "p": "payload"
  2653. },
  2654. {
  2655. "p": "topic",
  2656. "vt": "str"
  2657. }
  2658. ],
  2659. "repeat": "",
  2660. "crontab": "",
  2661. "once": false,
  2662. "onceDelay": 0.1,
  2663. "topic": "",
  2664. "payload": "dial_rotate_left_step",
  2665. "payloadType": "str",
  2666. "x": 2970,
  2667. "y": 1560,
  2668. "wires": [
  2669. [
  2670. "2775de41299ab7cf"
  2671. ]
  2672. ]
  2673. },
  2674. {
  2675. "id": "753732637b4164c1",
  2676. "type": "api-call-service",
  2677. "z": "7f86a26448c0ffe9",
  2678. "name": "Light UP",
  2679. "server": "92ab386eaaffa3ef",
  2680. "version": 5,
  2681. "debugenabled": false,
  2682. "domain": "light",
  2683. "service": "turn_on",
  2684. "areaId": [],
  2685. "deviceId": [],
  2686. "entityId": [
  2687. "light.credence"
  2688. ],
  2689. "data": "payload",
  2690. "dataType": "jsonata",
  2691. "mergeContext": "",
  2692. "mustacheAltTags": false,
  2693. "outputProperties": [],
  2694. "queue": "none",
  2695. "x": 4100,
  2696. "y": 1200,
  2697. "wires": [
  2698. [
  2699. "3869712128d983b6"
  2700. ]
  2701. ]
  2702. },
  2703. {
  2704. "id": "50b068d480a6a157",
  2705. "type": "debug",
  2706. "z": "7f86a26448c0ffe9",
  2707. "name": "WarmColor",
  2708. "active": false,
  2709. "tosidebar": true,
  2710. "console": false,
  2711. "tostatus": false,
  2712. "complete": "payload",
  2713. "targetType": "msg",
  2714. "statusVal": "",
  2715. "statusType": "auto",
  2716. "x": 4690,
  2717. "y": 1200,
  2718. "wires": []
  2719. },
  2720. {
  2721. "id": "e93b9dc6054e4c2b",
  2722. "type": "debug",
  2723. "z": "7f86a26448c0ffe9",
  2724. "name": "Coldcolor",
  2725. "active": false,
  2726. "tosidebar": true,
  2727. "console": false,
  2728. "tostatus": false,
  2729. "complete": "payload",
  2730. "targetType": "msg",
  2731. "statusVal": "",
  2732. "statusType": "auto",
  2733. "x": 4700,
  2734. "y": 1480,
  2735. "wires": []
  2736. },
  2737. {
  2738. "id": "a20e2a9b2d75bbcd",
  2739. "type": "function",
  2740. "z": "7f86a26448c0ffe9",
  2741. "name": "GoToWarm",
  2742. "func": "// Récupérer la valeur actuelle de \"color_temp\" depuis le contexte\n//var currentColorTemp = context.get('currentColorTemp') || 154;\nvar currentColorTemp = flow.get('Temp') || 154;\n// Ajouter 10 à la valeur actuelle de \"color_temp\"\nvar newColorTemp = currentColorTemp + 32;\n\n// Limiter la nouvelle valeur de \"color_temp\" à 500\nnewColorTemp = Math.min(newColorTemp, 500);\n\n// Mettre à jour la valeur de \"color_temp\" dans le contexte\ncontext.set('currentColorTemp', newColorTemp);\n\n// Mettre à jour le payload avec la nouvelle valeur de \"color_temp\"\nmsg.payload = {\n \"color_temp\": newColorTemp\n};\n\nreturn msg;\n",
  2743. "outputs": 1,
  2744. "timeout": 0,
  2745. "noerr": 0,
  2746. "initialize": "",
  2747. "finalize": "",
  2748. "libs": [],
  2749. "x": 3910,
  2750. "y": 1200,
  2751. "wires": [
  2752. [
  2753. "753732637b4164c1",
  2754. "6eaee65f569fb2df"
  2755. ]
  2756. ]
  2757. },
  2758. {
  2759. "id": "aa16e853d85f1dd9",
  2760. "type": "inject",
  2761. "z": "7f86a26448c0ffe9",
  2762. "name": "",
  2763. "props": [
  2764. {
  2765. "p": "payload"
  2766. },
  2767. {
  2768. "p": "topic",
  2769. "vt": "str"
  2770. }
  2771. ],
  2772. "repeat": "",
  2773. "crontab": "",
  2774. "once": false,
  2775. "onceDelay": 0.1,
  2776. "topic": "",
  2777. "payload": "",
  2778. "payloadType": "date",
  2779. "x": 3680,
  2780. "y": 1120,
  2781. "wires": [
  2782. [
  2783. "a20e2a9b2d75bbcd"
  2784. ]
  2785. ]
  2786. },
  2787. {
  2788. "id": "4a0a4b548072323d",
  2789. "type": "inject",
  2790. "z": "7f86a26448c0ffe9",
  2791. "name": "",
  2792. "props": [
  2793. {
  2794. "p": "payload"
  2795. },
  2796. {
  2797. "p": "topic",
  2798. "vt": "str"
  2799. }
  2800. ],
  2801. "repeat": "",
  2802. "crontab": "",
  2803. "once": false,
  2804. "onceDelay": 0.1,
  2805. "topic": "",
  2806. "payload": "",
  2807. "payloadType": "date",
  2808. "x": 3780,
  2809. "y": 1540,
  2810. "wires": [
  2811. [
  2812. "5f87a72e61d1ba37"
  2813. ]
  2814. ]
  2815. },
  2816. {
  2817. "id": "6eaee65f569fb2df",
  2818. "type": "debug",
  2819. "z": "7f86a26448c0ffe9",
  2820. "name": "debug 174",
  2821. "active": false,
  2822. "tosidebar": true,
  2823. "console": false,
  2824. "tostatus": false,
  2825. "complete": "false",
  2826. "statusVal": "",
  2827. "statusType": "auto",
  2828. "x": 4110,
  2829. "y": 1300,
  2830. "wires": []
  2831. },
  2832. {
  2833. "id": "dba0341f9ba0de42",
  2834. "type": "api-current-state",
  2835. "z": "7f86a26448c0ffe9",
  2836. "name": "",
  2837. "server": "92ab386eaaffa3ef",
  2838. "version": 3,
  2839. "outputs": 1,
  2840. "halt_if": "",
  2841. "halt_if_type": "str",
  2842. "halt_if_compare": "is",
  2843. "entity_id": "light.credence",
  2844. "state_type": "str",
  2845. "blockInputOverrides": false,
  2846. "outputProperties": [
  2847. {
  2848. "property": "payload",
  2849. "propertyType": "msg",
  2850. "value": "",
  2851. "valueType": "entityState"
  2852. },
  2853. {
  2854. "property": "data",
  2855. "propertyType": "msg",
  2856. "value": "",
  2857. "valueType": "entity"
  2858. }
  2859. ],
  2860. "for": "0",
  2861. "forType": "num",
  2862. "forUnits": "minutes",
  2863. "override_topic": false,
  2864. "state_location": "payload",
  2865. "override_payload": "msg",
  2866. "entity_location": "data",
  2867. "override_data": "msg",
  2868. "x": 3720,
  2869. "y": 1260,
  2870. "wires": [
  2871. [
  2872. "a20e2a9b2d75bbcd"
  2873. ]
  2874. ]
  2875. },
  2876. {
  2877. "id": "3869712128d983b6",
  2878. "type": "api-current-state",
  2879. "z": "7f86a26448c0ffe9",
  2880. "name": "",
  2881. "server": "92ab386eaaffa3ef",
  2882. "version": 3,
  2883. "outputs": 1,
  2884. "halt_if": "",
  2885. "halt_if_type": "str",
  2886. "halt_if_compare": "is",
  2887. "entity_id": "light.credence",
  2888. "state_type": "str",
  2889. "blockInputOverrides": false,
  2890. "outputProperties": [
  2891. {
  2892. "property": "payload",
  2893. "propertyType": "msg",
  2894. "value": "",
  2895. "valueType": "entityState"
  2896. },
  2897. {
  2898. "property": "data",
  2899. "propertyType": "msg",
  2900. "value": "",
  2901. "valueType": "entity"
  2902. }
  2903. ],
  2904. "for": "0",
  2905. "forType": "num",
  2906. "forUnits": "minutes",
  2907. "override_topic": false,
  2908. "state_location": "payload",
  2909. "override_payload": "msg",
  2910. "entity_location": "data",
  2911. "override_data": "msg",
  2912. "x": 4420,
  2913. "y": 1200,
  2914. "wires": [
  2915. [
  2916. "50b068d480a6a157"
  2917. ]
  2918. ]
  2919. },
  2920. {
  2921. "id": "afaf9a31aebf3812",
  2922. "type": "api-current-state",
  2923. "z": "7f86a26448c0ffe9",
  2924. "name": "",
  2925. "server": "92ab386eaaffa3ef",
  2926. "version": 3,
  2927. "outputs": 1,
  2928. "halt_if": "",
  2929. "halt_if_type": "str",
  2930. "halt_if_compare": "is",
  2931. "entity_id": "light.credence",
  2932. "state_type": "str",
  2933. "blockInputOverrides": false,
  2934. "outputProperties": [
  2935. {
  2936. "property": "payload",
  2937. "propertyType": "msg",
  2938. "value": "",
  2939. "valueType": "entityState"
  2940. },
  2941. {
  2942. "property": "data",
  2943. "propertyType": "msg",
  2944. "value": "",
  2945. "valueType": "entity"
  2946. }
  2947. ],
  2948. "for": "0",
  2949. "forType": "num",
  2950. "forUnits": "minutes",
  2951. "override_topic": false,
  2952. "state_location": "payload",
  2953. "override_payload": "msg",
  2954. "entity_location": "data",
  2955. "override_data": "msg",
  2956. "x": 4420,
  2957. "y": 1480,
  2958. "wires": [
  2959. [
  2960. "e93b9dc6054e4c2b"
  2961. ]
  2962. ]
  2963. },
  2964. {
  2965. "id": "5f87a72e61d1ba37",
  2966. "type": "function",
  2967. "z": "7f86a26448c0ffe9",
  2968. "name": "GoToCold",
  2969. "func": "// Récupérer la valeur actuelle de \"color_temp\" depuis le contexte\nvar currentColorTemp = flow.get('Temp') || 500;\n\n// Soustrait 10 à la valeur actuelle de \"color_temp\"\nvar newColorTemp = currentColorTemp - 32;\n\n// Limiter la nouvelle valeur de \"color_temp\" à 154\nnewColorTemp = Math.max(newColorTemp, 154);\n\n// Mettre à jour la valeur de \"color_temp\" dans le contexte\ncontext.set('currentColorTemp', newColorTemp);\n\n// Mettre à jour le payload avec la nouvelle valeur de \"color_temp\"\nmsg.payload = {\n \"color_temp\": newColorTemp\n};\n\nreturn msg;\n",
  2970. "outputs": 1,
  2971. "timeout": 0,
  2972. "noerr": 0,
  2973. "initialize": "",
  2974. "finalize": "",
  2975. "libs": [],
  2976. "x": 3920,
  2977. "y": 1480,
  2978. "wires": [
  2979. [
  2980. "9e6c9d71af35a59b"
  2981. ]
  2982. ]
  2983. },
  2984. {
  2985. "id": "9e6c9d71af35a59b",
  2986. "type": "api-call-service",
  2987. "z": "7f86a26448c0ffe9",
  2988. "name": "Light DOWN",
  2989. "server": "92ab386eaaffa3ef",
  2990. "version": 5,
  2991. "debugenabled": false,
  2992. "domain": "light",
  2993. "service": "turn_on",
  2994. "areaId": [],
  2995. "deviceId": [],
  2996. "entityId": [
  2997. "light.credence"
  2998. ],
  2999. "data": "payload",
  3000. "dataType": "jsonata",
  3001. "mergeContext": "",
  3002. "mustacheAltTags": false,
  3003. "outputProperties": [],
  3004. "queue": "none",
  3005. "x": 4130,
  3006. "y": 1480,
  3007. "wires": [
  3008. [
  3009. "afaf9a31aebf3812"
  3010. ]
  3011. ]
  3012. },
  3013. {
  3014. "id": "763aea758f0e645d",
  3015. "type": "api-current-state",
  3016. "z": "7f86a26448c0ffe9",
  3017. "name": "",
  3018. "server": "92ab386eaaffa3ef",
  3019. "version": 3,
  3020. "outputs": 1,
  3021. "halt_if": "",
  3022. "halt_if_type": "str",
  3023. "halt_if_compare": "is",
  3024. "entity_id": "light.credence",
  3025. "state_type": "str",
  3026. "blockInputOverrides": false,
  3027. "outputProperties": [
  3028. {
  3029. "property": "payload",
  3030. "propertyType": "msg",
  3031. "value": "",
  3032. "valueType": "entityState"
  3033. },
  3034. {
  3035. "property": "data",
  3036. "propertyType": "msg",
  3037. "value": "",
  3038. "valueType": "entity"
  3039. }
  3040. ],
  3041. "for": "0",
  3042. "forType": "num",
  3043. "forUnits": "minutes",
  3044. "override_topic": false,
  3045. "state_location": "payload",
  3046. "override_payload": "msg",
  3047. "entity_location": "data",
  3048. "override_data": "msg",
  3049. "x": 3720,
  3050. "y": 1440,
  3051. "wires": [
  3052. [
  3053. "5f87a72e61d1ba37"
  3054. ]
  3055. ]
  3056. },
  3057. {
  3058. "id": "fb015ed93c604144",
  3059. "type": "server-state-changed",
  3060. "z": "7f86a26448c0ffe9",
  3061. "name": "",
  3062. "server": "92ab386eaaffa3ef",
  3063. "version": 5,
  3064. "outputs": 1,
  3065. "exposeAsEntityConfig": "",
  3066. "entityId": "light.credence",
  3067. "entityIdType": "exact",
  3068. "outputInitially": true,
  3069. "stateType": "str",
  3070. "ifState": "",
  3071. "ifStateType": "str",
  3072. "ifStateOperator": "is",
  3073. "outputOnlyOnStateChange": false,
  3074. "for": "0",
  3075. "forType": "num",
  3076. "forUnits": "minutes",
  3077. "ignorePrevStateNull": false,
  3078. "ignorePrevStateUnknown": false,
  3079. "ignorePrevStateUnavailable": false,
  3080. "ignoreCurrentStateUnknown": true,
  3081. "ignoreCurrentStateUnavailable": true,
  3082. "outputProperties": [
  3083. {
  3084. "property": "media",
  3085. "propertyType": "msg",
  3086. "value": "",
  3087. "valueType": "eventData"
  3088. }
  3089. ],
  3090. "x": 3940,
  3091. "y": 960,
  3092. "wires": [
  3093. [
  3094. "a01173b36556f6d3",
  3095. "862dc0c9bdf581c8",
  3096. "7823fe6957466610"
  3097. ]
  3098. ]
  3099. },
  3100. {
  3101. "id": "862dc0c9bdf581c8",
  3102. "type": "debug",
  3103. "z": "7f86a26448c0ffe9",
  3104. "name": "",
  3105. "active": false,
  3106. "tosidebar": true,
  3107. "console": false,
  3108. "tostatus": false,
  3109. "complete": "media.new_state.attributes.color_temp",
  3110. "targetType": "msg",
  3111. "statusVal": "",
  3112. "statusType": "auto",
  3113. "x": 4310,
  3114. "y": 980,
  3115. "wires": []
  3116. },
  3117. {
  3118. "id": "a01173b36556f6d3",
  3119. "type": "change",
  3120. "z": "7f86a26448c0ffe9",
  3121. "name": "save Brightness and Temperature",
  3122. "rules": [
  3123. {
  3124. "t": "set",
  3125. "p": "Temp",
  3126. "pt": "flow",
  3127. "to": "media.new_state.attributes.color_temp",
  3128. "tot": "msg"
  3129. },
  3130. {
  3131. "t": "set",
  3132. "p": "Bright",
  3133. "pt": "flow",
  3134. "to": "media.new_state.attributes.brightness",
  3135. "tot": "msg"
  3136. }
  3137. ],
  3138. "action": "",
  3139. "property": "",
  3140. "from": "",
  3141. "to": "",
  3142. "reg": false,
  3143. "x": 4280,
  3144. "y": 1040,
  3145. "wires": [
  3146. [
  3147. "60fa85e9cb5bdc68"
  3148. ]
  3149. ]
  3150. },
  3151. {
  3152. "id": "7823fe6957466610",
  3153. "type": "debug",
  3154. "z": "7f86a26448c0ffe9",
  3155. "name": "",
  3156. "active": false,
  3157. "tosidebar": true,
  3158. "console": false,
  3159. "tostatus": false,
  3160. "complete": "media.new_state.attributes.brightness",
  3161. "targetType": "msg",
  3162. "statusVal": "",
  3163. "statusType": "auto",
  3164. "x": 4310,
  3165. "y": 920,
  3166. "wires": []
  3167. },
  3168. {
  3169. "id": "60fa85e9cb5bdc68",
  3170. "type": "debug",
  3171. "z": "7f86a26448c0ffe9",
  3172. "name": "debug 175",
  3173. "active": false,
  3174. "tosidebar": true,
  3175. "console": false,
  3176. "tostatus": false,
  3177. "complete": "true",
  3178. "targetType": "full",
  3179. "statusVal": "",
  3180. "statusType": "auto",
  3181. "x": 4650,
  3182. "y": 1040,
  3183. "wires": []
  3184. },
  3185. {
  3186. "id": "6b7db223d715b6b0",
  3187. "type": "link out",
  3188. "z": "7f86a26448c0ffe9",
  3189. "name": "SelectMediaSource_Out",
  3190. "mode": "link",
  3191. "links": [
  3192. "89ece9afab365c00"
  3193. ],
  3194. "x": 1170,
  3195. "y": 760,
  3196. "wires": [],
  3197. "l": true,
  3198. "info": "SelectMediaSource"
  3199. },
  3200. {
  3201. "id": "89ece9afab365c00",
  3202. "type": "link in",
  3203. "z": "7f86a26448c0ffe9",
  3204. "name": "SelectMediaSource_In",
  3205. "links": [
  3206. "6b7db223d715b6b0"
  3207. ],
  3208. "x": 2340,
  3209. "y": 480,
  3210. "wires": [
  3211. [
  3212. "2b1b6ed8be41b8e5"
  3213. ]
  3214. ],
  3215. "l": true
  3216. },
  3217. {
  3218. "id": "cc1dbb45af6098d8",
  3219. "type": "comment",
  3220. "z": "7f86a26448c0ffe9",
  3221. "name": "MediaSource_Comment",
  3222. "info": "",
  3223. "x": 2470,
  3224. "y": 240,
  3225. "wires": []
  3226. },
  3227. {
  3228. "id": "b4b80bfb0cbccb46",
  3229. "type": "link out",
  3230. "z": "7f86a26448c0ffe9",
  3231. "name": "SelectTemperatureWarm_Out",
  3232. "mode": "link",
  3233. "links": [
  3234. "abdef70d47659d0e"
  3235. ],
  3236. "x": 1130,
  3237. "y": 1100,
  3238. "wires": [],
  3239. "l": true
  3240. },
  3241. {
  3242. "id": "abdef70d47659d0e",
  3243. "type": "link in",
  3244. "z": "7f86a26448c0ffe9",
  3245. "name": "SelectTemperatureWarm_In",
  3246. "links": [
  3247. "b4b80bfb0cbccb46"
  3248. ],
  3249. "x": 2820,
  3250. "y": 1340,
  3251. "wires": [
  3252. [
  3253. "3268c55095832389",
  3254. "2775de41299ab7cf"
  3255. ]
  3256. ],
  3257. "l": true
  3258. },
  3259. {
  3260. "id": "687e1530f7385d10",
  3261. "type": "change",
  3262. "z": "7f86a26448c0ffe9",
  3263. "d": true,
  3264. "name": "",
  3265. "rules": [
  3266. {
  3267. "t": "set",
  3268. "p": "OLDexpectedrotation",
  3269. "pt": "flow",
  3270. "to": "0",
  3271. "tot": "num"
  3272. }
  3273. ],
  3274. "action": "",
  3275. "property": "",
  3276. "from": "",
  3277. "to": "",
  3278. "reg": false,
  3279. "x": 1840,
  3280. "y": 2180,
  3281. "wires": [
  3282. [
  3283. "4c759ad21fe28b89",
  3284. "7445beb1f5f8513b"
  3285. ]
  3286. ]
  3287. },
  3288. {
  3289. "id": "710aed7ac5039fb3",
  3290. "type": "inject",
  3291. "z": "7f86a26448c0ffe9",
  3292. "name": "",
  3293. "props": [
  3294. {
  3295. "p": "payload"
  3296. },
  3297. {
  3298. "p": "topic",
  3299. "vt": "str"
  3300. }
  3301. ],
  3302. "repeat": "",
  3303. "crontab": "",
  3304. "once": false,
  3305. "onceDelay": 0.1,
  3306. "topic": "",
  3307. "payload": "",
  3308. "payloadType": "date",
  3309. "x": 3030,
  3310. "y": 900,
  3311. "wires": [
  3312. [
  3313. "27cff7c190fd8776"
  3314. ]
  3315. ]
  3316. },
  3317. {
  3318. "id": "907bfd7886505516",
  3319. "type": "inject",
  3320. "z": "7f86a26448c0ffe9",
  3321. "name": "",
  3322. "props": [
  3323. {
  3324. "p": "payload"
  3325. },
  3326. {
  3327. "p": "topic",
  3328. "vt": "str"
  3329. }
  3330. ],
  3331. "repeat": "",
  3332. "crontab": "",
  3333. "once": false,
  3334. "onceDelay": 0.1,
  3335. "topic": "",
  3336. "payload": "",
  3337. "payloadType": "date",
  3338. "x": 2750,
  3339. "y": 180,
  3340. "wires": [
  3341. [
  3342. "de8a985805195d5d"
  3343. ]
  3344. ]
  3345. },
  3346. {
  3347. "id": "6ae624698bc53f1b",
  3348. "type": "api-call-service",
  3349. "z": "7f86a26448c0ffe9",
  3350. "name": "\"Mode Température\"",
  3351. "server": "92ab386eaaffa3ef",
  3352. "version": 5,
  3353. "debugenabled": false,
  3354. "domain": "tts",
  3355. "service": "google_say",
  3356. "areaId": [],
  3357. "deviceId": [],
  3358. "entityId": [
  3359. "media_player.move"
  3360. ],
  3361. "data": "{\"message\":\"Mode {{ payload }}\",\"language\":\"fr\"}",
  3362. "dataType": "json",
  3363. "mergeContext": "",
  3364. "mustacheAltTags": false,
  3365. "outputProperties": [
  3366. {
  3367. "property": "meta",
  3368. "propertyType": "msg",
  3369. "value": "",
  3370. "valueType": "data"
  3371. }
  3372. ],
  3373. "queue": "none",
  3374. "output_location": "",
  3375. "output_location_type": "none",
  3376. "x": 1880,
  3377. "y": 1120,
  3378. "wires": [
  3379. []
  3380. ]
  3381. },
  3382. {
  3383. "id": "4064e2e1733df475",
  3384. "type": "api-call-service",
  3385. "z": "7f86a26448c0ffe9",
  3386. "name": "\"Mode Light Volume\"",
  3387. "server": "92ab386eaaffa3ef",
  3388. "version": 5,
  3389. "debugenabled": false,
  3390. "domain": "tts",
  3391. "service": "google_say",
  3392. "areaId": [],
  3393. "deviceId": [],
  3394. "entityId": [
  3395. "media_player.move"
  3396. ],
  3397. "data": "{\"message\":\"Mode {{ payload }}\",\"language\":\"fr\"}",
  3398. "dataType": "json",
  3399. "mergeContext": "",
  3400. "mustacheAltTags": false,
  3401. "outputProperties": [
  3402. {
  3403. "property": "meta",
  3404. "propertyType": "msg",
  3405. "value": "",
  3406. "valueType": "data"
  3407. }
  3408. ],
  3409. "queue": "none",
  3410. "output_location": "",
  3411. "output_location_type": "none",
  3412. "x": 1220,
  3413. "y": 980,
  3414. "wires": [
  3415. []
  3416. ]
  3417. },
  3418. {
  3419. "id": "afd6122cd75b5305",
  3420. "type": "inject",
  3421. "z": "7f86a26448c0ffe9",
  3422. "name": "",
  3423. "props": [
  3424. {
  3425. "p": "payload"
  3426. },
  3427. {
  3428. "p": "topic",
  3429. "vt": "str"
  3430. }
  3431. ],
  3432. "repeat": "",
  3433. "crontab": "",
  3434. "once": false,
  3435. "onceDelay": 0.1,
  3436. "topic": "",
  3437. "payload": "",
  3438. "payloadType": "date",
  3439. "x": 980,
  3440. "y": 980,
  3441. "wires": [
  3442. [
  3443. "4064e2e1733df475"
  3444. ]
  3445. ]
  3446. },
  3447. {
  3448. "id": "e437398d25926a50",
  3449. "type": "api-call-service",
  3450. "z": "7f86a26448c0ffe9",
  3451. "name": "\"Playing Personal Flow Mix\"",
  3452. "server": "92ab386eaaffa3ef",
  3453. "version": 5,
  3454. "debugenabled": true,
  3455. "domain": "tts",
  3456. "service": "google_say",
  3457. "areaId": [],
  3458. "deviceId": [],
  3459. "entityId": [
  3460. "media_player.move"
  3461. ],
  3462. "data": "{\"message\":\"Flow Personnel\",\"language\":\"fr\"}",
  3463. "dataType": "json",
  3464. "mergeContext": "",
  3465. "mustacheAltTags": false,
  3466. "outputProperties": [
  3467. {
  3468. "property": "meta",
  3469. "propertyType": "msg",
  3470. "value": "",
  3471. "valueType": "data"
  3472. }
  3473. ],
  3474. "queue": "none",
  3475. "output_location": "",
  3476. "output_location_type": "none",
  3477. "x": 3220,
  3478. "y": 620,
  3479. "wires": [
  3480. [
  3481. "85a6f85c2d9f9367"
  3482. ]
  3483. ]
  3484. },
  3485. {
  3486. "id": "9cf82b52e7db03d2",
  3487. "type": "api-call-service",
  3488. "z": "7f86a26448c0ffe9",
  3489. "name": "\"Playing Discover Weekly on Spotify\"",
  3490. "server": "92ab386eaaffa3ef",
  3491. "version": 5,
  3492. "debugenabled": true,
  3493. "domain": "tts",
  3494. "service": "google_say",
  3495. "areaId": [],
  3496. "deviceId": [],
  3497. "entityId": [
  3498. "media_player.move"
  3499. ],
  3500. "data": "{\"message\":\"Radio {{ payload }}\",\"language\":\"fr\"}",
  3501. "dataType": "json",
  3502. "mergeContext": "",
  3503. "mustacheAltTags": false,
  3504. "outputProperties": [
  3505. {
  3506. "property": "meta",
  3507. "propertyType": "msg",
  3508. "value": "",
  3509. "valueType": "data"
  3510. }
  3511. ],
  3512. "queue": "none",
  3513. "output_location": "",
  3514. "output_location_type": "none",
  3515. "x": 3350,
  3516. "y": 520,
  3517. "wires": [
  3518. [
  3519. "f9bf699dbec25482"
  3520. ]
  3521. ]
  3522. },
  3523. {
  3524. "id": "50d81c3d72b3f558",
  3525. "type": "api-call-service",
  3526. "z": "7f86a26448c0ffe9",
  3527. "name": "",
  3528. "server": "92ab386eaaffa3ef",
  3529. "version": 5,
  3530. "debugenabled": false,
  3531. "domain": "media_player",
  3532. "service": "shuffle_set",
  3533. "areaId": [],
  3534. "deviceId": [],
  3535. "entityId": [
  3536. "media_player.move"
  3537. ],
  3538. "data": "{\"shuffle\": true}",
  3539. "dataType": "json",
  3540. "mergeContext": "",
  3541. "mustacheAltTags": false,
  3542. "outputProperties": [],
  3543. "queue": "none",
  3544. "output_location": "",
  3545. "output_location_type": "none",
  3546. "x": 4150,
  3547. "y": 340,
  3548. "wires": [
  3549. []
  3550. ]
  3551. },
  3552. {
  3553. "id": "22daf5dfe92c793c",
  3554. "type": "api-call-service",
  3555. "z": "7f86a26448c0ffe9",
  3556. "name": "\"Playing Regenbogen Radio\"",
  3557. "server": "92ab386eaaffa3ef",
  3558. "version": 5,
  3559. "debugenabled": true,
  3560. "domain": "tts",
  3561. "service": "google_say",
  3562. "areaId": [],
  3563. "deviceId": [],
  3564. "entityId": [
  3565. "media_player.move"
  3566. ],
  3567. "data": "{\"message\":\"Radio Regenbogen\",\"language\":\"fr\"}",
  3568. "dataType": "json",
  3569. "mergeContext": "",
  3570. "mustacheAltTags": false,
  3571. "outputProperties": [
  3572. {
  3573. "property": "meta",
  3574. "propertyType": "msg",
  3575. "value": "",
  3576. "valueType": "data"
  3577. }
  3578. ],
  3579. "queue": "none",
  3580. "output_location": "",
  3581. "output_location_type": "none",
  3582. "x": 3200,
  3583. "y": 740,
  3584. "wires": [
  3585. [
  3586. "aed340ac587e957e"
  3587. ]
  3588. ]
  3589. },
  3590. {
  3591. "id": "dadadfb7ce4a93c0",
  3592. "type": "api-call-service",
  3593. "z": "7f86a26448c0ffe9",
  3594. "name": "",
  3595. "server": "92ab386eaaffa3ef",
  3596. "version": 5,
  3597. "debugenabled": false,
  3598. "domain": "media_player",
  3599. "service": "media_play",
  3600. "areaId": [],
  3601. "deviceId": [],
  3602. "entityId": [
  3603. "media_player.move"
  3604. ],
  3605. "data": "",
  3606. "dataType": "json",
  3607. "mergeContext": "",
  3608. "mustacheAltTags": false,
  3609. "outputProperties": [],
  3610. "queue": "none",
  3611. "output_location": "",
  3612. "output_location_type": "none",
  3613. "x": 3990,
  3614. "y": 740,
  3615. "wires": [
  3616. [
  3617. "6e410ecf50642822"
  3618. ]
  3619. ]
  3620. },
  3621. {
  3622. "id": "6e410ecf50642822",
  3623. "type": "api-call-service",
  3624. "z": "7f86a26448c0ffe9",
  3625. "name": "",
  3626. "server": "92ab386eaaffa3ef",
  3627. "version": 5,
  3628. "debugenabled": false,
  3629. "domain": "media_player",
  3630. "service": "shuffle_set",
  3631. "areaId": [],
  3632. "deviceId": [],
  3633. "entityId": [
  3634. "media_player.move"
  3635. ],
  3636. "data": "{\"shuffle\": true}",
  3637. "dataType": "json",
  3638. "mergeContext": "",
  3639. "mustacheAltTags": false,
  3640. "outputProperties": [],
  3641. "queue": "none",
  3642. "output_location": "",
  3643. "output_location_type": "none",
  3644. "x": 4270,
  3645. "y": 740,
  3646. "wires": [
  3647. []
  3648. ]
  3649. },
  3650. {
  3651. "id": "d5594ad8e8254ee0",
  3652. "type": "sonos-manage-mysonos",
  3653. "z": "7f86a26448c0ffe9",
  3654. "confignode": "421ce7d478b2e9b1",
  3655. "command": "mysonos.stream.item",
  3656. "state": "",
  3657. "stateType": "str",
  3658. "avoidCheckPlayerAvailability": false,
  3659. "name": "",
  3660. "x": 3740,
  3661. "y": 740,
  3662. "wires": [
  3663. [
  3664. "dadadfb7ce4a93c0"
  3665. ]
  3666. ]
  3667. },
  3668. {
  3669. "id": "aed340ac587e957e",
  3670. "type": "change",
  3671. "z": "7f86a26448c0ffe9",
  3672. "name": "",
  3673. "rules": [
  3674. {
  3675. "t": "set",
  3676. "p": "payload",
  3677. "pt": "msg",
  3678. "to": "Radio Regenbogen",
  3679. "tot": "str"
  3680. }
  3681. ],
  3682. "action": "",
  3683. "property": "",
  3684. "from": "",
  3685. "to": "",
  3686. "reg": false,
  3687. "x": 3500,
  3688. "y": 740,
  3689. "wires": [
  3690. [
  3691. "d5594ad8e8254ee0"
  3692. ]
  3693. ]
  3694. },
  3695. {
  3696. "id": "b2a08f633395fad5",
  3697. "type": "change",
  3698. "z": "7f86a26448c0ffe9",
  3699. "name": "Modify To \"Nothing\"",
  3700. "rules": [
  3701. {
  3702. "t": "set",
  3703. "p": "lastplayed",
  3704. "pt": "flow",
  3705. "to": "Nothing",
  3706. "tot": "str"
  3707. }
  3708. ],
  3709. "action": "",
  3710. "property": "",
  3711. "from": "",
  3712. "to": "",
  3713. "reg": false,
  3714. "x": 3170,
  3715. "y": 700,
  3716. "wires": [
  3717. []
  3718. ]
  3719. },
  3720. {
  3721. "id": "4339f482a2975da3",
  3722. "type": "subflow:26dc23f0398a79c2",
  3723. "z": "7f86a26448c0ffe9",
  3724. "name": "",
  3725. "x": 550,
  3726. "y": 480,
  3727. "wires": [
  3728. [
  3729. "f4fd5405872c666b"
  3730. ],
  3731. [
  3732. "2df17518fd7542ed"
  3733. ],
  3734. [
  3735. "1a94445325012d83"
  3736. ],
  3737. [
  3738. "e1416af43cc79f22"
  3739. ],
  3740. []
  3741. ]
  3742. },
  3743. {
  3744. "id": "1a94445325012d83",
  3745. "type": "change",
  3746. "z": "7f86a26448c0ffe9",
  3747. "name": "StopLight",
  3748. "rules": [
  3749. {
  3750. "t": "set",
  3751. "p": "payload",
  3752. "pt": "msg",
  3753. "to": "StopLight",
  3754. "tot": "str"
  3755. }
  3756. ],
  3757. "action": "",
  3758. "property": "",
  3759. "from": "",
  3760. "to": "",
  3761. "reg": false,
  3762. "x": 720,
  3763. "y": 920,
  3764. "wires": [
  3765. [
  3766. "b220b796f9f7c38e",
  3767. "8e5d56100acb45a6"
  3768. ]
  3769. ]
  3770. },
  3771. {
  3772. "id": "2df17518fd7542ed",
  3773. "type": "change",
  3774. "z": "7f86a26448c0ffe9",
  3775. "name": "StopTemperature",
  3776. "rules": [
  3777. {
  3778. "t": "set",
  3779. "p": "payload",
  3780. "pt": "msg",
  3781. "to": "StopTemperature",
  3782. "tot": "str"
  3783. }
  3784. ],
  3785. "action": "",
  3786. "property": "",
  3787. "from": "",
  3788. "to": "",
  3789. "reg": false,
  3790. "x": 850,
  3791. "y": 740,
  3792. "wires": [
  3793. [
  3794. "8e5d56100acb45a6",
  3795. "b220b796f9f7c38e"
  3796. ]
  3797. ]
  3798. },
  3799. {
  3800. "id": "e1416af43cc79f22",
  3801. "type": "cycle",
  3802. "z": "7f86a26448c0ffe9",
  3803. "name": "",
  3804. "outputs": 4,
  3805. "x": 1050,
  3806. "y": 360,
  3807. "wires": [
  3808. [
  3809. "cde88e5d87fea5a6"
  3810. ],
  3811. [
  3812. "0e7fa59138767a93"
  3813. ],
  3814. [
  3815. "153d67a653c75ef2"
  3816. ],
  3817. [
  3818. "4a564cc65af49da3"
  3819. ]
  3820. ]
  3821. },
  3822. {
  3823. "id": "e361ffd3307d29d2",
  3824. "type": "api-call-service",
  3825. "z": "7f86a26448c0ffe9",
  3826. "name": "",
  3827. "server": "92ab386eaaffa3ef",
  3828. "version": 5,
  3829. "debugenabled": false,
  3830. "domain": "homeassistant",
  3831. "service": "turn_on",
  3832. "areaId": [],
  3833. "deviceId": [],
  3834. "entityId": [
  3835. "scene.cuisine_all_on"
  3836. ],
  3837. "data": "",
  3838. "dataType": "jsonata",
  3839. "mergeContext": "",
  3840. "mustacheAltTags": false,
  3841. "outputProperties": [],
  3842. "queue": "none",
  3843. "x": 1520,
  3844. "y": 220,
  3845. "wires": [
  3846. []
  3847. ]
  3848. },
  3849. {
  3850. "id": "dfd895fae80f7c76",
  3851. "type": "api-call-service",
  3852. "z": "7f86a26448c0ffe9",
  3853. "name": "",
  3854. "server": "92ab386eaaffa3ef",
  3855. "version": 5,
  3856. "debugenabled": false,
  3857. "domain": "homeassistant",
  3858. "service": "turn_on",
  3859. "areaId": [],
  3860. "deviceId": [],
  3861. "entityId": [
  3862. "scene.ambiance_chaude"
  3863. ],
  3864. "data": "",
  3865. "dataType": "jsonata",
  3866. "mergeContext": "",
  3867. "mustacheAltTags": false,
  3868. "outputProperties": [],
  3869. "queue": "none",
  3870. "x": 1520,
  3871. "y": 360,
  3872. "wires": [
  3873. []
  3874. ]
  3875. },
  3876. {
  3877. "id": "f4d380051b7769e8",
  3878. "type": "api-call-service",
  3879. "z": "7f86a26448c0ffe9",
  3880. "name": "",
  3881. "server": "92ab386eaaffa3ef",
  3882. "version": 5,
  3883. "debugenabled": false,
  3884. "domain": "homeassistant",
  3885. "service": "turn_on",
  3886. "areaId": [],
  3887. "deviceId": [],
  3888. "entityId": [
  3889. "scene.ambiance_chaude_froide"
  3890. ],
  3891. "data": "",
  3892. "dataType": "jsonata",
  3893. "mergeContext": "",
  3894. "mustacheAltTags": false,
  3895. "outputProperties": [],
  3896. "queue": "none",
  3897. "x": 1520,
  3898. "y": 280,
  3899. "wires": [
  3900. []
  3901. ]
  3902. },
  3903. {
  3904. "id": "0e7fa59138767a93",
  3905. "type": "api-call-service",
  3906. "z": "7f86a26448c0ffe9",
  3907. "name": "\"Ambiance Froide\"",
  3908. "server": "92ab386eaaffa3ef",
  3909. "version": 5,
  3910. "debugenabled": false,
  3911. "domain": "tts",
  3912. "service": "google_say",
  3913. "areaId": [],
  3914. "deviceId": [],
  3915. "entityId": [
  3916. "media_player.move"
  3917. ],
  3918. "data": "{\"message\":\"Ambiance Froide\",\"language\":\"fr\"}",
  3919. "dataType": "json",
  3920. "mergeContext": "",
  3921. "mustacheAltTags": false,
  3922. "outputProperties": [
  3923. {
  3924. "property": "meta",
  3925. "propertyType": "msg",
  3926. "value": "",
  3927. "valueType": "data"
  3928. }
  3929. ],
  3930. "queue": "none",
  3931. "output_location": "",
  3932. "output_location_type": "none",
  3933. "x": 1290,
  3934. "y": 280,
  3935. "wires": [
  3936. [
  3937. "f4d380051b7769e8"
  3938. ]
  3939. ]
  3940. },
  3941. {
  3942. "id": "153d67a653c75ef2",
  3943. "type": "api-call-service",
  3944. "z": "7f86a26448c0ffe9",
  3945. "name": "\"Ambiance Chaude\"",
  3946. "server": "92ab386eaaffa3ef",
  3947. "version": 5,
  3948. "debugenabled": false,
  3949. "domain": "tts",
  3950. "service": "google_say",
  3951. "areaId": [],
  3952. "deviceId": [],
  3953. "entityId": [
  3954. "media_player.move"
  3955. ],
  3956. "data": "{\"message\":\"Ambiance Chaude\",\"language\":\"fr\"}",
  3957. "dataType": "json",
  3958. "mergeContext": "",
  3959. "mustacheAltTags": false,
  3960. "outputProperties": [
  3961. {
  3962. "property": "meta",
  3963. "propertyType": "msg",
  3964. "value": "",
  3965. "valueType": "data"
  3966. }
  3967. ],
  3968. "queue": "none",
  3969. "output_location": "",
  3970. "output_location_type": "none",
  3971. "x": 1300,
  3972. "y": 360,
  3973. "wires": [
  3974. [
  3975. "dfd895fae80f7c76"
  3976. ]
  3977. ]
  3978. },
  3979. {
  3980. "id": "cde88e5d87fea5a6",
  3981. "type": "api-call-service",
  3982. "z": "7f86a26448c0ffe9",
  3983. "name": "\"Cuisine All On\"",
  3984. "server": "92ab386eaaffa3ef",
  3985. "version": 5,
  3986. "debugenabled": false,
  3987. "domain": "tts",
  3988. "service": "google_say",
  3989. "areaId": [],
  3990. "deviceId": [],
  3991. "entityId": [
  3992. "media_player.move"
  3993. ],
  3994. "data": "{\"message\":\"Cuisine All On\",\"language\":\"en\"}",
  3995. "dataType": "json",
  3996. "mergeContext": "",
  3997. "mustacheAltTags": false,
  3998. "outputProperties": [
  3999. {
  4000. "property": "meta",
  4001. "propertyType": "msg",
  4002. "value": "",
  4003. "valueType": "data"
  4004. }
  4005. ],
  4006. "queue": "none",
  4007. "output_location": "",
  4008. "output_location_type": "none",
  4009. "x": 1280,
  4010. "y": 220,
  4011. "wires": [
  4012. [
  4013. "e361ffd3307d29d2"
  4014. ]
  4015. ]
  4016. },
  4017. {
  4018. "id": "3b5d76660b086464",
  4019. "type": "subflow:26dc23f0398a79c2",
  4020. "z": "7f86a26448c0ffe9",
  4021. "name": "",
  4022. "x": 730,
  4023. "y": 540,
  4024. "wires": [
  4025. [
  4026. "561b3393c91a65ee"
  4027. ],
  4028. [],
  4029. [],
  4030. [
  4031. "fae1ec289807d35a"
  4032. ],
  4033. []
  4034. ]
  4035. },
  4036. {
  4037. "id": "fae1ec289807d35a",
  4038. "type": "api-call-service",
  4039. "z": "7f86a26448c0ffe9",
  4040. "name": "\"Cuisine All Off\"",
  4041. "server": "92ab386eaaffa3ef",
  4042. "version": 5,
  4043. "debugenabled": false,
  4044. "domain": "tts",
  4045. "service": "google_say",
  4046. "areaId": [],
  4047. "deviceId": [],
  4048. "entityId": [
  4049. "media_player.move"
  4050. ],
  4051. "data": "{\"message\":\"Cuisine All Off\",\"language\":\"en\"}",
  4052. "dataType": "json",
  4053. "mergeContext": "",
  4054. "mustacheAltTags": false,
  4055. "outputProperties": [
  4056. {
  4057. "property": "meta",
  4058. "propertyType": "msg",
  4059. "value": "",
  4060. "valueType": "data"
  4061. }
  4062. ],
  4063. "queue": "none",
  4064. "output_location": "",
  4065. "output_location_type": "none",
  4066. "x": 1020,
  4067. "y": 620,
  4068. "wires": [
  4069. [
  4070. "9601db57694ee87e"
  4071. ]
  4072. ]
  4073. },
  4074. {
  4075. "id": "9601db57694ee87e",
  4076. "type": "api-call-service",
  4077. "z": "7f86a26448c0ffe9",
  4078. "name": "",
  4079. "server": "92ab386eaaffa3ef",
  4080. "version": 5,
  4081. "debugenabled": false,
  4082. "domain": "homeassistant",
  4083. "service": "turn_on",
  4084. "areaId": [],
  4085. "deviceId": [],
  4086. "entityId": [
  4087. "scene.cuisine_off"
  4088. ],
  4089. "data": "",
  4090. "dataType": "jsonata",
  4091. "mergeContext": "",
  4092. "mustacheAltTags": false,
  4093. "outputProperties": [],
  4094. "queue": "none",
  4095. "x": 1240,
  4096. "y": 620,
  4097. "wires": [
  4098. []
  4099. ]
  4100. },
  4101. {
  4102. "id": "1dd33ddc2b8fb7ac",
  4103. "type": "api-call-service",
  4104. "z": "7f86a26448c0ffe9",
  4105. "name": "",
  4106. "server": "92ab386eaaffa3ef",
  4107. "version": 5,
  4108. "debugenabled": false,
  4109. "domain": "scene_presets",
  4110. "service": "apply_preset",
  4111. "areaId": [],
  4112. "deviceId": [],
  4113. "entityId": [],
  4114. "data": "{\"preset_id\":\"a592fa63-4ba6-4399-a120-1c0b79ac832d\",\"targets\":{\"device_id\":[\"02035b35b4f1a86e0265d30e5c3e31b0\",\"16d5850afa14b5bac0fdf35a7ce590d1\"]},\"shuffle\":false,\"smart_shuffle\":false}",
  4115. "dataType": "json",
  4116. "mergeContext": "",
  4117. "mustacheAltTags": false,
  4118. "outputProperties": [],
  4119. "queue": "none",
  4120. "x": 1600,
  4121. "y": 440,
  4122. "wires": [
  4123. []
  4124. ]
  4125. },
  4126. {
  4127. "id": "4a564cc65af49da3",
  4128. "type": "api-call-service",
  4129. "z": "7f86a26448c0ffe9",
  4130. "name": "\"Ambiance Miami\"",
  4131. "server": "92ab386eaaffa3ef",
  4132. "version": 5,
  4133. "debugenabled": false,
  4134. "domain": "tts",
  4135. "service": "google_say",
  4136. "areaId": [],
  4137. "deviceId": [],
  4138. "entityId": [
  4139. "media_player.move"
  4140. ],
  4141. "data": "{\"message\":\"Ambiance Miami\",\"language\":\"en\"}",
  4142. "dataType": "json",
  4143. "mergeContext": "",
  4144. "mustacheAltTags": false,
  4145. "outputProperties": [
  4146. {
  4147. "property": "meta",
  4148. "propertyType": "msg",
  4149. "value": "",
  4150. "valueType": "data"
  4151. }
  4152. ],
  4153. "queue": "none",
  4154. "output_location": "",
  4155. "output_location_type": "none",
  4156. "x": 1290,
  4157. "y": 420,
  4158. "wires": [
  4159. [
  4160. "1dd33ddc2b8fb7ac"
  4161. ]
  4162. ]
  4163. },
  4164. {
  4165. "id": "5f72208df073a15c",
  4166. "type": "inject",
  4167. "z": "7f86a26448c0ffe9",
  4168. "name": "",
  4169. "props": [
  4170. {
  4171. "p": "payload"
  4172. },
  4173. {
  4174. "p": "topic",
  4175. "vt": "str"
  4176. }
  4177. ],
  4178. "repeat": "",
  4179. "crontab": "",
  4180. "once": false,
  4181. "onceDelay": 0.1,
  4182. "topic": "",
  4183. "payload": "",
  4184. "payloadType": "date",
  4185. "x": 1060,
  4186. "y": 440,
  4187. "wires": [
  4188. [
  4189. "4a564cc65af49da3"
  4190. ]
  4191. ]
  4192. },
  4193. {
  4194. "id": "92ab386eaaffa3ef",
  4195. "type": "server",
  4196. "name": "Home Assistant",
  4197. "version": 5,
  4198. "addon": true,
  4199. "rejectUnauthorizedCerts": true,
  4200. "ha_boolean": "y|yes|true|on|home|open",
  4201. "connectionDelay": true,
  4202. "cacheJson": true,
  4203. "heartbeat": false,
  4204. "heartbeatInterval": "30",
  4205. "areaSelector": "friendlyName",
  4206. "deviceSelector": "friendlyName",
  4207. "entitySelector": "friendlyName",
  4208. "statusSeparator": ": ",
  4209. "statusYear": "hidden",
  4210. "statusMonth": "short",
  4211. "statusDay": "numeric",
  4212. "statusHourCycle": "default",
  4213. "statusTimeFormat": "h:m",
  4214. "enableGlobalContextStore": false
  4215. },
  4216. {
  4217. "id": "99709302a818dd3b",
  4218. "type": "mqtt-broker",
  4219. "name": "",
  4220. "broker": "192.168.1.77",
  4221. "port": "1883",
  4222. "clientid": "",
  4223. "autoConnect": true,
  4224. "usetls": false,
  4225. "protocolVersion": "4",
  4226. "keepalive": "60",
  4227. "cleansession": true,
  4228. "autoUnsubscribe": true,
  4229. "birthTopic": "",
  4230. "birthQos": "0",
  4231. "birthRetain": "false",
  4232. "birthPayload": "",
  4233. "birthMsg": {},
  4234. "closeTopic": "",
  4235. "closeQos": "0",
  4236. "closeRetain": "false",
  4237. "closePayload": "",
  4238. "closeMsg": {},
  4239. "willTopic": "",
  4240. "willQos": "0",
  4241. "willRetain": "false",
  4242. "willPayload": "",
  4243. "willMsg": {},
  4244. "userProps": "",
  4245. "sessionExpiry": ""
  4246. },
  4247. {
  4248. "id": "421ce7d478b2e9b1",
  4249. "type": "sonos-config",
  4250. "name": "Move",
  4251. "serialnum": "",
  4252. "ipaddress": "192.168.1.24"
  4253. }
  4254. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement