Lights - Dinner and Ambient Mode Toggle

Have been working on this however cant get it fully working, could anyone offer any support.

What I am trying to achieve is:
Trigger - on button click (button only has a click state not an on/off, been testing with an input boolean for ease)
Action -
if brightness of hue go = 30%
then

  • store colour and brightness info of Hue lights in a scene
  • turn on scene 100%

or
if brightness of hue go = 100%
then

  • restore stored scene with original colours and brigntness
alias: 2 - Lighting - Ambient 100% (TESTING)
description: ""
trigger:
  - platform: state
    entity_id:
      - input_boolean.living_room_100
condition: []
action:
  - if:
      - condition: state
        entity_id: input_boolean.living_room_100
        state: "on"
    then:
      - service: scene.create
        data:
          scene_id: Ambient Lights - 30% Store
          snapshot_entities: >-
            light.hue_go_2 light.hue_play_centre_2 light.hue_play_right_2
            light.hue_play_left_2
          entities: >-
            light.hue_go_2 light.hue_play_centre_2 light.hue_play_left_2
            light.hue_play_right_2
      - service: scene.turn_on
        target:
          entity_id: scene.ambient_lights_100
        metadata: {}
    else:
      - service: scene.turn_on
        data:
          transition: 5
        target:
          entity_id: scene.ambient_lights_store_variables
mode: single