It doesn't matter. Sometimes people have to be busy with other things. It is a hobby.
I'm curious, whether the scripts functions from Domoticz.
Both for the standard switch, as for the selector switch.
Recently I was involved in some issues, that script commands were not executed, if controlled from Domoticz.
From the command line they were okay.
If it not functions, I suggest, we don't use any time on it and we use the "Execute" node, as we did before.
Code: Select all
[{"id":"a55d1886.0b0e68","type":"debug","z":"5bae5c9d.cc469c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1110,"y":640,"wires":[]},{"id":"cd5824d5.88c28","type":"mqtt in","z":"5bae5c9d.cc469c","name":"Domoticz Out","topic":"domoticz/out","qos":"2","datatype":"json","broker":"c2d9657a.d81bf8","x":150,"y":960,"wires":[["c939d06.df4863"]]},{"id":"b0b60272.1450d8","type":"exec","z":"5bae5c9d.cc469c","command":"python3 /home/gianni/panasonic/pcomfortcloud.py login pasword set 1 -t ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"Execute Thermostat","x":903,"y":684,"wires":[[],[],[]]},{"id":"c939d06.df4863","type":"filter","z":"5bae5c9d.cc469c","name":"Filter Domoticz Commands","property":"payload.idx","propertyType":"msg","asArray":false,"itemProperty":"","itemPropertyType":"item","rules":[{"t":"eq","v":"10","vt":"str","output":1},{"t":"eq","v":"11","vt":"str","output":2},{"t":"eq","v":"12","vt":"str","output":3},{"t":"eq","v":"13","vt":"str","output":4},{"t":"eq","v":"14","vt":"str","output":5},{"t":"eq","v":"15","vt":"str","output":6},{"t":"eq","v":"16","vt":"str","output":7}],"checkall":"true","outputs":7,"x":400,"y":960,"wires":[["a8b02665.ea42d"],["1bc8eeb.a854491"],["a19d8705.511878"],["35f00429.ec7a34"],["d4e9eb97.5d9a2"],["7c1f7a47.9c4924"],["2c3e01f6.67224e"]]},{"id":"a8b02665.ea42d","type":"change","z":"5bae5c9d.cc469c","name":"Set Payload","rules":[{"t":"move","p":"payload.svalue1","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":673,"y":684,"wires":[["a55d1886.0b0e68","b0b60272.1450d8"]]},{"id":"99bfab0f.dd72d8","type":"exec","z":"5bae5c9d.cc469c","command":"python3 /home/gianni/panasonic/pcomfortcloud.py login pasword set 1 -p ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"Execute Power","x":880,"y":760,"wires":[[],[],[]]},{"id":"b7c67426.a72d1","type":"exec","z":"5bae5c9d.cc469c","command":"python3 /home/gianni/panasonic/pcomfortcloud.py login pasword set 1 -s ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"Execute Fanspeed","x":890,"y":840,"wires":[[],[],[]]},{"id":"108fd65.6881faa","type":"exec","z":"5bae5c9d.cc469c","command":"python3 /home/gianni/panasonic/pcomfortcloud.py login pasword set 1 -m ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"Execute Mode","x":880,"y":920,"wires":[[],[],[]]},{"id":"5a62607e.9bdeb8","type":"exec","z":"5bae5c9d.cc469c","command":"python3 /home/gianni/panasonic/pcomfortcloud.py login pasword set 1 -e ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"Execute Eco","x":870,"y":1000,"wires":[[],[],[]]},{"id":"80934a86.4e4e3","type":"exec","z":"5bae5c9d.cc469c","command":"python3 /home/gianni/panasonic/pcomfortcloud.py login pasword set 1 -y ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"Execute Air Swing Vertical","x":920,"y":1080,"wires":[[],[],[]]},{"id":"eadddde7.a3358","type":"exec","z":"5bae5c9d.cc469c","command":"python3 /home/gianni/panasonic/pcomfortcloud.py login pasword set 1 -x ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"Execute Air Swing Horizontal","x":920,"y":1160,"wires":[[],[],[]]},{"id":"c248124.896c17","type":"debug","z":"5bae5c9d.cc469c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1110,"y":720,"wires":[]},{"id":"1c84859e.bf1782","type":"debug","z":"5bae5c9d.cc469c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1110,"y":800,"wires":[]},{"id":"551db683.12a8f8","type":"debug","z":"5bae5c9d.cc469c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1110,"y":880,"wires":[]},{"id":"b8a302b4.1d1188","type":"debug","z":"5bae5c9d.cc469c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1110,"y":960,"wires":[]},{"id":"21bb260f.06e3f2","type":"debug","z":"5bae5c9d.cc469c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1110,"y":1040,"wires":[]},{"id":"351156f9.85be6a","type":"debug","z":"5bae5c9d.cc469c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1110,"y":1120,"wires":[]},{"id":"1bc8eeb.a854491","type":"function","z":"5bae5c9d.cc469c","name":"Set Payload","func":"if (msg.payload.nvalue == 1) {\n msg.payload = \"On\";\n }else{\n msg.payload = \"Off\";\n }\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":760,"wires":[["99bfab0f.dd72d8","c248124.896c17"]]},{"id":"a19d8705.511878","type":"function","z":"5bae5c9d.cc469c","name":"Set Payload","func":"switch (msg.payload.svalue1) {\n\n case \"10\":\n msg.payload = \"Auto\"\n break;\n \n case \"20\":\n msg.payload = \"Low\"\n break;\n \n case \"30\":\n msg.payload = \"LowMid\"\n break;\n \n case \"40\":\n msg.payload = \"Mid\"\n break;\n \n case \"50\":\n msg.payload = \"HighMid\"\n break;\n \n case \"60\":\n msg.payload = \"High\"\n break;\n \n}\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":840,"wires":[["b7c67426.a72d1","1c84859e.bf1782"]]},{"id":"35f00429.ec7a34","type":"function","z":"5bae5c9d.cc469c","name":"Set Payload","func":"switch (msg.payload.svalue1) {\n\n case \"10\":\n msg.payload = \"Auto\"\n break;\n \n case \"20\":\n msg.payload = \"Cool\"\n break;\n \n case \"30\":\n msg.payload = \"Dry\"\n break;\n \n case \"40\":\n msg.payload = \"Heat\"\n break;\n \n case \"50\":\n msg.payload = \"Fan\"\n break;\n\n}\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":920,"wires":[["108fd65.6881faa","551db683.12a8f8"]]},{"id":"d4e9eb97.5d9a2","type":"function","z":"5bae5c9d.cc469c","name":"Set Payload","func":"switch (msg.payload.svalue1) {\n\n case \"10\":\n msg.payload = \"Auto\"\n break;\n \n case \"20\":\n msg.payload = \"Quiet\"\n break;\n \n case \"30\":\n msg.payload = \"Powerful\"\n break;\n \n}\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":1000,"wires":[["5a62607e.9bdeb8","b8a302b4.1d1188"]]},{"id":"7c1f7a47.9c4924","type":"function","z":"5bae5c9d.cc469c","name":"Set Payload","func":"switch (msg.payload.svalue1) {\n\n case \"10\":\n msg.payload = \"Auto\"\n break;\n \n case \"20\":\n msg.payload = \"Down\"\n break;\n \n case \"30\":\n msg.payload = \"DownMid\"\n break;\n \n case \"40\":\n msg.payload = \"Mid\"\n break;\n \n case \"50\":\n msg.payload = \"UpMid\"\n break;\n \n case \"60\":\n msg.payload = \"Up\"\n break;\n \n}\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":1080,"wires":[["80934a86.4e4e3","21bb260f.06e3f2"]]},{"id":"2c3e01f6.67224e","type":"function","z":"5bae5c9d.cc469c","name":"Set Payload","func":"switch (msg.payload.svalue1) {\n\n case \"10\":\n msg.payload = \"Auto\"\n break;\n \n case \"20\":\n msg.payload = \"Left\"\n break;\n \n case \"30\":\n msg.payload = \"LeftMid\"\n break;\n \n case \"40\":\n msg.payload = \"Mid\"\n break;\n \n case \"50\":\n msg.payload = \"RightMid\"\n break;\n \n case \"60\":\n msg.payload = \"Right\"\n break;\n \n}\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":1160,"wires":[["eadddde7.a3358","351156f9.85be6a"]]},{"id":"c2d9657a.d81bf8","type":"mqtt-broker","z":"","name":"","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"verifyservercert":true,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]