Problem with update

After an update my automations doesn’t work anymore… :frowning:
In the log i read that

homeassistant.bootstrap: Error during setup of component automation
 Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 157, in _setup_component
    if not component.setup(hass, config):
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/automation/__init__.py", line 105, in setup
    success = (_setup_automation(hass, config_block, name, config) or
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/automation/__init__.py", line 116, in _setup_automation
    action = _process_if(hass, config, config_block, action)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/automation/__init__.py", line 173, in _process_if
    checks.append(condition.from_config(if_config))
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/condition.py", line 34, in from_config
    return factory(config, config_validation)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/condition.py", line 150, in state_from_config
    config = cv.STATE_CONDITION_SCHEMA(config)
  File "/usr/local/lib/python3.4/dist-packages/voluptuous.py", line 1394, in __call__
    raise e if self.msg is None else AllInvalid(self.msg)
  File "/usr/local/lib/python3.4/dist-packages/voluptuous.py", line 1392, in __call__
    v = schema(v)
  File "/usr/local/lib/python3.4/dist-packages/voluptuous.py", line 355, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.4/dist-packages/voluptuous.py", line 794, in validate_callable
    return schema(data)
  File "/usr/local/lib/python3.4/dist-packages/voluptuous.py", line 355, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.4/dist-packages/voluptuous.py", line 655, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.4/dist-packages/voluptuous.py", line 489, in validate_mapping
    raise MultipleInvalid(errors)
voluptuous.MultipleInvalid: expected str for dictionary value @ data['state']

Everything was fine before …
All my automations use condition …

If you have some ideas…

You have an error in your configuration.yaml file (expected str for dictionary value @ data[‘state’]).

Hi fabaff !

I replace my new files by older which are operationnal.
My problem appears when i adapt the condition with ‘condition’ and not ‘platform’…

It seems that there is a condition which don’t accept this but i don’t find it :frowning:

I found my mistake

original

  - alias: "aurora 06h00"
    trigger:
      - platform: time
        after: "05:50:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:00"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 600

So if i convert pletform in condition in the condition an error appears.

The root cause is
- platform: state
entity_id: input_boolean.lightreveil
state: “on”

the state “on” is false ‘on’ is true…

Sorry for that ^^