Toggle scene with button

Hi, I have an Ikea button that I want to press and toggle a scene on/off. I’m having trouble getting it to work. Not sure what to use for service - or even if I should be using a call service node if I just want to toggle. Do I need to create an ‘on’ scene and an ‘off’ scene?

When debugging a button press I’m getting both action:on and action:'' and I’m not sure how to deal with that/if it matters. Any help or pointing me to resources would be appreciated!

image
image

It’s a pity that scenes have no specific state so they can’t be toggled on or off. You can only turn the corresponding devices on or off or - as you already mentioned - create an off-scene.

There is no definition of what toggling a scene off means (returning to previous state? Turning everything off?..?)

If you’re looking to Return to previous state, there are some posts regarding ‘saving’ the state before toggling a scene, to return later. You can search in that path if it’s what you’re looking for.
Example (I haven’t tested it as I don’t have this need)