Issue with easy fan control

This will get you closer...

[{"id":"eb7c7c249d2898a9","type":"inject","z":"53cced74b780fcb4","name":"payload.state true","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"state\":true}","payloadType":"json","x":210,"y":440,"wires":[["543b215811e151fa"]]},{"id":"543b215811e151fa","type":"switch","z":"53cced74b780fcb4","name":"on","property":"payload.state","propertyType":"msg","rules":[{"t":"eq","v":"true","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":1,"x":410,"y":440,"wires":[["e7be4cf3f7bd52f8"]]},{"id":"e7be4cf3f7bd52f8","type":"trigger","z":"53cced74b780fcb4","name":"","op1":"","op2":"on","op1type":"nul","op2type":"str","duration":"90","extend":false,"overrideDelay":false,"units":"s","reset":"off","bytopic":"all","topic":"topic","outputs":1,"x":590,"y":440,"wires":[["bd2fd95a53a25016","ab9874d19f6059b0"]]},{"id":"bd2fd95a53a25016","type":"trigger","z":"53cced74b780fcb4","name":"","op1":"","op2":"off","op1type":"nul","op2type":"str","duration":"5","extend":false,"overrideDelay":false,"units":"min","reset":"on","bytopic":"all","topic":"topic","outputs":1,"x":790,"y":480,"wires":[["65c1bc330a7e6b11"]]},{"id":"ab9874d19f6059b0","type":"change","z":"53cced74b780fcb4","name":"start fan WC","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t   \"src\": \"shellyplus2pm-a8032ab7151c\",\t   \"method\": \"Switch.Set\",\t   \"params\": {  \"id\": 1,  \"on\": true  }  \t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":440,"wires":[["323d94c2345b2127"]]},{"id":"65c1bc330a7e6b11","type":"change","z":"53cced74b780fcb4","name":"stop fan WC","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t   \"src\": \"shellyplus2pm-a8032ab7151c\",\t   \"method\": \"Switch.Set\",\t   \"params\": {  \"id\": 1,  \"on\": false  }  \t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":970,"y":480,"wires":[["7ce957c45751813a"]]},{"id":"323d94c2345b2127","type":"debug","z":"53cced74b780fcb4","name":"debug 12","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":960,"y":440,"wires":[]},{"id":"7ce957c45751813a","type":"debug","z":"53cced74b780fcb4","name":"debug 13","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1140,"y":480,"wires":[]},{"id":"567df74e222420d4","type":"switch","z":"53cced74b780fcb4","name":"off","property":"payload.state","propertyType":"msg","rules":[{"t":"eq","v":"false","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":1,"x":410,"y":540,"wires":[["7dd2479e9c6c06e5"]]},{"id":"c38d88575e4fb04c","type":"inject","z":"53cced74b780fcb4","name":"payload.state false","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"state\":false}","payloadType":"json","x":210,"y":540,"wires":[["567df74e222420d4"]]},{"id":"7dd2479e9c6c06e5","type":"change","z":"53cced74b780fcb4","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":570,"y":540,"wires":[["e7be4cf3f7bd52f8"]]}]

PS

Please dont attach small flows - add them as text as i have done here :point_up_2:

``` 
   code goes here 
```

You can edit and correct your post by clicking the pencil :pencil2: icon.

See this post for more details - How to share code or flow json