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.