Can anyone figure out why this input boolean doesn’t work? It passes the check then throws and error in the logs saying that it received a ‘None’ value.
If I remove the input boolean condition it works fine.
- id: 'motion_dark_turn_on_Ensuite_bathroom_light'
alias: If there is motion and its dark turn on the Ensuite bathroom light
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_158d0001e63621
from: "off"
to: "on"
condition:
condition: and
conditions:
- condition: numeric_state
entity_id: sensor.illumination_158d0001e63621
below: 10
- condition: state
entity_id: input_select.occupancy
state: "True"
- condtion: state
entity_id: input_boolean.night_mode
state: 'off'
action:
- service: switch.turn_on
entity_id: switch.ensuite_bathroom_light
Log entry:
Logger: homeassistant.config
Source: config.py:443
First occurred: 7:53:19 AM (6 occurrences)
Last logged: 8:08:15 AM
Invalid config for [automation]: Unexpected value for condition: 'None'. Expected numeric_state, state, sun, template, time, zone, and, or, not, device @ data['condition'][0]['conditions'][2]. Got None. (See /config/configuration.yaml, line 22).