From f290ae7582ca9ffdf3388625c3a198bf911edf8b Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 29 Apr 2025 17:41:15 -0400 Subject: [PATCH] Switch to polling nodes for aircon beep fixes. Add debug nodes. --- flows.json | 234 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 132 insertions(+), 102 deletions(-) diff --git a/flows.json b/flows.json index 5c82578..5d2bfbc 100644 --- a/flows.json +++ b/flows.json @@ -978,8 +978,9 @@ "862666f576addab8", "bcef7debc9bda36c", "5ee549aa5e97d4a5", - "01d27485bee0d220", - "b4d619d31ec9121d" + "b4d619d31ec9121d", + "d1dd42ebc53343df", + "1fc55a133a7d82c4" ], "x": 14, "y": 11.5, @@ -2437,8 +2438,9 @@ "f1f2ac113fe2b639", "b96ad84b569ac360", "894e510fd44b01e0", - "a11aeb4ccc595a4c", - "eee837a3c93b3abd" + "eee837a3c93b3abd", + "2a02683008423af4", + "057eda6b0cd976d9" ], "x": 14, "y": 1319, @@ -24610,7 +24612,7 @@ "z": "72f99805df043603", "g": "5802ea32c1de36e8", "name": "AC Settings Debug", - "active": true, + "active": false, "tosidebar": true, "console": false, "tostatus": false, @@ -24692,7 +24694,7 @@ "z": "72f99805df043603", "g": "5802ea32c1de36e8", "name": "Watchdog Debug", - "active": true, + "active": false, "tosidebar": true, "console": false, "tostatus": false, @@ -24971,54 +24973,6 @@ ] ] }, - { - "id": "01d27485bee0d220", - "type": "server-state-changed", - "z": "72f99805df043603", - "g": "e065b1ed4938b477", - "name": "Beep Turned On", - "server": "9e87348d.9c1c48", - "version": 6, - "outputs": 2, - "exposeAsEntityConfig": "", - "entities": { - "entity": [ - "switch.master_bedroom_aircon_prompt_tone" - ], - "substring": [], - "regex": [] - }, - "outputInitially": false, - "stateType": "str", - "ifState": "on", - "ifStateType": "str", - "ifStateOperator": "is", - "outputOnlyOnStateChange": true, - "for": "0", - "forType": "num", - "forUnits": "minutes", - "ignorePrevStateNull": false, - "ignorePrevStateUnknown": false, - "ignorePrevStateUnavailable": false, - "ignoreCurrentStateUnknown": false, - "ignoreCurrentStateUnavailable": false, - "outputProperties": [ - { - "property": "payload", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - } - ], - "x": 760, - "y": 580, - "wires": [ - [ - "b4d619d31ec9121d" - ], - [] - ] - }, { "id": "b4d619d31ec9121d", "type": "api-call-service", @@ -25051,54 +25005,6 @@ [] ] }, - { - "id": "a11aeb4ccc595a4c", - "type": "server-state-changed", - "z": "72f99805df043603", - "g": "5802ea32c1de36e8", - "name": "Beep Turned On", - "server": "9e87348d.9c1c48", - "version": 6, - "outputs": 2, - "exposeAsEntityConfig": "", - "entities": { - "entity": [ - "switch.emma_bedroom_aircon_prompt_tone" - ], - "substring": [], - "regex": [] - }, - "outputInitially": false, - "stateType": "str", - "ifState": "on", - "ifStateType": "str", - "ifStateOperator": "is", - "outputOnlyOnStateChange": true, - "for": "0", - "forType": "num", - "forUnits": "minutes", - "ignorePrevStateNull": false, - "ignorePrevStateUnknown": false, - "ignorePrevStateUnavailable": false, - "ignoreCurrentStateUnknown": false, - "ignoreCurrentStateUnavailable": false, - "outputProperties": [ - { - "property": "payload", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - } - ], - "x": 780, - "y": 1780, - "wires": [ - [ - "eee837a3c93b3abd" - ], - [] - ] - }, { "id": "eee837a3c93b3abd", "type": "api-call-service", @@ -25131,6 +25037,130 @@ [] ] }, + { + "id": "d1dd42ebc53343df", + "type": "poll-state", + "z": "72f99805df043603", + "g": "e065b1ed4938b477", + "name": "Beep Turned On", + "server": "9e87348d.9c1c48", + "version": 3, + "exposeAsEntityConfig": "", + "updateInterval": "60", + "updateIntervalType": "num", + "updateIntervalUnits": "seconds", + "outputInitially": true, + "outputOnChanged": true, + "entityId": "switch.master_bedroom_aircon_prompt_tone", + "stateType": "str", + "ifState": "on", + "ifStateType": "str", + "ifStateOperator": "is", + "outputs": 2, + "outputProperties": [ + { + "property": "payload", + "propertyType": "msg", + "value": "", + "valueType": "entityState" + }, + { + "property": "debug", + "propertyType": "msg", + "value": "MBR Beep Fixed", + "valueType": "str" + } + ], + "x": 760, + "y": 580, + "wires": [ + [ + "b4d619d31ec9121d", + "1fc55a133a7d82c4" + ], + [] + ] + }, + { + "id": "2a02683008423af4", + "type": "poll-state", + "z": "72f99805df043603", + "g": "5802ea32c1de36e8", + "name": "Beep Turned On", + "server": "9e87348d.9c1c48", + "version": 3, + "exposeAsEntityConfig": "", + "updateInterval": "60", + "updateIntervalType": "num", + "updateIntervalUnits": "seconds", + "outputInitially": true, + "outputOnChanged": true, + "entityId": "switch.emma_bedroom_aircon_prompt_tone", + "stateType": "str", + "ifState": "on", + "ifStateType": "str", + "ifStateOperator": "is", + "outputs": 2, + "outputProperties": [ + { + "property": "payload", + "propertyType": "msg", + "value": "", + "valueType": "entityState" + }, + { + "property": "debug", + "propertyType": "msg", + "value": "EBR Beep Fixed", + "valueType": "str" + } + ], + "x": 780, + "y": 1780, + "wires": [ + [ + "eee837a3c93b3abd", + "057eda6b0cd976d9" + ], + [] + ] + }, + { + "id": "1fc55a133a7d82c4", + "type": "debug", + "z": "72f99805df043603", + "g": "e065b1ed4938b477", + "name": "MBR Beep", + "active": true, + "tosidebar": true, + "console": true, + "tostatus": false, + "complete": "debug", + "targetType": "msg", + "statusVal": "", + "statusType": "auto", + "x": 960, + "y": 640, + "wires": [] + }, + { + "id": "057eda6b0cd976d9", + "type": "debug", + "z": "72f99805df043603", + "g": "5802ea32c1de36e8", + "name": "EBR Beep", + "active": true, + "tosidebar": true, + "console": true, + "tostatus": false, + "complete": "debug", + "targetType": "msg", + "statusVal": "", + "statusType": "auto", + "x": 970, + "y": 1840, + "wires": [] + }, { "id": "48b8af9419ed18d6", "type": "subflow:384eaf2f63dcb5db",