Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "8b8ffcc3.467b9",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "PLex",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.plex_pc\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2890,
- "y": 300,
- "wires": [
- [
- "fa8869e1.fe0638"
- ]
- ]
- },
- {
- "id": "dbeef4f8.15d1a8",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Plex",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.plex_pc",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "data.entity",
- "override_data": "msg",
- "blockInputOverrides": false,
- "x": 2870,
- "y": 340,
- "wires": [
- [
- "8b8ffcc3.467b9"
- ],
- [
- "501578cb.f99748"
- ]
- ]
- },
- {
- "id": "fa8869e1.fe0638",
- "type": "delay",
- "z": "46e39e32.08f7c",
- "name": "Action",
- "pauseType": "delay",
- "timeout": "0",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 3230,
- "y": 300,
- "wires": [
- [
- "bf8d147f.eed308"
- ]
- ]
- },
- {
- "id": "165fa286.fba5dd",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Display",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.bedroom_display",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2740,
- "y": 340,
- "wires": [
- [
- "ad7867f7.0b8b18"
- ],
- [
- "dbeef4f8.15d1a8"
- ]
- ]
- },
- {
- "id": "501578cb.f99748",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Roku",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.bedroom_tv",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 3030,
- "y": 340,
- "wires": [
- [
- "82035a54.b967d8"
- ],
- [
- "613847e9.3c7ca8"
- ]
- ]
- },
- {
- "id": "99582b07.282088",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "both Rooms",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.maxi_speakers\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2290,
- "y": 300,
- "wires": [
- [
- "fa8869e1.fe0638"
- ]
- ]
- },
- {
- "id": "bf8d147f.eed308",
- "type": "delay",
- "z": "46e39e32.08f7c",
- "name": "Stuff Playing",
- "pauseType": "delay",
- "timeout": "0",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 3390,
- "y": 340,
- "wires": [
- [
- "a4d64c1f.b16a7"
- ]
- ]
- },
- {
- "id": "afdee323.46335",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Dungeon",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.dungeon_speaker\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2580,
- "y": 300,
- "wires": [
- [
- "fa8869e1.fe0638"
- ]
- ]
- },
- {
- "id": "ad7867f7.0b8b18",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Display",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.bedroom_display\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2740,
- "y": 300,
- "wires": [
- [
- "fa8869e1.fe0638"
- ]
- ]
- },
- {
- "id": "1908392a.b4d537",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Dungeon",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.bedroom_speaker\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2440,
- "y": 300,
- "wires": [
- [
- "fa8869e1.fe0638"
- ]
- ]
- },
- {
- "id": "82035a54.b967d8",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Roku",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.bedroom_tv\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 3030,
- "y": 300,
- "wires": [
- [
- "fa8869e1.fe0638"
- ]
- ]
- },
- {
- "id": "c0b1b318.c3e62",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Dungeo?",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.dungeon_speaker",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2580,
- "y": 340,
- "wires": [
- [
- "afdee323.46335"
- ],
- [
- "165fa286.fba5dd"
- ]
- ]
- },
- {
- "id": "613847e9.3c7ca8",
- "type": "delay",
- "z": "46e39e32.08f7c",
- "name": "Lights",
- "pauseType": "delay",
- "timeout": "0",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 3230,
- "y": 340,
- "wires": [
- [
- "8c81653d.0b7c88"
- ]
- ]
- },
- {
- "id": "a83241f6.ace4f",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Both rooms",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.maxi_speakers",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2290,
- "y": 340,
- "wires": [
- [
- "99582b07.282088"
- ],
- [
- "e8c4a156.75f97"
- ]
- ]
- },
- {
- "id": "becb8694.d3b098",
- "type": "delay",
- "z": "46e39e32.08f7c",
- "name": "Action",
- "pauseType": "delay",
- "timeout": "0",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 3230,
- "y": 440,
- "wires": [
- [
- "bf8d147f.eed308"
- ]
- ]
- },
- {
- "id": "f6a9a063.0567f",
- "type": "delay",
- "z": "46e39e32.08f7c",
- "name": "Action",
- "pauseType": "delay",
- "timeout": "0",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 3090,
- "y": 1000,
- "wires": [
- [
- "bf8d147f.eed308"
- ]
- ]
- },
- {
- "id": "fc08064.bf0bdf8",
- "type": "delay",
- "z": "46e39e32.08f7c",
- "name": "Action",
- "pauseType": "delay",
- "timeout": "0",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 3100,
- "y": 1100,
- "wires": [
- [
- "bf8d147f.eed308"
- ]
- ]
- },
- {
- "id": "6d32d076.f6187",
- "type": "delay",
- "z": "46e39e32.08f7c",
- "name": "Action",
- "pauseType": "delay",
- "timeout": "0",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 3090,
- "y": 1200,
- "wires": [
- [
- "bf8d147f.eed308"
- ]
- ]
- },
- {
- "id": "6e2a7dda.55a634",
- "type": "delay",
- "z": "46e39e32.08f7c",
- "name": "Action",
- "pauseType": "delay",
- "timeout": "0",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 3090,
- "y": 1300,
- "wires": [
- [
- "bf8d147f.eed308"
- ]
- ]
- },
- {
- "id": "a4d64c1f.b16a7",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "volume",
- "rules": [
- {
- "t": "move",
- "p": "data.entity.attributes.volume_level",
- "pt": "msg",
- "to": "volume",
- "tot": "msg"
- },
- {
- "t": "delete",
- "p": "data",
- "pt": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 3560,
- "y": 340,
- "wires": [
- [
- "380eb0f4.46d5b"
- ]
- ]
- },
- {
- "id": "e8c4a156.75f97",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Bedroom",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.bedroom_speaker",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2440,
- "y": 340,
- "wires": [
- [
- "1908392a.b4d537"
- ],
- [
- "c0b1b318.c3e62"
- ]
- ]
- },
- {
- "id": "8c81653d.0b7c88",
- "type": "delay",
- "z": "46e39e32.08f7c",
- "name": "nothing playing",
- "pauseType": "delay",
- "timeout": "0",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 3400,
- "y": 1100,
- "wires": [
- [
- "815f8d4d.b5bd9"
- ]
- ]
- },
- {
- "id": "58944673.8019b8",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Where?",
- "property": "location",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "Bedroom",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "not_home",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Hotbox",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Chilling",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Kitchen",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Closet",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Bathroom",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": false,
- "outputs": 7,
- "x": 2170,
- "y": 660,
- "wires": [
- [
- "a83241f6.ace4f",
- "c84edc8c.52c5e"
- ],
- [
- "a83241f6.ace4f",
- "c84edc8c.52c5e"
- ],
- [
- "32633207.47694e"
- ],
- [
- "ed6ab016.fa7f5",
- "43419fc4.a047c",
- "1df0e39a.ee5d4c"
- ],
- [
- "cec3d41c.2f1a88"
- ],
- [
- "cf936fd8.a4a0f"
- ],
- [
- "d5abf5aa.20f1e8"
- ]
- ]
- },
- {
- "id": "e1983d06.4b18f",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "HotboxSTop",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.hotbox_speaker\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2410,
- "y": 440,
- "wires": [
- [
- "becb8694.d3b098"
- ]
- ]
- },
- {
- "id": "e3cf27b9.b169a8",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "HotboxSDown",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.hotbox_speaker_down\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2580,
- "y": 440,
- "wires": [
- [
- "becb8694.d3b098"
- ]
- ]
- },
- {
- "id": "b644dcf4.52f0c",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "HotboxTVT",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.hotbox_tv\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2750,
- "y": 440,
- "wires": [
- [
- "becb8694.d3b098"
- ]
- ]
- },
- {
- "id": "e7b98861.a33848",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "HotboxTVD",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.hotbox_tv_down\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2930,
- "y": 440,
- "wires": [
- [
- "becb8694.d3b098"
- ]
- ]
- },
- {
- "id": "f4699eff.db136",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "HotboxSTop",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.hotbox_speaker\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2710,
- "y": 600,
- "wires": [
- [
- "becb8694.d3b098"
- ]
- ]
- },
- {
- "id": "29c5a475.a4314c",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "HotboxTVT",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.hotbox_tv\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2890,
- "y": 600,
- "wires": [
- [
- "becb8694.d3b098"
- ]
- ]
- },
- {
- "id": "688b05ca.2671bc",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "HotboxSDown",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.hotbox_speaker_down\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2720,
- "y": 520,
- "wires": [
- [
- "becb8694.d3b098"
- ]
- ]
- },
- {
- "id": "c583c18.bf4a34",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "HotboxTVD",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.hotbox_tv_down\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2930,
- "y": 520,
- "wires": [
- [
- "becb8694.d3b098"
- ]
- ]
- },
- {
- "id": "a4b73953.aa8ec8",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Roku",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.roku\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 3090,
- "y": 440,
- "wires": [
- [
- "becb8694.d3b098"
- ]
- ]
- },
- {
- "id": "461bf4da.2bfcbc",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Roku",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.roku\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 3070,
- "y": 600,
- "wires": [
- [
- "becb8694.d3b098"
- ]
- ]
- },
- {
- "id": "b9f498ae.ccb158",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "set entity",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.living_room_window\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2240,
- "y": 1000,
- "wires": [
- [
- "f6a9a063.0567f"
- ]
- ]
- },
- {
- "id": "38f0ae28.061012",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "set entity",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.living_room_speaker\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2420,
- "y": 1000,
- "wires": [
- [
- "f6a9a063.0567f"
- ]
- ]
- },
- {
- "id": "157f2091.abfbdf",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "set entity",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.living_room_tv\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2640,
- "y": 1000,
- "wires": [
- [
- "f6a9a063.0567f"
- ]
- ]
- },
- {
- "id": "459e522f.42507c",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "set entity",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.kitchen_speaker\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2240,
- "y": 1100,
- "wires": [
- [
- "fc08064.bf0bdf8"
- ]
- ]
- },
- {
- "id": "1b166fa9.d1964",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "set entity",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.closet_speaker\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2240,
- "y": 1200,
- "wires": [
- [
- "6d32d076.f6187"
- ]
- ]
- },
- {
- "id": "ad504b33.956eb8",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "set entity",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.hotbox_speaker_down.dungeon_speaker\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2420,
- "y": 1200,
- "wires": [
- [
- "6d32d076.f6187"
- ]
- ]
- },
- {
- "id": "ce59b70e.4b5178",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "set entity",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.bathroom_speaker\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2220,
- "y": 1300,
- "wires": [
- [
- "6e2a7dda.55a634"
- ]
- ]
- },
- {
- "id": "380eb0f4.46d5b",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Actions",
- "property": "command",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "on",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "up",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "down",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "off",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 4,
- "x": 3740,
- "y": 340,
- "wires": [
- [
- "9292ccd3.5d17f"
- ],
- [
- "d05df524.bb0ad8"
- ],
- [
- "7abdae71.6aaff"
- ],
- [
- "5413f7fe.93df88"
- ]
- ]
- },
- {
- "id": "8afe0c49.073d1",
- "type": "delay",
- "z": "46e39e32.08f7c",
- "name": "Lights",
- "pauseType": "delay",
- "timeout": "0",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 3100,
- "y": 1140,
- "wires": [
- [
- "8c81653d.0b7c88"
- ]
- ]
- },
- {
- "id": "c42d9cb0.aa6a6",
- "type": "delay",
- "z": "46e39e32.08f7c",
- "name": "Lights",
- "pauseType": "delay",
- "timeout": "0",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 3090,
- "y": 1340,
- "wires": [
- [
- "8c81653d.0b7c88"
- ]
- ]
- },
- {
- "id": "2f9b9fe0.c32d6",
- "type": "delay",
- "z": "46e39e32.08f7c",
- "name": "Lights",
- "pauseType": "delay",
- "timeout": "0",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 3090,
- "y": 1240,
- "wires": [
- [
- "8c81653d.0b7c88"
- ]
- ]
- },
- {
- "id": "1a0b95d.f24b26a",
- "type": "delay",
- "z": "46e39e32.08f7c",
- "name": "Lights",
- "pauseType": "delay",
- "timeout": "0",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 3100,
- "y": 1040,
- "wires": [
- [
- "8c81653d.0b7c88"
- ]
- ]
- },
- {
- "id": "1847241a.19284c",
- "type": "delay",
- "z": "46e39e32.08f7c",
- "name": "Lights",
- "pauseType": "delay",
- "timeout": "0",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 3230,
- "y": 480,
- "wires": [
- [
- "8c81653d.0b7c88"
- ]
- ]
- },
- {
- "id": "815f8d4d.b5bd9",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "presses",
- "property": "pressamount",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "1",
- "vt": "num"
- },
- {
- "t": "eq",
- "v": "2",
- "vt": "num"
- },
- {
- "t": "eq",
- "v": "3",
- "vt": "num"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 3,
- "x": 3580,
- "y": 1100,
- "wires": [
- [
- "a8afe648.833238"
- ],
- [
- "d15ff149.ba291"
- ],
- [
- "a2848aef.cb5118"
- ]
- ]
- },
- {
- "id": "d8589f7e.38d6",
- "type": "delay",
- "z": "46e39e32.08f7c",
- "name": "",
- "pauseType": "delay",
- "timeout": "1",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 2020,
- "y": 660,
- "wires": [
- [
- "58944673.8019b8"
- ]
- ]
- },
- {
- "id": "c84edc8c.52c5e",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Actions",
- "property": "command",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "on",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "off",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 2,
- "x": 2420,
- "y": 180,
- "wires": [
- [
- "887803a3.9af6f"
- ],
- [
- "eaf65744.949118"
- ]
- ]
- },
- {
- "id": "32633207.47694e",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Hotbox All",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "binary_sensor.hotbox_all_motion",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2200,
- "y": 560,
- "wires": [
- [
- "2e57ea9d.2837e6"
- ],
- [
- "d4a79ce.db00f6",
- "7582dfa3.ed92d",
- "151006a4.523109"
- ]
- ]
- },
- {
- "id": "ed6ab016.fa7f5",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "LVSpeakerW",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.living_room_window",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2230,
- "y": 1040,
- "wires": [
- [
- "b9f498ae.ccb158"
- ],
- [
- "eb2914bb.f98598"
- ]
- ]
- },
- {
- "id": "43419fc4.a047c",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Actions",
- "property": "command",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "on",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "off",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 2,
- "x": 2150,
- "y": 1480,
- "wires": [
- [
- "9b7a80ec.188d7"
- ],
- [
- "9e0ee08c.cd185"
- ]
- ]
- },
- {
- "id": "1df0e39a.ee5d4c",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Actions",
- "property": "command",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "on",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "off",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 2,
- "x": 2340,
- "y": 900,
- "wires": [
- [
- "570a263e.496d58"
- ],
- [
- "c3df8b12.86f828"
- ]
- ]
- },
- {
- "id": "cec3d41c.2f1a88",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "KitchenSpeaker",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.kitchen_speaker",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2240,
- "y": 1140,
- "wires": [
- [
- "459e522f.42507c"
- ],
- [
- "8afe0c49.073d1"
- ]
- ]
- },
- {
- "id": "cf936fd8.a4a0f",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "ClosetS",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.closet_speaker",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2220,
- "y": 1240,
- "wires": [
- [
- "1b166fa9.d1964"
- ],
- [
- "52432988.03c1f8"
- ]
- ]
- },
- {
- "id": "d5abf5aa.20f1e8",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "BAthroomS",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.bathroom_speaker",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2210,
- "y": 1340,
- "wires": [
- [
- "ce59b70e.4b5178"
- ],
- [
- "c42d9cb0.aa6a6"
- ]
- ]
- },
- {
- "id": "2e57ea9d.2837e6",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "HotboxStop",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.hotbox_speaker",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2410,
- "y": 480,
- "wires": [
- [
- "e1983d06.4b18f"
- ],
- [
- "f2f8009.74b"
- ]
- ]
- },
- {
- "id": "f2f8009.74b",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "HotboxSdown",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.hotbox_speaker_down",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2580,
- "y": 480,
- "wires": [
- [
- "e3cf27b9.b169a8"
- ],
- [
- "2418ecf3.14add4"
- ]
- ]
- },
- {
- "id": "2418ecf3.14add4",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "HotboxTVT",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.hotbox_tv",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "data.entity",
- "override_data": "msg",
- "blockInputOverrides": false,
- "x": 2750,
- "y": 480,
- "wires": [
- [
- "b644dcf4.52f0c"
- ],
- [
- "baa63bd6.fbe8c8"
- ]
- ]
- },
- {
- "id": "baa63bd6.fbe8c8",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "HotboxTVD",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.hotbox_tv_down",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2910,
- "y": 480,
- "wires": [
- [
- "e7b98861.a33848"
- ],
- [
- "6e5045.08410fbc"
- ]
- ]
- },
- {
- "id": "658eca70.c7f084",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "HotboxStop",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.hotbox_speaker",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2690,
- "y": 640,
- "wires": [
- [
- "f4699eff.db136"
- ],
- [
- "21d68760.b1e8d8"
- ]
- ]
- },
- {
- "id": "21d68760.b1e8d8",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "HotboxTVT",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.hotbox_tv",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "data.entity",
- "override_data": "msg",
- "blockInputOverrides": false,
- "x": 2890,
- "y": 640,
- "wires": [
- [
- "29c5a475.a4314c"
- ],
- [
- "571169ad.332d28"
- ]
- ]
- },
- {
- "id": "5f3153a9.7decbc",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "HotboxSdown",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.hotbox_speaker_down",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2700,
- "y": 560,
- "wires": [
- [
- "688b05ca.2671bc"
- ],
- [
- "813829c5.2c6658"
- ]
- ]
- },
- {
- "id": "813829c5.2c6658",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "HotboxTVD",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.hotbox_tv_down",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2930,
- "y": 560,
- "wires": [
- [
- "c583c18.bf4a34"
- ],
- [
- "1847241a.19284c"
- ]
- ]
- },
- {
- "id": "6e5045.08410fbc",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Roku",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.roku",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 3090,
- "y": 480,
- "wires": [
- [
- "a4b73953.aa8ec8"
- ],
- [
- "1847241a.19284c"
- ]
- ]
- },
- {
- "id": "571169ad.332d28",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Roku",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.roku",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 3070,
- "y": 640,
- "wires": [
- [
- "461bf4da.2bfcbc"
- ],
- [
- "1847241a.19284c"
- ]
- ]
- },
- {
- "id": "eb2914bb.f98598",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "LVSpeakerTV",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.living_room_speaker",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2420,
- "y": 1040,
- "wires": [
- [
- "38f0ae28.061012"
- ],
- [
- "6d75764.555b088"
- ]
- ]
- },
- {
- "id": "6d75764.555b088",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "LVTV",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.living_room_tv",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "data.entity",
- "override_data": "msg",
- "blockInputOverrides": false,
- "x": 2630,
- "y": 1040,
- "wires": [
- [
- "157f2091.abfbdf"
- ],
- [
- "1a0b95d.f24b26a"
- ]
- ]
- },
- {
- "id": "52432988.03c1f8",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "ClosetTV",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "(playing|paused)",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "media_player.closet_speaker",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2400,
- "y": 1240,
- "wires": [
- [
- "ad504b33.956eb8"
- ],
- [
- "2f9b9fe0.c32d6"
- ]
- ]
- },
- {
- "id": "9292ccd3.5d17f",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Actions",
- "property": "pressamount",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "1",
- "vt": "num"
- },
- {
- "t": "eq",
- "v": "2",
- "vt": "num"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 2,
- "x": 3960,
- "y": 260,
- "wires": [
- [
- "663e1c40.c6e6c4"
- ],
- [
- "59c3dea2.4e567"
- ]
- ]
- },
- {
- "id": "d05df524.bb0ad8",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Actions",
- "property": "pressamount",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "1",
- "vt": "num"
- },
- {
- "t": "eq",
- "v": "2",
- "vt": "num"
- },
- {
- "t": "eq",
- "v": "3",
- "vt": "num"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 3,
- "x": 3960,
- "y": 320,
- "wires": [
- [
- "915cb53b.3e43f8"
- ],
- [
- "59c3dea2.4e567"
- ],
- [
- "e92374fc.215f88"
- ]
- ]
- },
- {
- "id": "7abdae71.6aaff",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Actions",
- "property": "pressamount",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "1",
- "vt": "num"
- },
- {
- "t": "eq",
- "v": "2",
- "vt": "num"
- },
- {
- "t": "eq",
- "v": "3",
- "vt": "num"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 3,
- "x": 3960,
- "y": 380,
- "wires": [
- [
- "c4660008.45f3a"
- ],
- [
- "59c3dea2.4e567"
- ],
- [
- "d1e6eb9d.f40718"
- ]
- ]
- },
- {
- "id": "5413f7fe.93df88",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Actions",
- "property": "pressamount",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "1",
- "vt": "num"
- },
- {
- "t": "eq",
- "v": "2",
- "vt": "num"
- },
- {
- "t": "eq",
- "v": "5",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 3,
- "x": 3960,
- "y": 440,
- "wires": [
- [
- "b4426d27.53a2f"
- ],
- [
- "59c3dea2.4e567"
- ],
- [
- "e42a3857.ce0498"
- ]
- ]
- },
- {
- "id": "a8afe648.833238",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Where?",
- "property": "location",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "Bedroom",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "not_home",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Hotbox",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Chilling",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Kitchen",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Closet",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Bathroom",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": false,
- "outputs": 7,
- "x": 3680,
- "y": 800,
- "wires": [
- [
- "d471bd8a.7ee3"
- ],
- [
- "d471bd8a.7ee3"
- ],
- [
- "9c07955a.044bb8"
- ],
- [
- "8b6d270c.d9f978"
- ],
- [
- "dad1ad11.4a46f"
- ],
- [],
- [
- "eae5e7fc.8cc528"
- ]
- ]
- },
- {
- "id": "d15ff149.ba291",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Where?",
- "property": "location",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "Bedroom",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "not_home",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Hotbox",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Chilling",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Kitchen",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Closet",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Bathroom",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": false,
- "outputs": 7,
- "x": 3280,
- "y": 1400,
- "wires": [
- [
- "e1522efb.be2f8"
- ],
- [
- "e1522efb.be2f8"
- ],
- [
- "5ca2c76d.74a848"
- ],
- [
- "3f551efe.949682"
- ],
- [
- "a66832c.b007bd"
- ],
- [],
- [
- "af787fb0.ea8a9"
- ]
- ]
- },
- {
- "id": "a2848aef.cb5118",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Where?",
- "property": "location",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "Bedroom",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "not_home",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Hotbox",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Chilling",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Kitchen",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Closet",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Bathroom",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": false,
- "outputs": 7,
- "x": 3740,
- "y": 1100,
- "wires": [
- [
- "5bbf283.11b54d8"
- ],
- [
- "5bbf283.11b54d8"
- ],
- [
- "d7e63a35.28ebe8"
- ],
- [
- "6a0ffea2.d2c52"
- ],
- [
- "500edc0a.06d8c4"
- ],
- [
- "799e9287.c5bbdc"
- ],
- [
- "5dfa40e9.763b2"
- ]
- ]
- },
- {
- "id": "540c5efc.dc142",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Single Press",
- "rules": [
- {
- "t": "set",
- "p": "pressamount",
- "pt": "msg",
- "to": "1",
- "tot": "num"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1840,
- "y": 580,
- "wires": [
- [
- "d8589f7e.38d6"
- ]
- ]
- },
- {
- "id": "a84f7261.af388",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Double Press",
- "rules": [
- {
- "t": "set",
- "p": "pressamount",
- "pt": "msg",
- "to": "2",
- "tot": "num"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1850,
- "y": 620,
- "wires": [
- [
- "d8589f7e.38d6"
- ]
- ]
- },
- {
- "id": "97ba8ad8.5bf5f8",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Triple Press",
- "rules": [
- {
- "t": "set",
- "p": "pressamount",
- "pt": "msg",
- "to": "3",
- "tot": "num"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1840,
- "y": 660,
- "wires": [
- [
- "d8589f7e.38d6"
- ]
- ]
- },
- {
- "id": "cfd437e0.73ccd8",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Four Press",
- "rules": [
- {
- "t": "set",
- "p": "pressamount",
- "pt": "msg",
- "to": "4",
- "tot": "num"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1840,
- "y": 700,
- "wires": [
- [
- "d8589f7e.38d6"
- ]
- ]
- },
- {
- "id": "dd79aff3.3fe65",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Five Press",
- "rules": [
- {
- "t": "set",
- "p": "pressamount",
- "pt": "msg",
- "to": "5",
- "tot": "num"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1850,
- "y": 740,
- "wires": [
- [
- "730e4b13.a7b844",
- "d8589f7e.38d6"
- ]
- ]
- },
- {
- "id": "887803a3.9af6f",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "presses",
- "property": "pressamount",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "3",
- "vt": "num"
- },
- {
- "t": "eq",
- "v": "4",
- "vt": "num"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 2,
- "x": 2560,
- "y": 160,
- "wires": [
- [
- "f3f17a94.ecde68"
- ],
- [
- "83631ece.18054"
- ]
- ]
- },
- {
- "id": "eaf65744.949118",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "presses",
- "property": "pressamount",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "3",
- "vt": "num"
- },
- {
- "t": "eq",
- "v": "4",
- "vt": "num"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 2,
- "x": 2560,
- "y": 200,
- "wires": [
- [
- "754ce00c.482b9"
- ],
- [
- "81ce22f0.41802"
- ]
- ]
- },
- {
- "id": "d4a79ce.db00f6",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Hotbox down",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "on",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "binary_sensor.motion_hotbox_down",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2410,
- "y": 560,
- "wires": [
- [
- "5f3153a9.7decbc"
- ],
- []
- ]
- },
- {
- "id": "7582dfa3.ed92d",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Hotbox top",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "on",
- "halt_if_type": "re",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "binary_sensor.motion_hotbox_top",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2410,
- "y": 640,
- "wires": [
- [
- "658eca70.c7f084"
- ],
- []
- ]
- },
- {
- "id": "151006a4.523109",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Hotbox All off",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "binary_sensor.hotbox_all_motion_off",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 2410,
- "y": 520,
- "wires": [
- [
- "2e57ea9d.2837e6"
- ],
- []
- ]
- },
- {
- "id": "9b7a80ec.188d7",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "presses",
- "property": "pressamount",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "3",
- "vt": "num"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 1,
- "x": 2290,
- "y": 1460,
- "wires": [
- [
- "ea51018.9440c"
- ]
- ]
- },
- {
- "id": "9e0ee08c.cd185",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "presses",
- "property": "pressamount",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "3",
- "vt": "num"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 1,
- "x": 2290,
- "y": 1500,
- "wires": [
- [
- "99141fe.d1b42e"
- ]
- ]
- },
- {
- "id": "570a263e.496d58",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "presses",
- "property": "pressamount",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "3",
- "vt": "num"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 1,
- "x": 2480,
- "y": 880,
- "wires": [
- [
- "2fd15b76.d9a6a4"
- ]
- ]
- },
- {
- "id": "c3df8b12.86f828",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "presses",
- "property": "pressamount",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "3",
- "vt": "num"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 1,
- "x": 2480,
- "y": 920,
- "wires": [
- [
- "a30b2ef0.bda27"
- ]
- ]
- },
- {
- "id": "663e1c40.c6e6c4",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Play",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "media_player",
- "service": "media_play",
- "entityId": "",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "payload",
- "output_location_type": "msg",
- "mustacheAltTags": false,
- "x": 4140,
- "y": 260,
- "wires": [
- []
- ]
- },
- {
- "id": "59c3dea2.4e567",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Where?",
- "property": "location",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "Bedroom",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "not_home",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Hotbox",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Chilling",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Kitchen",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Closet",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "Bathroom",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": false,
- "outputs": 7,
- "x": 4140,
- "y": 160,
- "wires": [
- [
- "a7e41b7c.5f3178"
- ],
- [
- "a7e41b7c.5f3178"
- ],
- [
- "5265b9dc.3b4cc8"
- ],
- [
- "eb4fe03d.b120b"
- ],
- [
- "a248ca37.235628"
- ],
- [],
- [
- "d08aacb3.8b4b"
- ]
- ]
- },
- {
- "id": "915cb53b.3e43f8",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Volume 1/>1",
- "property": "volume",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "1",
- "vt": "num"
- },
- {
- "t": "neq",
- "v": "1",
- "vt": "num"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 2,
- "x": 4170,
- "y": 300,
- "wires": [
- [
- "ff4d9bdb.ad84b8"
- ],
- [
- "f1186296.b96b4"
- ]
- ]
- },
- {
- "id": "e92374fc.215f88",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Skip",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "media_player",
- "service": "media_seek",
- "entityId": "",
- "data": "{\"seek_position\": \"100000\"}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "payload",
- "output_location_type": "msg",
- "mustacheAltTags": false,
- "x": 4160,
- "y": 340,
- "wires": [
- []
- ]
- },
- {
- "id": "c4660008.45f3a",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Volume 0/<0",
- "property": "volume",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "0",
- "vt": "num"
- },
- {
- "t": "neq",
- "v": "0",
- "vt": "num"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 2,
- "x": 4270,
- "y": 380,
- "wires": [
- [
- "1729344f.8a69cc"
- ],
- [
- "f41fe5c8.de8c48"
- ]
- ]
- },
- {
- "id": "d1e6eb9d.f40718",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Return Start",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "media_player",
- "service": "media_seek",
- "entityId": "",
- "data": "{\"seek_position\": \"0\"}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "payload",
- "output_location_type": "msg",
- "mustacheAltTags": false,
- "x": 4160,
- "y": 420,
- "wires": [
- []
- ]
- },
- {
- "id": "b4426d27.53a2f",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Pause",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "media_player",
- "service": "media_pause",
- "entityId": "",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "payload",
- "output_location_type": "msg",
- "mustacheAltTags": false,
- "x": 4140,
- "y": 460,
- "wires": [
- []
- ]
- },
- {
- "id": "e42a3857.ce0498",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Stop all",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "media_player",
- "service": "turn_off",
- "entityId": "",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "payload",
- "output_location_type": "msg",
- "mustacheAltTags": false,
- "x": 4160,
- "y": 500,
- "wires": [
- []
- ]
- },
- {
- "id": "d471bd8a.7ee3",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Bedroom",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"light.bedroom_lights\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4160,
- "y": 680,
- "wires": [
- [
- "46cd54c9.21102c"
- ]
- ]
- },
- {
- "id": "9c07955a.044bb8",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Hotbox All",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "binary_sensor.hotbox_all_motion",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 3950,
- "y": 680,
- "wires": [
- [
- "d92e2f4c.07677"
- ],
- [
- "1e0cbd28.8484d3",
- "4d88cc46.5d62a4",
- "8a92acaf.0d67"
- ]
- ]
- },
- {
- "id": "8b6d270c.d9f978",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "LivingRo",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":[\"light.livingroom_lights\"]}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4160,
- "y": 840,
- "wires": [
- [
- "46cd54c9.21102c"
- ]
- ]
- },
- {
- "id": "dad1ad11.4a46f",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Kitchen",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":[\"light.kitchen_lights\"]}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4160,
- "y": 880,
- "wires": [
- [
- "46cd54c9.21102c"
- ]
- ]
- },
- {
- "id": "eae5e7fc.8cc528",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Bathroom",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"light.bathroom2\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4160,
- "y": 920,
- "wires": [
- [
- "46cd54c9.21102c"
- ]
- ]
- },
- {
- "id": "e1522efb.be2f8",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Bedroom",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"light.bedroom_lights\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 3660,
- "y": 1200,
- "wires": [
- [
- "99bb6322.d29df"
- ]
- ]
- },
- {
- "id": "5ca2c76d.74a848",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Hotbox All",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "binary_sensor.hotbox_all_motion",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 3550,
- "y": 1300,
- "wires": [
- [
- "ae52bce9.33ff3"
- ],
- [
- "281aadb6.ad4402",
- "67daac27.5e1ea4",
- "fe02466c.7fb148"
- ]
- ]
- },
- {
- "id": "3f551efe.949682",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "LivingRo",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"light.livingroom_lights\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 3720,
- "y": 1620,
- "wires": [
- [
- "99bb6322.d29df"
- ]
- ]
- },
- {
- "id": "a66832c.b007bd",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Kitchen",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"light.kitchen_lights\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 3720,
- "y": 1660,
- "wires": [
- [
- "99bb6322.d29df"
- ]
- ]
- },
- {
- "id": "af787fb0.ea8a9",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Bathroom",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"light.bathroom2\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 3720,
- "y": 1740,
- "wires": [
- [
- "99bb6322.d29df"
- ]
- ]
- },
- {
- "id": "5bbf283.11b54d8",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Bedroom",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"light.bedroom_lights\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 3960,
- "y": 940,
- "wires": [
- [
- "e4567284.916fa"
- ]
- ]
- },
- {
- "id": "d7e63a35.28ebe8",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Hotbox All",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "binary_sensor.hotbox_all_motion",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 3970,
- "y": 980,
- "wires": [
- [
- "64c02220.9e555c"
- ],
- [
- "585c89d7.9d3438",
- "aced8e47.02074",
- "e05bcceb.64c05"
- ]
- ]
- },
- {
- "id": "6a0ffea2.d2c52",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "LivingRo",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":[\"light.livingroom_lights\"]}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 3940,
- "y": 1140,
- "wires": [
- [
- "e4567284.916fa"
- ]
- ]
- },
- {
- "id": "500edc0a.06d8c4",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Kitchen",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":[\"light.kitchen_lights\"]}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 3940,
- "y": 1180,
- "wires": [
- [
- "e4567284.916fa"
- ]
- ]
- },
- {
- "id": "799e9287.c5bbdc",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "closet",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.closet_speaker\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 3930,
- "y": 1220,
- "wires": [
- [
- "e4567284.916fa"
- ]
- ]
- },
- {
- "id": "5dfa40e9.763b2",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Bathroom",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"light.bathroom2\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 3940,
- "y": 1260,
- "wires": [
- [
- "e4567284.916fa"
- ]
- ]
- },
- {
- "id": "c79b5f3b.54145",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "count presses",
- "property": "count",
- "propertyType": "flow",
- "rules": [
- {
- "t": "eq",
- "v": "1",
- "vt": "num"
- },
- {
- "t": "eq",
- "v": "2",
- "vt": "num"
- },
- {
- "t": "eq",
- "v": "3",
- "vt": "num"
- },
- {
- "t": "eq",
- "v": "4",
- "vt": "num"
- },
- {
- "t": "eq",
- "v": "5",
- "vt": "num"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 5,
- "x": 1630,
- "y": 640,
- "wires": [
- [
- "540c5efc.dc142"
- ],
- [
- "a84f7261.af388"
- ],
- [
- "97ba8ad8.5bf5f8"
- ],
- [
- "cfd437e0.73ccd8"
- ],
- [
- "dd79aff3.3fe65"
- ]
- ],
- "info": "Just expand the flow.count to how ever many\npresses you want/need."
- },
- {
- "id": "730e4b13.a7b844",
- "type": "debug",
- "z": "46e39e32.08f7c",
- "name": "YOYOYOYOYO",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "true",
- "targetType": "full",
- "x": 2000,
- "y": 780,
- "wires": []
- },
- {
- "id": "f3f17a94.ecde68",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Blind up",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "cover",
- "service": "open_cover",
- "entityId": "cover.bedroom_window",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "payload",
- "output_location_type": "msg",
- "mustacheAltTags": false,
- "x": 2740,
- "y": 100,
- "wires": [
- []
- ]
- },
- {
- "id": "83631ece.18054",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "screens on",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "switch",
- "service": "turn_on",
- "entityId": "switch.screens",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "payload",
- "output_location_type": "msg",
- "mustacheAltTags": false,
- "x": 2770,
- "y": 140,
- "wires": [
- []
- ]
- },
- {
- "id": "754ce00c.482b9",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Blind down",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "cover",
- "service": "close_cover",
- "entityId": "cover.bedroom_window",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "payload",
- "output_location_type": "msg",
- "mustacheAltTags": false,
- "x": 2750,
- "y": 180,
- "wires": [
- []
- ]
- },
- {
- "id": "81ce22f0.41802",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Blind up",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "switch",
- "service": "turn_off",
- "entityId": "switch.screens",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "payload",
- "output_location_type": "msg",
- "mustacheAltTags": false,
- "x": 2740,
- "y": 220,
- "wires": [
- []
- ]
- },
- {
- "id": "ea51018.9440c",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Blind up",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "cover",
- "service": "open_cover",
- "entityId": "cover.living_room",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "payload",
- "output_location_type": "msg",
- "mustacheAltTags": false,
- "x": 2470,
- "y": 1420,
- "wires": [
- []
- ]
- },
- {
- "id": "99141fe.d1b42e",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Blind down",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "cover",
- "service": "close_cover",
- "entityId": "cover.living_room",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "payload",
- "output_location_type": "msg",
- "mustacheAltTags": false,
- "x": 2480,
- "y": 1480,
- "wires": [
- []
- ]
- },
- {
- "id": "2fd15b76.d9a6a4",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Blind up",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "cover",
- "service": "open_cover",
- "entityId": "cover.bedroom_window",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "payload",
- "output_location_type": "msg",
- "mustacheAltTags": false,
- "x": 2660,
- "y": 820,
- "wires": [
- []
- ]
- },
- {
- "id": "a30b2ef0.bda27",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Blind down",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "cover",
- "service": "close_cover",
- "entityId": "cover.bedroom_window",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "payload",
- "output_location_type": "msg",
- "mustacheAltTags": false,
- "x": 2670,
- "y": 900,
- "wires": [
- []
- ]
- },
- {
- "id": "a7e41b7c.5f3178",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Bedroom",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"light.bedroom_lights\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4340,
- "y": 40,
- "wires": [
- [
- "9a5bcf2b.910bc"
- ]
- ]
- },
- {
- "id": "5265b9dc.3b4cc8",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "HotBox",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":[\"light.hotbox_lights\"]}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4340,
- "y": 80,
- "wires": [
- [
- "9a5bcf2b.910bc",
- "dc73623c.0e0ed"
- ]
- ]
- },
- {
- "id": "eb4fe03d.b120b",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "LivingRo",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":[\"light.livingroom_lights\"]}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4340,
- "y": 120,
- "wires": [
- [
- "9a5bcf2b.910bc"
- ]
- ]
- },
- {
- "id": "a248ca37.235628",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Kitchen",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":[\"light.kitchen_lights\"]}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4340,
- "y": 160,
- "wires": [
- [
- "9a5bcf2b.910bc"
- ]
- ]
- },
- {
- "id": "d08aacb3.8b4b",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Bathroom",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"light.bathroom2\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4340,
- "y": 200,
- "wires": [
- [
- "9a5bcf2b.910bc"
- ]
- ]
- },
- {
- "id": "ff4d9bdb.ad84b8",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Tv",
- "property": "payload.data.entity_id",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "media_player.plex_pc",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "media_player.hotbox_tv",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "media_player.living_room_tv",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 3,
- "x": 4290,
- "y": 260,
- "wires": [
- [
- "51b0caa0.d2faf4"
- ],
- [
- "5eef71cc.3993c"
- ],
- [
- "c90b6400.c22aa8"
- ]
- ]
- },
- {
- "id": "f1186296.b96b4",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "V. Up S",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "media_player",
- "service": "volume_up",
- "entityId": "",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "payload",
- "output_location_type": "msg",
- "mustacheAltTags": false,
- "x": 4620,
- "y": 300,
- "wires": [
- []
- ]
- },
- {
- "id": "1729344f.8a69cc",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Tv",
- "property": "payload.data.entity_id",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "media_player.plex_pc",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "media_player.hotbox_tv",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "media_player.living_room_tv",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": true,
- "outputs": 3,
- "x": 4470,
- "y": 360,
- "wires": [
- [
- "559da70e.505828"
- ],
- [
- "648b68a.f1c0498"
- ],
- [
- "d0cbcb06.6d1b08"
- ]
- ]
- },
- {
- "id": "f41fe5c8.de8c48",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "V. down S",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "media_player",
- "service": "volume_down",
- "entityId": "",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "payload",
- "output_location_type": "msg",
- "mustacheAltTags": false,
- "x": 4760,
- "y": 440,
- "wires": [
- []
- ]
- },
- {
- "id": "46cd54c9.21102c",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "",
- "property": "command",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "on",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "up",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "down",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "off",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 4,
- "x": 4490,
- "y": 740,
- "wires": [
- [
- "b0707a5a.151448"
- ],
- [
- "3313a3c2.841f1c"
- ],
- [
- "8126fe05.09a54"
- ],
- [
- "700f1b85.042fd4"
- ]
- ]
- },
- {
- "id": "d92e2f4c.07677",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "HotBox",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":[\"light.hotbox_lights\"]}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4160,
- "y": 720,
- "wires": [
- [
- "46cd54c9.21102c"
- ]
- ]
- },
- {
- "id": "1e0cbd28.8484d3",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Hotbox down",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "binary_sensor.motion_hotbox_down",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 3950,
- "y": 720,
- "wires": [
- [
- "ccf6313e.6591f"
- ],
- []
- ]
- },
- {
- "id": "4d88cc46.5d62a4",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Hotbox top",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "binary_sensor.motion_hotbox_top",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 3950,
- "y": 760,
- "wires": [
- [
- "7ddde00e.acdd1"
- ],
- []
- ]
- },
- {
- "id": "8a92acaf.0d67",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Hotbox All",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "binary_sensor.hotbox_all_motion_off",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 3920,
- "y": 800,
- "wires": [
- [
- "d92e2f4c.07677"
- ],
- []
- ]
- },
- {
- "id": "99bb6322.d29df",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "",
- "property": "command",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "on",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "up",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "down",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "off",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 4,
- "x": 3940,
- "y": 1400,
- "wires": [
- [
- "f6b0f40f.49e6e8"
- ],
- [
- "95f5ed93.d4c5e"
- ],
- [
- "8027d973.6e7c18"
- ],
- [
- "86501ace.9dc768"
- ]
- ]
- },
- {
- "id": "ae52bce9.33ff3",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "HotBox",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"light.hotbox_lights\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 3740,
- "y": 1360,
- "wires": [
- [
- "99bb6322.d29df"
- ]
- ]
- },
- {
- "id": "281aadb6.ad4402",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Hotbox down",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "binary_sensor.motion_hotbox_down",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 3540,
- "y": 1360,
- "wires": [
- [
- "1de1baa5.2557d5"
- ],
- []
- ]
- },
- {
- "id": "67daac27.5e1ea4",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Hotbox top",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "binary_sensor.motion_hotbox_top",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 3550,
- "y": 1420,
- "wires": [
- [
- "228a5ab2.4057f6"
- ],
- []
- ]
- },
- {
- "id": "fe02466c.7fb148",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Hotbox All",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "binary_sensor.hotbox_all_motion_off",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 3550,
- "y": 1480,
- "wires": [
- [
- "ae52bce9.33ff3"
- ],
- []
- ]
- },
- {
- "id": "e4567284.916fa",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "command",
- "property": "command",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "up",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "down",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 4320,
- "y": 1020,
- "wires": [
- [
- "9f4f3e4.306fdc"
- ],
- [
- "9d3e9529.16f558"
- ]
- ]
- },
- {
- "id": "64c02220.9e555c",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "HotBox",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"light.hotbox_lights\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4120,
- "y": 980,
- "wires": [
- [
- "e4567284.916fa"
- ]
- ]
- },
- {
- "id": "585c89d7.9d3438",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Hotbox down",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "binary_sensor.motion_hotbox_down",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 3970,
- "y": 1020,
- "wires": [
- [
- "9f66c6d8.100f98"
- ],
- []
- ]
- },
- {
- "id": "aced8e47.02074",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Hotbox top",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "binary_sensor.motion_hotbox_top",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 3970,
- "y": 1060,
- "wires": [
- [
- "247b1430.bc0f9c"
- ],
- []
- ]
- },
- {
- "id": "e05bcceb.64c05",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Hotbox All",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 2,
- "halt_if": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "binary_sensor.hotbox_all_motion_off",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 3960,
- "y": 1100,
- "wires": [
- [
- "64c02220.9e555c"
- ],
- []
- ]
- },
- {
- "id": "518b0123.edffd",
- "type": "trigger",
- "z": "46e39e32.08f7c",
- "op1": "",
- "op2": "0",
- "op1type": "nul",
- "op2type": "str",
- "duration": "800",
- "extend": true,
- "units": "ms",
- "reset": "",
- "bytopic": "all",
- "name": "",
- "x": 1300,
- "y": 640,
- "wires": [
- [
- "1220f152.65569f",
- "c79b5f3b.54145"
- ]
- ]
- },
- {
- "id": "9a5bcf2b.910bc",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "",
- "property": "command",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "on",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "up",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "down",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "off",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 4,
- "x": 4550,
- "y": 100,
- "wires": [
- [
- "3f01591e.f66d46"
- ],
- [
- "51a60953.f78698"
- ],
- [
- "aab90588.920bf8"
- ],
- [
- "bb29fa80.b1edf8"
- ]
- ]
- },
- {
- "id": "dc73623c.0e0ed",
- "type": "debug",
- "z": "46e39e32.08f7c",
- "name": "",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "true",
- "targetType": "full",
- "x": 4530,
- "y": 180,
- "wires": []
- },
- {
- "id": "51b0caa0.d2faf4",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Roku",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.bedroom_tv\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4430,
- "y": 240,
- "wires": [
- [
- "f1186296.b96b4"
- ]
- ]
- },
- {
- "id": "5eef71cc.3993c",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Roku",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.roku\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4430,
- "y": 280,
- "wires": [
- [
- "f1186296.b96b4"
- ]
- ]
- },
- {
- "id": "c90b6400.c22aa8",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Roku",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.living_room_lg_2\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4410,
- "y": 320,
- "wires": [
- [
- "f1186296.b96b4"
- ]
- ]
- },
- {
- "id": "559da70e.505828",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Roku",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.bedroom_tv\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4620,
- "y": 380,
- "wires": [
- [
- "f41fe5c8.de8c48"
- ]
- ]
- },
- {
- "id": "648b68a.f1c0498",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Roku",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.roku\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4610,
- "y": 340,
- "wires": [
- [
- "f41fe5c8.de8c48"
- ]
- ]
- },
- {
- "id": "d0cbcb06.6d1b08",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Roku",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"media_player.living_room_lg_2\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4610,
- "y": 400,
- "wires": [
- [
- "f41fe5c8.de8c48"
- ]
- ]
- },
- {
- "id": "b0707a5a.151448",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Lights on",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_on",
- "entityId": "",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 4700,
- "y": 700,
- "wires": [
- []
- ]
- },
- {
- "id": "3313a3c2.841f1c",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Brigthen lights",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_on",
- "entityId": "",
- "data": "{\"brightness_step\":25}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 4740,
- "y": 740,
- "wires": [
- []
- ]
- },
- {
- "id": "8126fe05.09a54",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Dim lights",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_on",
- "entityId": "",
- "data": "{\"brightness_step\":-35}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 4720,
- "y": 780,
- "wires": [
- []
- ]
- },
- {
- "id": "700f1b85.042fd4",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Lights off",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_off",
- "entityId": "",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 4720,
- "y": 820,
- "wires": [
- []
- ]
- },
- {
- "id": "ccf6313e.6591f",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "HotBox Down",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":[\"light.hotbox_down\"]}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4160,
- "y": 760,
- "wires": [
- [
- "46cd54c9.21102c"
- ]
- ]
- },
- {
- "id": "7ddde00e.acdd1",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "HotBox Wall",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":[\"light.hotbox_wall\"]}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4150,
- "y": 800,
- "wires": [
- [
- "46cd54c9.21102c"
- ]
- ]
- },
- {
- "id": "f6b0f40f.49e6e8",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "set id to curent state",
- "rules": [
- {
- "t": "set",
- "p": "payload.entity_id",
- "pt": "msg",
- "to": "payload.data.entity_id",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4110,
- "y": 1340,
- "wires": [
- [
- "401b9615.f012d8",
- "728b19d0.ee5098"
- ]
- ]
- },
- {
- "id": "95f5ed93.d4c5e",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "set id to curent state",
- "rules": [
- {
- "t": "set",
- "p": "payload.entity_id",
- "pt": "msg",
- "to": "payload.data.entity_id",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4130,
- "y": 1380,
- "wires": [
- [
- "b59e4b3.cbd33b8"
- ]
- ]
- },
- {
- "id": "8027d973.6e7c18",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "set id to curent state",
- "rules": [
- {
- "t": "set",
- "p": "payload.entity_id",
- "pt": "msg",
- "to": "payload.data.entity_id",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4130,
- "y": 1420,
- "wires": [
- [
- "6c597de3.399c64"
- ]
- ]
- },
- {
- "id": "86501ace.9dc768",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "set id to curent state",
- "rules": [
- {
- "t": "set",
- "p": "payload.entity_id",
- "pt": "msg",
- "to": "payload.data.entity_id",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4110,
- "y": 1460,
- "wires": [
- [
- "d2395327.50788"
- ]
- ]
- },
- {
- "id": "1de1baa5.2557d5",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "HotBox Down",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"light.hotbox_down\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 3760,
- "y": 1400,
- "wires": [
- [
- "99bb6322.d29df"
- ]
- ]
- },
- {
- "id": "228a5ab2.4057f6",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "HotBox Wall",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":\"light.hotbox_wall\"}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 3750,
- "y": 1440,
- "wires": [
- [
- "99bb6322.d29df"
- ]
- ]
- },
- {
- "id": "9f4f3e4.306fdc",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "max brightness",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_on",
- "entityId": "",
- "data": "{\"brightness_pct\":100}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 4520,
- "y": 980,
- "wires": [
- []
- ]
- },
- {
- "id": "9d3e9529.16f558",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "min brightness",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_on",
- "entityId": "",
- "data": "{\"brightness_pct\":15}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 4520,
- "y": 1020,
- "wires": [
- []
- ]
- },
- {
- "id": "9f66c6d8.100f98",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "HotBox Down",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":[\"light.hotbox_down\"]}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4140,
- "y": 1020,
- "wires": [
- [
- "e4567284.916fa"
- ]
- ]
- },
- {
- "id": "247b1430.bc0f9c",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "HotBox Wall",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "{\"data\":{\"entity_id\":[\"light.hotbox_wall\"]}}",
- "tot": "json"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4130,
- "y": 1060,
- "wires": [
- [
- "e4567284.916fa"
- ]
- ]
- },
- {
- "id": "1220f152.65569f",
- "type": "delay",
- "z": "46e39e32.08f7c",
- "name": "Delay",
- "pauseType": "delay",
- "timeout": "1",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 1270,
- "y": 600,
- "wires": [
- [
- "a1e8a3c4.e4fc4"
- ]
- ]
- },
- {
- "id": "fbfe0617.3fbbc8",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "Watch",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 1,
- "halt_if": "",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": true,
- "entity_id": "sensor.galaxywatch",
- "state_type": "str",
- "state_location": "location",
- "override_payload": "msg",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 1030,
- "y": 540,
- "wires": [
- [
- "518b0123.edffd",
- "2ec8ec26.2c8d24"
- ]
- ]
- },
- {
- "id": "3f01591e.f66d46",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Lights on",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_on",
- "entityId": "",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 4740,
- "y": 60,
- "wires": [
- []
- ]
- },
- {
- "id": "51a60953.f78698",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Brigthen lights",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_on",
- "entityId": "",
- "data": "{\"brightness_step\":25}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 4760,
- "y": 100,
- "wires": [
- []
- ]
- },
- {
- "id": "aab90588.920bf8",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Dim lights",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_on",
- "entityId": "",
- "data": "{\"brightness_step\":-35}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 4740,
- "y": 140,
- "wires": [
- []
- ]
- },
- {
- "id": "bb29fa80.b1edf8",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Lights off",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_off",
- "entityId": "",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 4740,
- "y": 180,
- "wires": [
- []
- ]
- },
- {
- "id": "401b9615.f012d8",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 1,
- "halt_if": "",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "color",
- "override_data": "msg",
- "blockInputOverrides": false,
- "x": 4310,
- "y": 1340,
- "wires": [
- [
- "a9f77b94.af8768",
- "5905a25b.3ef3bc"
- ]
- ]
- },
- {
- "id": "728b19d0.ee5098",
- "type": "debug",
- "z": "46e39e32.08f7c",
- "name": "",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "true",
- "targetType": "full",
- "x": 4330,
- "y": 1280,
- "wires": []
- },
- {
- "id": "b59e4b3.cbd33b8",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 1,
- "halt_if": "",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "color",
- "override_data": "msg",
- "blockInputOverrides": false,
- "x": 4330,
- "y": 1380,
- "wires": [
- [
- "52b21c6.3d858e4"
- ]
- ]
- },
- {
- "id": "6c597de3.399c64",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 1,
- "halt_if": "",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "color",
- "override_data": "msg",
- "blockInputOverrides": false,
- "x": 4330,
- "y": 1420,
- "wires": [
- [
- "5509e9db.4342e8"
- ]
- ]
- },
- {
- "id": "d2395327.50788",
- "type": "api-current-state",
- "z": "46e39e32.08f7c",
- "name": "",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "outputs": 1,
- "halt_if": "",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "",
- "state_type": "str",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "color",
- "override_data": "msg",
- "blockInputOverrides": false,
- "x": 4310,
- "y": 1460,
- "wires": [
- [
- "337b32b9.f57c1e"
- ]
- ]
- },
- {
- "id": "a1e8a3c4.e4fc4",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Reset",
- "rules": [
- {
- "t": "set",
- "p": "reset",
- "pt": "msg",
- "to": "foo",
- "tot": "str"
- },
- {
- "t": "delete",
- "p": "payload",
- "pt": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1450,
- "y": 600,
- "wires": [
- [
- "2ec8ec26.2c8d24"
- ]
- ]
- },
- {
- "id": "2ec8ec26.2c8d24",
- "type": "counter",
- "z": "46e39e32.08f7c",
- "name": "",
- "init": "0",
- "step": "1",
- "lower": "",
- "upper": "",
- "mode": "increment",
- "outputs": "1",
- "x": 1450,
- "y": 540,
- "wires": [
- [
- "ba36d3c4.f64f1"
- ]
- ]
- },
- {
- "id": "d6b7c7f.3115938",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "command",
- "rules": [
- {
- "t": "set",
- "p": "command",
- "pt": "msg",
- "to": "up",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 890,
- "y": 460,
- "wires": [
- [
- "fbfe0617.3fbbc8"
- ]
- ]
- },
- {
- "id": "a93b4372.30c0d",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "command",
- "rules": [
- {
- "t": "set",
- "p": "command",
- "pt": "msg",
- "to": "down",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 890,
- "y": 500,
- "wires": [
- [
- "fbfe0617.3fbbc8"
- ]
- ]
- },
- {
- "id": "e6fcf885.722e18",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "command",
- "rules": [
- {
- "t": "set",
- "p": "command",
- "pt": "msg",
- "to": "off",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 790,
- "y": 540,
- "wires": [
- [
- "fbfe0617.3fbbc8"
- ]
- ]
- },
- {
- "id": "cce8a306.9195b",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "command",
- "rules": [
- {
- "t": "set",
- "p": "command",
- "pt": "msg",
- "to": "on",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 790,
- "y": 580,
- "wires": [
- [
- "fbfe0617.3fbbc8"
- ]
- ]
- },
- {
- "id": "a9f77b94.af8768",
- "type": "function",
- "z": "46e39e32.08f7c",
- "name": "color",
- "func": "var color1 = msg.color.attributes.rgb_color[0];\nvar color2 = msg.color.attributes.rgb_color[1];\nvar color3 = msg.color.attributes.rgb_color[2];\n\nif (color1 == 255 && color2 > 253 && color3 > 253){\n var newColor = \"white\";\n} else {\n var newColor = \"other\";\n}\n\nvar newMsg = {\n \"color\": newColor,\n \"payload\": {\n \"data\": {\n \"entity_id\": msg.payload.entity_id\n }\n }\n};\nreturn newMsg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4460,
- "y": 1340,
- "wires": [
- [
- "8e01e05f.8bead"
- ]
- ]
- },
- {
- "id": "5905a25b.3ef3bc",
- "type": "debug",
- "z": "46e39e32.08f7c",
- "name": "",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "true",
- "targetType": "full",
- "x": 4470,
- "y": 1180,
- "wires": []
- },
- {
- "id": "52b21c6.3d858e4",
- "type": "function",
- "z": "46e39e32.08f7c",
- "name": "color",
- "func": "var color1 = msg.color.attributes.rgb_color[0];\nvar color2 = msg.color.attributes.rgb_color[1];\nvar color3 = msg.color.attributes.rgb_color[2];\n\nif (color1 == 0 && color2 == 0 && color3 == 255){\n var newColor = \"blue\";\n} else {\n var newColor = \"other\";\n}\n\nvar newMsg = {\n \"color\": newColor,\n \"payload\": {\n \"data\": {\n \"entity_id\": msg.payload.entity_id\n }\n }\n};\nreturn newMsg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4480,
- "y": 1380,
- "wires": [
- [
- "75d00827.3451b8"
- ]
- ]
- },
- {
- "id": "5509e9db.4342e8",
- "type": "function",
- "z": "46e39e32.08f7c",
- "name": "color",
- "func": "var color1 = msg.color.attributes.rgb_color[0];\nvar color2 = msg.color.attributes.rgb_color[1];\nvar color3 = msg.color.attributes.rgb_color[2];\n\nif (color1 == 0 && color2 == 255 && color3 == 0){\n var newColor = \"green\";\n} else {\n var newColor = \"other\";\n}\n\nvar newMsg = {\n \"color\": newColor,\n \"payload\": {\n \"data\": {\n \"entity_id\": msg.payload.entity_id\n }\n }\n};\nreturn newMsg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4480,
- "y": 1420,
- "wires": [
- [
- "740feca4.38cfb4"
- ]
- ]
- },
- {
- "id": "337b32b9.f57c1e",
- "type": "function",
- "z": "46e39e32.08f7c",
- "name": "color",
- "func": "var color1 = msg.color.attributes.rgb_color[0];\nvar color2 = msg.color.attributes.rgb_color[1];\nvar color3 = msg.color.attributes.rgb_color[2];\n\nif (color1 == 255 && color2 == 254 && color3 == 0){\n var newColor = \"yellow\";\n} else {\n var newColor = \"other\";\n}\n\nvar newMsg = {\n \"color\": newColor,\n \"payload\": {\n \"data\": {\n \"entity_id\": msg.payload.entity_id\n }\n }\n};\nreturn newMsg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4460,
- "y": 1460,
- "wires": [
- [
- "1760cc86.fbfe23"
- ]
- ]
- },
- {
- "id": "1cbcc9ec.c15fd6",
- "type": "inject",
- "z": "46e39e32.08f7c",
- "name": "Reset",
- "topic": "",
- "payload": "",
- "payloadType": "date",
- "repeat": "",
- "crontab": "",
- "once": true,
- "onceDelay": "0.5",
- "x": 1270,
- "y": 560,
- "wires": [
- [
- "a1e8a3c4.e4fc4"
- ]
- ]
- },
- {
- "id": "ba36d3c4.f64f1",
- "type": "change",
- "z": "46e39e32.08f7c",
- "name": "Flow set",
- "rules": [
- {
- "t": "set",
- "p": "count",
- "pt": "flow",
- "to": "count",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1610,
- "y": 540,
- "wires": [
- [
- "b1a9d8cf.8b5468"
- ]
- ]
- },
- {
- "id": "693f683a.522e18",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Ste?",
- "property": "payload.event.args[0]",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "0",
- "vt": "num"
- },
- {
- "t": "eq",
- "v": "1",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 760,
- "y": 500,
- "wires": [
- [
- "d6b7c7f.3115938"
- ],
- [
- "a93b4372.30c0d"
- ]
- ]
- },
- {
- "id": "e6f53bb.be945c8",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Command?",
- "property": "payload.event.command",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "step",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "off_with_effect",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "on",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 3,
- "x": 610,
- "y": 520,
- "wires": [
- [
- "693f683a.522e18"
- ],
- [
- "e6fcf885.722e18"
- ],
- [
- "cce8a306.9195b"
- ]
- ]
- },
- {
- "id": "8e01e05f.8bead",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "",
- "property": "color",
- "propertyType": "msg",
- "rules": [
- {
- "t": "neq",
- "v": "white",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "white",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 4680,
- "y": 1340,
- "wires": [
- [
- "c5e092d6.d2a7f"
- ],
- [
- "b2894d96.6c3bb"
- ]
- ]
- },
- {
- "id": "75d00827.3451b8",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "",
- "property": "color",
- "propertyType": "msg",
- "rules": [
- {
- "t": "neq",
- "v": "blue",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "blue",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 4680,
- "y": 1380,
- "wires": [
- [
- "d9ca0602.927158"
- ],
- [
- "e04874.57fc379"
- ]
- ]
- },
- {
- "id": "740feca4.38cfb4",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "",
- "property": "color",
- "propertyType": "msg",
- "rules": [
- {
- "t": "neq",
- "v": "green",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "green",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 4680,
- "y": 1420,
- "wires": [
- [
- "31d0c40f.d88eec"
- ],
- [
- "31b10624.4ea06a"
- ]
- ]
- },
- {
- "id": "1760cc86.fbfe23",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "",
- "property": "color",
- "propertyType": "msg",
- "rules": [
- {
- "t": "neq",
- "v": "yellow",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "yellow",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 4660,
- "y": 1460,
- "wires": [
- [
- "4a0b8d0a.ffd5e4"
- ],
- [
- "6d4df1fe.a678b"
- ]
- ]
- },
- {
- "id": "b1a9d8cf.8b5468",
- "type": "debug",
- "z": "46e39e32.08f7c",
- "name": "",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "count",
- "targetType": "msg",
- "x": 1840,
- "y": 540,
- "wires": []
- },
- {
- "id": "edf54e03.86a4b",
- "type": "switch",
- "z": "46e39e32.08f7c",
- "name": "Device?",
- "property": "payload.event.device_ieee",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "00:17:88:01:08:0b:50:a4",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 400,
- "y": 520,
- "wires": [
- [
- "e6f53bb.be945c8",
- "26715017.f2f5a"
- ]
- ]
- },
- {
- "id": "c5e092d6.d2a7f",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "White llights",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_on",
- "entityId": "",
- "data": "{\"rgb_color\":[255,255,254]}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 4870,
- "y": 1300,
- "wires": [
- []
- ]
- },
- {
- "id": "b2894d96.6c3bb",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Purple lights",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_on",
- "entityId": "",
- "data": "{\"color_name\":\"purple\"}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 4880,
- "y": 1340,
- "wires": [
- []
- ]
- },
- {
- "id": "d9ca0602.927158",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Blue Lights",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_on",
- "entityId": "",
- "data": "{\"color_name\":\"blue\"}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 4880,
- "y": 1380,
- "wires": [
- []
- ]
- },
- {
- "id": "e04874.57fc379",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Red lights",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_on",
- "entityId": "",
- "data": "{\"color_name\":\"red\"}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 4890,
- "y": 1420,
- "wires": [
- []
- ]
- },
- {
- "id": "31d0c40f.d88eec",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "GReen Lights",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_on",
- "entityId": "",
- "data": "{\"color_name\":\"green\"}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 4890,
- "y": 1460,
- "wires": [
- []
- ]
- },
- {
- "id": "31b10624.4ea06a",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Orange Lights",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_on",
- "entityId": "",
- "data": "{\"color_name\":\"orange\"}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 4890,
- "y": 1500,
- "wires": [
- []
- ]
- },
- {
- "id": "4a0b8d0a.ffd5e4",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Yellow Lights",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_on",
- "entityId": "",
- "data": "{\"color_name\":\"yellow\"}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 4880,
- "y": 1540,
- "wires": [
- []
- ]
- },
- {
- "id": "6d4df1fe.a678b",
- "type": "api-call-service",
- "z": "46e39e32.08f7c",
- "name": "Cyan Lights",
- "server": "7ab5c227.a3ce8c",
- "version": 1,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_on",
- "entityId": "",
- "data": "{\"color_name\":\"cyan\"}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 4880,
- "y": 1580,
- "wires": [
- []
- ]
- },
- {
- "id": "dd4a9127.2cf1a",
- "type": "server-events",
- "z": "46e39e32.08f7c",
- "name": "",
- "server": "7ab5c227.a3ce8c",
- "event_type": "zha_event",
- "exposeToHomeAssistant": false,
- "haConfig": [
- {
- "property": "name",
- "value": ""
- },
- {
- "property": "icon",
- "value": ""
- }
- ],
- "x": 170,
- "y": 500,
- "wires": [
- [
- "ab7f7635.28e9d8",
- "edf54e03.86a4b"
- ]
- ]
- },
- {
- "id": "26715017.f2f5a",
- "type": "debug",
- "z": "46e39e32.08f7c",
- "name": "first",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "true",
- "targetType": "full",
- "x": 610,
- "y": 400,
- "wires": []
- },
- {
- "id": "ab7f7635.28e9d8",
- "type": "debug",
- "z": "46e39e32.08f7c",
- "name": "zero",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "true",
- "targetType": "full",
- "x": 410,
- "y": 380,
- "wires": []
- },
- {
- "id": "7ab5c227.a3ce8c",
- "type": "server",
- "z": "",
- "name": "Home Assistant",
- "legacy": false,
- "addon": false,
- "rejectUnauthorizedCerts": false,
- "ha_boolean": "y|yes|true|on|home|open",
- "connectionDelay": true,
- "cacheJson": false
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement