I have a SonoFF 433Mhz bridge which I can use to controlle my sunscreen. I’ve set two options on it, one to lower the sunscreen and one to pull it up obviously.
Now I have two entities in HA called.
button.sunscreen_up
button.sunscreen_down
They work fine seperately but I would like to intergrate them into 1 switch
switch.sunscreen_kitchen
So when I click it and it is up it will go down and viceversa. So it will do the opposite action of the last performed action if this makes sense.
How in the world do I do this, I have no programming experience so I’m a bit clueless how to start something like this.