Hello, I can't use your flows.
can you see what is missing?
thank you
[{"id":"3cd77b7019ec37e2","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"ab69e19efe105460","type":"inject","z":"3cd77b7019ec37e2","name":"switch on","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"str","x":200,"y":240,"wires":[["ed00809422c8d808"]]},{"id":"2382e74d3ed85bbd","type":"debug","z":"3cd77b7019ec37e2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":630,"y":360,"wires":[]},{"id":"ed00809422c8d808","type":"change","z":"3cd77b7019ec37e2","name":"store switch state","rules":[{"t":"set","p":"switch","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":440,"y":260,"wires":[["61f73f98abcc46d6"]]},{"id":"93e700229c4f2fda","type":"switch","z":"3cd77b7019ec37e2","name":"route msg","property":"switch","propertyType":"flow","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":430,"y":360,"wires":[["2382e74d3ed85bbd"],[]]},{"id":"7b9bd121a9c796b1","type":"inject","z":"3cd77b7019ec37e2","name":"switch off","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"off","payloadType":"str","x":200,"y":280,"wires":[["ed00809422c8d808"]]},{"id":"388af3c97654a622","type":"inject","z":"3cd77b7019ec37e2","name":"pir on","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"str","x":190,"y":340,"wires":[["93e700229c4f2fda"]]},{"id":"f7876c50e6e167bf","type":"inject","z":"3cd77b7019ec37e2","name":"pir off","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"off","payloadType":"str","x":190,"y":380,"wires":[["93e700229c4f2fda"]]},{"id":"b06eb90887fbf786","type":"server-state-changed","z":"3cd77b7019ec37e2","name":"inter_1","server":"703e56e6e5cfdf2a","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.inter_1_click","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"}],"x":170,"y":540,"wires":[["9595bb9fd71105f0"]]},{"id":"9595bb9fd71105f0","type":"change","z":"3cd77b7019ec37e2","name":"store switch state","rules":[{"t":"set","p":"inter_1","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":540,"wires":[["cb20952242287a4d"]]},{"id":"aba0ff1c4b522d80","type":"server-state-changed","z":"3cd77b7019ec37e2","name":"PIR_1","server":"703e56e6e5cfdf2a","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.pir_1_occupancy","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"true","halt_if_type":"jsonata","halt_if_compare":"jsonata","outputs":2,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":170,"y":680,"wires":[["02a1c2aba5ff636f"],["02a1c2aba5ff636f"]]},{"id":"02a1c2aba5ff636f","type":"switch","z":"3cd77b7019ec37e2","name":"route msg","property":"switch","propertyType":"flow","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":400,"y":680,"wires":[["138d2c70766c621d"],[]]},{"id":"138d2c70766c621d","type":"debug","z":"3cd77b7019ec37e2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":630,"y":680,"wires":[]},{"id":"cb20952242287a4d","type":"debug","z":"3cd77b7019ec37e2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":540,"wires":[]},{"id":"61f73f98abcc46d6","type":"debug","z":"3cd77b7019ec37e2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":650,"y":260,"wires":[]},{"id":"703e56e6e5cfdf2a","type":"server","name":"Home Assistant","version":1,"legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
there is a problem with the switch because it sends a
switch:""