Hi, iìm unable to automate a simple two condition statmen like:
If Temp is >= 20 and climate.riscaldamento is “heat_cool” send me a notify on ios from HA app.
I’m trying to do it with a debug now, but i don’t.
[{"id":"4cd6de59d0b4dd3d","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"7a975f3fedaff555","type":"poll-state","z":"4cd6de59d0b4dd3d","name":"temp","server":"5342fb6.0acd404","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"updateinterval":"1","updateIntervalType":"num","updateIntervalUnits":"seconds","outputinitially":false,"outputonchanged":false,"entity_id":"sensor.max_sensor","state_type":"num","halt_if":"20","halt_if_type":"num","halt_if_compare":"gte","outputs":2,"x":170,"y":160,"wires":[["ff03c90b1d9ba978"],[]]},{"id":"28a2e3c2e184a404","type":"debug","z":"4cd6de59d0b4dd3d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":730,"y":180,"wires":[]},{"id":"a9ea2ff102d84d39","type":"rbe","z":"4cd6de59d0b4dd3d","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":560,"y":180,"wires":[["28a2e3c2e184a404"]]},{"id":"ff03c90b1d9ba978","type":"function","z":"4cd6de59d0b4dd3d","name":"","func":"if ((msg.payload == \"heat_cool\") && (msg.payload == \"20.5\"))\n{msg.payload == \"Funziona\"}\nelse msg.payload == \"Non funziona\"","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":400,"y":180,"wires":[["a9ea2ff102d84d39"]]},{"id":"d56ff1b250dc63f9","type":"poll-state","z":"4cd6de59d0b4dd3d","name":"Riscaldamento","server":"5342fb6.0acd404","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"updateinterval":"1","updateIntervalType":"num","updateIntervalUnits":"seconds","outputinitially":false,"outputonchanged":false,"entity_id":"climate.riscaldamento","state_type":"str","halt_if":"heat_cool","halt_if_type":"str","halt_if_compare":"is","outputs":2,"x":140,"y":220,"wires":[["ff03c90b1d9ba978"],[]]},{"id":"5342fb6.0acd404","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]
How i can solve this? Thank you
edit: how i can format code? sorry