Skip to content

Commit

Permalink
was watching wrong device for guests going to sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
NickBorgers committed Jul 25, 2023
1 parent d430c33 commit cd7ab44
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions flows.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@
"64fb15a8a7187bb5"
],
"x": 634,
"y": 379
"y": 379,
"w": 1352,
"h": 322
},
{
"id": "5b09580d85cd2e6c",
Expand All @@ -135,7 +137,9 @@
"d57cd408292923c8"
],
"x": 394,
"y": 819
"y": 819,
"w": 832,
"h": 142
},
{
"id": "c48cec27c550ff16",
Expand Down Expand Up @@ -164,7 +168,9 @@
"390fb9a37ca3a441"
],
"x": 1314,
"y": 859
"y": 859,
"w": 872,
"h": 402
},
{
"id": "4b656d74411ea89c",
Expand Down Expand Up @@ -193,7 +199,9 @@
"8887203cd9731ca8"
],
"x": 34,
"y": 979
"y": 979,
"w": 1212,
"h": 282
},
{
"id": "39e525a9dd77b708",
Expand Down Expand Up @@ -227,7 +235,9 @@
"4f197c88344aa51e"
],
"x": 774,
"y": 39
"y": 39,
"w": 1472,
"h": 302
},
{
"id": "b2cc5799.eea9d",
Expand Down Expand Up @@ -2344,7 +2354,7 @@
"value": ""
}
],
"entityidfilter": "weather.home",
"entityidfilter": "light.guest_bedroom_lamp",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
Expand Down Expand Up @@ -6985,7 +6995,7 @@
"type": "function",
"z": "90f5fe8cb80ae6a7",
"name": "For all speakers generate volume 0 msg",
"func": "playerNames = new Set()\n\nmusicConfig = global.get(\"state\").musicConfig.value\n\nObject.values(musicConfig).forEach(function(musicType) {\n musicType.participants.forEach(function(participant) {\n playerNames.add(participant.player_name)\n });\n});\n\nplayerNames.forEach(function(playerName) {\n msg = {}\n msg.playerName = playerName\n msg.payload = 0\n node.send(msg);\n});",
"func": "var playerNames = new Set()\n\nvar musicConfig = global.get(\"state\").musicConfig.value.music\nnode.warn(musicConfig)\nObject.values(musicConfig).forEach(function(musicType) {\n node.warn(musicType)\n musicType.participants.forEach(function (participant) {\n playerNames.add(participant.player_name)\n });\n});\n\nplayerNames.forEach(function(playerName) {\n msg = {}\n msg.playerName = playerName\n msg.payload = 0\n node.send(msg);\n});",
"outputs": 1,
"noerr": 0,
"initialize": "",
Expand Down

0 comments on commit cd7ab44

Please sign in to comment.