Any idea why the the turn_on and turn_off actions are not called in the above configuration? The scripts run fine on their own, but I they are not getting triggered.
Curiously if I remove the value_template line (and turn the switch manually) they do get called.
Thanks Troon, that’s a shame I was looking to bind the sensor and the switch together so that they live permanently together as one object. I already had it set up as 2 automations (1 for on, and another for off) but I was looking to improve. I thought a switch/sensor bind was possible - I think it would be more elegant than 2 separate automations (I have an increasing number of automations building up and in some cases they are fighting against each other). Thanks again.