Hi Christian,
[{"id":"aabfde28.774a2","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"406d0918.0ca6f8","type":"switch","z":"aabfde28.774a2","name":"On or Off","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"10","vt":"num"},{"t":"lte","v":"17","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":350,"y":220,"wires":[["cdefc1d.f4b3c4"],["ff8350ab.1a7b8"]]},{"id":"cdefc1d.f4b3c4","type":"switch","z":"aabfde28.774a2","name":"aan","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"turn_on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":470,"y":200,"wires":[["5ba82fc7.aa525","9dc04352.68177"]]},{"id":"ff8350ab.1a7b8","type":"switch","z":"aabfde28.774a2","name":"uit","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"turn_off","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":470,"y":240,"wires":[["5ba82fc7.aa525","9dc04352.68177"]]},{"id":"15e6840d.b878ec","type":"poll-state","z":"aabfde28.774a2","name":"Temp Sensor","server":"1918b849.e24058","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"updateinterval":"5","updateIntervalUnits":"seconds","outputinitially":false,"outputonchanged":false,"entity_id":"sensor.sensor2_ds18b20_temperature","state_type":"num","halt_if":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"x":150,"y":380,"wires":[["406d0918.0ca6f8","5ba82fc7.aa525"]]},{"id":"5ba82fc7.aa525","type":"debug","z":"aabfde28.774a2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":770,"y":200,"wires":[]},{"id":"9dc04352.68177","type":"Tasmota Switch","z":"aabfde28.774a2","broker":"20252510.c9393a","device":"Sonoff_Over","name":"Kachel","fullTopic":"","cmndPrefix":"Sonoff_Over/stat/POWER = ON","statPrefix":"","telePrefix":"","outputs":"1","onValue":"ON","offValue":"OFF","toggleValue":"","x":590,"y":140,"wires":[[]]},{"id":"1918b849.e24058","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true},{"id":"20252510.c9393a","type":"mqtt-broker","z":"","name":"SensorWoonkamer","broker":"192.168.2.28","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
you mean this code? i also posted a screenshot of my flow.