Automation issues after 50.1

I have a lot of the following errors for some of my automations and can’t figure out what is causing it. The errors are as descriptive as i would like since they don’t specify the actual automations that are at fault. I’m aware of the triggers with state and time. I looked through my frontend to see which automations didn’t load so I was able to narrow some down.
Can someone help shed some light?

error:

extra keys not allowed @ data['trigger'][0]['state']. Got None
not a valid value for dictionary value @ data['condition'][0]['condition']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/
2017-07-31 11:44:24 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: extra keys not allowed @ data['condition'][0]['to']. Got None
not a valid value for dictionary value @ data['condition'][0]['condition']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/
2017-07-31 11:44:24 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: extra keys not allowed @ data['condition'][0]['to']. Got None
extra keys not allowed @ data['trigger'][0]['state']. Got None
not a valid value for dictionary value @ data['condition'][0]['condition']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/
2017-07-31 11:44:24 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: extra keys not allowed @ data['condition'][0]['to']. Got None
extra keys not allowed @ data['trigger'][0]['state']. Got None
not a valid value for dictionary value @ data['condition'][0]['condition']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/
2017-07-31 11:44:24 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: extra keys not allowed @ data['condition'][0]['to']. Got None
extra keys not allowed @ data['trigger'][0]['state']. Got None
not a valid value for dictionary value @ data['condition'][0]['condition']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         2017-07-31 11:46:41 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: extra keys not allowed @ data['condition'][0]['to']. Got None
extra keys not allowed @ data['trigger'][0]['state']. Got None
not a valid value for dictionary value @ data['condition'][0]['condition']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/
2017-07-31 11:46:41 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: extra keys not allowed @ data['condition'][0]['to']. Got None
not a valid value for dictionary value @ data['condition'][0]['condition']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/
2017-07-31 11:46:41 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: extra keys not allowed @ data['condition'][0]['to']. Got None
extra keys not allowed @ data['trigger'][0]['state']. Got None
not a valid value for dictionary value @ data['condition'][0]['condition']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/
2017-07-31 11:46:41 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: extra keys not allowed @ data['condition'][0]['to']. Got None
extra keys not allowed @ data['trigger'][0]['state']. Got None
not a valid value for dictionary value @ data['condition'][0]['condition']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/
2017-07-31 11:46:41 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: extra keys not allowed @ data['condition'][0]['to']. Got None
extra keys not allowed @ data['trigger'][0]['state']. Got None
not a valid value for dictionary value @ data['condition'][0]['condition']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/
2017-07-31 11:46:43 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting

example automation which didn’t load, but I can’t figure out what the issue is. The trigger used to have state: ‘off’, but i changed it to to: ‘off’ according to the docs but no luck:

alias: Turn off lights when stac last to leave
trigger:
  - platform: state
    entity_id: input_boolean.stac_home
    to: 'off'
condition:
  - condition: state
    entity_id: input_boolean.vince_home
    state: 'off'
action:
  service: scene.turn_on
  entity_id: scene.lights_off

Can you try remove the ‘off’ and change it to off without the quotation?

My example automation for alarm:

- alias: 'Alarm trigger'
  trigger:
    - platform: state
      entity_id: group.security_door_window
      from: 'off'
      to: 'on'
    - platform: state
      entity_id: group.security_garage_internal_door
      from: 'off'
      to: 'on'
  condition:
    - condition: state
      entity_id: alarm_control_panel.ha_alarm
      state: armed_away
  action:
    - service: alarm_control_panel.alarm_trigger
      entity_id: alarm_control_panel.ha_alarm

i removed the ‘off’ from just the condition statement, then just the trigger, and then both but no luck.

Weird… I have no idea about this… I only use input_boolean as condition and working. My partial config:

  - condition: state
    entity_id: input_boolean.kids_status
    state: "off"

Just a though, you have the input_boolean configured as ?

initial: off

I seem to be getting the same

Ok condition and trigger statements DO need quotes or the automaions will not work. I went through each one of the 40 + automations and removed the quotes and re added them. I then restarted the automations from the configuration menu and still received the errors. Next, I removed all of the automations from the folder and restarted HA via ssh service and verified no more errors. Then, I re added them 5 at a time and restarted each time from the configuration menu. What’s weird is i finished adding all of the automation files and it never complained anymore. Not sure why, but everything looks ok now.

I have the same problem and it seems to be connected to conditons. My automation rule:

automation:
- alias: 'Rule Salon Light on in the evening'
  trigger:
    - platform: sun
      event: sunset
      offset: '00:10:00'
    - platform: state
      entity_id: group.all_devices
      from: 'not_home'
      to: 'home'
  condition:
    - condition: state
      entity_id: group.all_devices
      from: 'not_home'
      to: 'home'
    - condition: time
      at: '16:00:00'
      before: "18:15:00"
    - condition: sun
      at: sunset    
  action:
    - service: light.turn_on
      entity_id: light.yeelight

Can’t find anything wrong with it. Other automations with only one condition work fine.
Anyone any suggestion?

Can you either edit your post, or repost it, using the </> button to mark it as preformatted text (aka code) - as explained in the big blue box at the top.

If you don’t, people can’t spot any potential issues caused by formatting.

corrected, sorry for that

Your conditions shouldn’t be using at:, they should be using after: - see the documentation. The use of at: is only valid in the trigger: section. Also, it’s worth being explicit about whether this is an and or or in your expectations.

That should have generated an error if you’d run through the troubleshooting steps.