Voluptuous error

Please see my automation below. It throws the following voluptuous error. But I can’t figure out what I am doing wrong. Any help appreciated.

Sander.

voluptuous.error.MultipleInvalid: not a valid value for dictionary value @ data['conditions'][0]['condition']
automation:
  - alias: switch off lights when lux > 1000
    trigger:
      platform: numeric_state
      entity_id: sensor.light_lux_sensor_2_0
      value_template: '{{ state.attributes.V_LEVEL }}'
      above: 800
    condition:
      condition: or
      conditions:
        - condition: state
          entity_id: group.living
          state: on
        - condition: state
          entity_id: group.dining
          state: on
        - condition: state
          entity_id: group.bar
          state: on
    action:
      - service: light.turn_off
        entity_id:
          - group.living
          - group.dining
          - group.bar
      - service: notify.notify
        data:
          message: lux levels above 1000. Switching lights off downstairs.

@sanders

Try putting quotes around on for your conditions.

state: 'on'

Seems like you would need to use a template trigger here too. '{{ state.attributes.V_LEVEL , > 800 }}'

Cold be wrong about the trigger. Try quotes around state objects first. Including above: '800'

state: 'on'

did the trick ! Thanks.
I did an identical automation earlier but without the condition which worked perfectly. So I guess I don’t need to do the other suggestions you made…

Guess not just threw it out there. I did not test.

Glad it worked!!