Panasonic Comfort Cloud with rate limiting

Panasonic Comfort Cloud can lock you out if accessed too often. This flow limits the rate of traffic to below the threshold to trigger the lockout.

It uses @bisand node, so look here for details of setting this up. https://flows.nodered.org/node/node-red-contrib-panasonic-comfort-cloud

If you are new, you'll need to set up an account and create the login within the node. Clicking the Query Groups inject on the flow will show you a list of devices linked to your account, including their GUID. Use these in your flows and link to this flow.

You should not have multiple instances of this flow, but route all PCC comms through a single flow so that the rate limiting will be effective.

[{"id":"13f7d71bfcee0fe2","type":"debug","z":"52c38f1824c8df8c","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1550,"y":1700,"wires":[]},{"id":"0024d1775cdecabf","type":"pcc-command","z":"52c38f1824c8df8c","name":"AIrcon Control","comfortCloudConfig":"","deviceId":"","x":1360,"y":1700,"wires":[["13f7d71bfcee0fe2"]]},{"id":"8d0df04c2160143d","type":"delay","z":"52c38f1824c8df8c","name":"","pauseType":"rate","timeout":"15","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":870,"y":1700,"wires":[["633705580fcbb390"]]},{"id":"30948d4f6e24625b","type":"link in","z":"52c38f1824c8df8c","name":"Panasonic device control","links":[],"x":565,"y":1700,"wires":[["950c6eae5d072de2","8d0df04c2160143d"]]},{"id":"9ffdf812bcc52357","type":"comment","z":"52c38f1824c8df8c","name":"Panasonic Comfort Control","info":"Put all the calls in 1 place to prevent rate overload","x":590,"y":1420,"wires":[]},{"id":"950c6eae5d072de2","type":"debug","z":"52c38f1824c8df8c","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":710,"y":1760,"wires":[]},{"id":"633705580fcbb390","type":"switch","z":"52c38f1824c8df8c","name":"Message type from topic","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"groups","vt":"str"},{"t":"eq","v":"control","vt":"str"},{"t":"eq","v":"status","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":1110,"y":1700,"wires":[["1bcbc8f321ef17dc"],["0024d1775cdecabf"],["eff8eb3e12975417"]]},{"id":"eff8eb3e12975417","type":"pcc-device","z":"52c38f1824c8df8c","name":"Aircon Status","comfortCloudConfig":"","deviceId":"","x":1350,"y":1780,"wires":[["ce52bcce227794ef","72eedce53a5b8223"]]},{"id":"ce52bcce227794ef","type":"switch","z":"52c38f1824c8df8c","name":"Status to devices","property":"payload.deviceGuid","propertyType":"msg","rules":[{"t":"eq","v":"Put 1st Device ID here...","vt":"str"},{"t":"eq","v":"2nd here etc.","vt":"str"},{"t":"eq","v":"","vt":"str"},{"t":"eq","v":"","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":1590,"y":1780,"wires":[["dba207fc23162af3"],["1f226606f089f8e9"],["3a921bf89cf3690d"],["7ef578004fa6e2c6"]],"outputLabels":["1st device name here","2nd here","3rd here","4th here"]},{"id":"dba207fc23162af3","type":"link out","z":"52c38f1824c8df8c","name":"Warehouse Status","mode":"link","links":[],"x":1755,"y":1720,"wires":[]},{"id":"1f226606f089f8e9","type":"link out","z":"52c38f1824c8df8c","name":"Semple Status","mode":"link","links":[],"x":1755,"y":1760,"wires":[]},{"id":"b06fdedd81e144ef","type":"debug","z":"52c38f1824c8df8c","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1550,"y":1620,"wires":[]},{"id":"d82f25c5129fad70","type":"inject","z":"52c38f1824c8df8c","name":"Query groups","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"groups","payload":"","payloadType":"date","x":650,"y":1540,"wires":[["8d0df04c2160143d"]]},{"id":"d9c196daaab5c9ac","type":"comment","z":"52c38f1824c8df8c","name":"Get list of devices on our account","info":"","x":610,"y":1500,"wires":[]},{"id":"1bcbc8f321ef17dc","type":"pcc-groups","z":"52c38f1824c8df8c","name":"AIrcon Groups","comfortCloudConfig":"","x":1360,"y":1620,"wires":[["b06fdedd81e144ef"]]},{"id":"72eedce53a5b8223","type":"debug","z":"52c38f1824c8df8c","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1550,"y":1860,"wires":[]},{"id":"3a921bf89cf3690d","type":"link out","z":"52c38f1824c8df8c","name":"link out 9","mode":"link","links":[],"x":1755,"y":1800,"wires":[]},{"id":"7ef578004fa6e2c6","type":"link out","z":"52c38f1824c8df8c","name":"link out 10","mode":"link","links":[],"x":1755,"y":1840,"wires":[]}]

Flow Info

Created 1 year, 4 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • comment (x2)
  • debug (x4)
  • delay (x1)
  • inject (x1)
  • link in (x1)
  • link out (x4)
  • switch (x2)
Other

Tags

  • panasonic
  • air-conditioning
  • comfort-cloud
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option