I have this flow but I am not super happy about it. I want to have the state node “automation on?” in the start of the sequence, but if I do it replaces my payload. I have tried to remove the check-boxes “override topic” and “override payload” but still the input is gone after traversing the node.
Just note, in the function node I put in “msg.payload = diff;” just to see what is going on. This should be commented if everything worked… Output form the function is a string with above or below.
This is the output of “automation on?” with the settings above. I am confused!
The checkboxes for override topic and payload was unticked on the “automation on?” node, top left blue one (HA state node). The target one is fine, it gives me the value I need, just a number - sadly as string so therefore the f node to convert to integer.
Yes I agree. That could be an option, just irritating that this does not work. See this screenshot of the “automation on?” state node. The debug shown is from the right side of the same node.
I had to do some restarting and crazyness to get the other home-assistant version currently installed to uninstall. Finally I made it, installed the new and configured it again. This new version also fixes the integer vs string problem so my logic just god better. Thanks for help!