Not sure if you’re into NodeRed, but i found out that it makes it easier…
Now I use it to control light directly, but ofc this could also set helpers…
[{"id":"ec5f4e71.2f17d","type":"switch","z":"93fcc754.afaf08","name":"D7E798","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"D7E798","vt":"str"}],"checkall":"true","repair":true,"outputs":1,"x":320,"y":20,"wires":[["41005807.3f41e8"]]},{"id":"4cf74af1.fa9aa4","type":"switch","z":"93fcc754.afaf08","name":"D7E79C","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"D7E79C","vt":"str"}],"checkall":"true","repair":true,"outputs":1,"x":320,"y":60,"wires":[["b40be53.0efd018"]]},{"id":"9c9cec88.f1a41","type":"switch","z":"93fcc754.afaf08","name":"D7E794","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"D7E794","vt":"str"}],"checkall":"true","repair":true,"outputs":1,"x":320,"y":100,"wires":[["f739cefe.ebbcc"]]},{"id":"71d96860.9bd7e8","type":"switch","z":"93fcc754.afaf08","name":"D7E799","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"D7E799","vt":"str"}],"checkall":"true","repair":true,"outputs":1,"x":320,"y":140,"wires":[["60a2cf1.c80083"]]},{"id":"f0ddb83c.1c7f78","type":"switch","z":"93fcc754.afaf08","name":"D7E792","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"D7E792","vt":"str"}],"checkall":"true","repair":true,"outputs":1,"x":320,"y":180,"wires":[["24023bb0.683684"]]},{"id":"3006b088.8b625","type":"switch","z":"93fcc754.afaf08","name":"D7E795","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"D7E795","vt":"str"}],"checkall":"true","repair":true,"outputs":1,"x":320,"y":220,"wires":[["4855e1bc.81169"]]},{"id":"e98c1252.c569","type":"switch","z":"93fcc754.afaf08","name":"D7E791","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"D7E791","vt":"str"}],"checkall":"true","repair":true,"outputs":1,"x":320,"y":260,"wires":[["1600b5a9.f20cfa"]]},{"id":"dd3fa1ca87857ce4","type":"switch","z":"93fcc754.afaf08","name":"D7E793","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"D7E793","vt":"str"}],"checkall":"true","repair":true,"outputs":1,"x":320,"y":300,"wires":[[]]},{"id":"f6005625.9fca88","type":"mqtt in","z":"93fcc754.afaf08","name":"RF433 Tasmota","topic":"TasmotaBRG1/tele/RESULT","qos":"2","datatype":"auto","broker":"f90cfe3b.a8bd7","nl":false,"rap":false,"rh":"0","inputs":0,"x":100,"y":220,"wires":[["ec5f4e71.2f17d","9c9cec88.f1a41","71d96860.9bd7e8","f0ddb83c.1c7f78","3006b088.8b625","e98c1252.c569","4cf74af1.fa9aa4","670aeaaf.b7c124","dd3fa1ca87857ce4","c7a62c8593325414","500e743bc4280e92","3bb9f812bfd445fa","c5d33d7b55eb5bea","39390b903a4ace9e"]]},{"id":"f90cfe3b.a8bd7","type":"mqtt-broker","name":"","broker":"192.168.103.9","port":"1883","clientid":"node-red","autoConnect":true,"usetls":false,"compatmode":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"sessionExpiry":""}]