Generic thermostat - control using (on/off) using script

Hello everyone!

I have an implementation problem, maybe you have a solution for it.

I have a mobile air conditioning system and I control it with an IR blaster.

  • a script to switch on
  • a script to switch off

Now I would like to control it with a (generic) thermostat, but there is only one switch (on/off)

What is the solution?

create a helper that executes one script when off and the other script when on?

This works but ned, at least I can’t get it to run.

Are there other better approaches and how should I implement them?

Greetings
gerald

Yes you can create a template switch which has your on and off scripts as its on off commands. Then use this with your generic thermostat. Assume you have a temp entity to use also? Post your yaml if you are struggling and others can help more.