Hello @Daro1003,
You wrote:
Exactly as you wrote, disabling the "domoticz in" node itself in the flow with temperature restores the system to operation.
Very strange, but to test, I have modified the "Function" node, so that the Temperature will not be sent to the MQTT Output.
Can you put this node in parallel with the existing "Function" node and disable the existing "Function" node (down left button).
Enable the MQTT node again and test.
Code: Select all
[
{
"id": "58eeb2cbc12d887e",
"type": "function",
"z": "cfcf4d6d274167af",
"name": "Control Domoticz Switch",
"func": "let sidx = (flow.get(msg.topic.split(\"/\")[0])).sidx;\nlet tidx = (flow.get(msg.topic.split(\"/\")[0])).tidx;\n\n//Open (for Reversed Position)\nif (msg.payload.current_pos === 100) {\n msg.payload = { \"command\": \"udevice\", \"idx\": sidx, \"nvalue\": 1, \"svalue\": \"100\" }\n}\n\n//Closed (for Reversed Position)\nif (msg.payload.current_pos === 0) {\n msg.payload = { \"command\": \"udevice\", \"idx\": sidx, \"nvalue\": 0, \"svalue\": \"0\" }\n}\n\n//Percentage (for Reversed Position)\nif ((msg.payload.current_pos > 0) && (msg.payload.current_pos < 100)) {\n msg.payload = { \"command\": \"udevice\", \"idx\": sidx, \"nvalue\": 2, \"svalue\": msg.payload.current_pos.toString() }\n}\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 530,
"y": 600,
"wires": [
[
"e58167589c1a3fcf"
]
]
}
]
I do not expect, that it is the solution, but let us test it anyway.
Let me know.
Regards