Automation or Scene

Trying to sort out the best method to set up what I would guess is scenes but I am failing on getting things to work proper. I am trying to set up a movie mode scene. When on, turns off lights, turns on bias lights, TV, Shield…etc. And toggle to turn all that back off when done. Still working on my tv/shield integration but the lights are on a double switch. Seems simple enough. Seems with HA it never is. I created a scene that will turn of the light and turn on the switch with my bias lights. That works fine. so I tried to set up a button card to turn on and off. Seems a better option is the glance card. so I made that using this code. But when I click I get the pop up with options. Not at all what it is supposed to do. So how am I supposed to set this up so I can click the button to turn on/off a scene? Do I need to make two separate automations? One with the on positions and one with the off. Then set up a button to toggle between those?

      - type: horizontal-stack
        title: Scenes
        cards:
          - type: glance
            entities: 
              - scene.movies
            tap_action: 
              action: call-service
              service: scene.turn_on

A scene sets the state of one or more specified entities. You activate a scene using the scene.turn_on service. There is no service to deactivate a scene.

To restore entity states back to the way they were you need a record of their states. You can create this record using scene.create (i.e. you’re making a ‘snapshot’ of the current states of the specified entities). Later, you can turn on this “snapshot” scene to restore entities to their original states.

so in my case perhaps it would be simpler to either have scene for each state or maybe have an automation with an if statement?? It would just toggle to entities. Currently it would be just toggling a zooz switch to flip the state. Although I just realized that I have another automation that would turn the light on a sunset which would override? Would I need to create a sensor to set movie time or not. then drop an if not movietime then turn light on in that automation?

In one paragraph you’ve asked three questions and I can’t determine which ones are rhetorical and which are directed at me.

Can you summarize in one sentence what you want to do?

I guess my reply never got posted. The question, is it better to have two scenes, one for movie mode on and one for movie mode off. Or set up an automation that would have an if statement in it. If the light is on, turn it off…if off turn it on? Currently enabling the scene works to set the desired state while watching a movie. But once the movie is over, it requires pressing a couple buttons to reset the states to non-movie mode.

Suggestion:

Create an automation with a State Trigger that is triggered by an input_boolean (to: on). When the input_boolean is turned on it creates a scene capturing the current state of whatever entities you wish to restore later (name it the pre_movie scene). Then it activates an existing movie scene you’ve created.

Create another automation with a State Trigger that is triggered by the same input_boolean (to: off). When the input_boolean is turned off it activates the pre_movie scene, created previously, thereby restoring the selected entities to their previous state.

In the UI, you can accept the input_boolean’s default appearance or use glance to call the input_boolean.toggle service.


EDIT

Let me know if you need assistance to implement my suggestion.

ok thanks. I will try that out.