Can't figure out why i keep getting error from my condition in my automation

This is the whole automation,

- id: '1571931087327'
  alias: Wake up
  trigger:
  - platform: time
    at: 05:10:00

  condition:
   condition: and
   conditions:
      - condition: zone
        entity_id: device_tracker.phone_pixel
        state: zone.home

      - condition: time
        weekday:
        - mon
        - tue
        - wen
        - thu
        - fri

  action:
    service: light.turn_on
    data_template:
      entity_id:
      - light.bord_lys
      - light.dc4f22d89416_192_168_116_130
      color_name: >
        {% set temp = states('sensor.apparent_temperature_high')|float %}
        {% if temp < 10 %}
          blue
        {% elif temp <= 20 %}
          yellow
        {% else %}
          red
        {% endif %}
      brightness: 250

and have tested everything work, but when i added the conditions i get a error

Invalid config for [automation]: extra keys not allowed @ data[‘condition’][0][‘conditions’][0][‘state’]. Got None
not a valid value for dictionary value @ data[‘condition’][0][‘conditions’][0][‘condition’]. Got None. Please check the docs at Automation - Home Assistant

And I can’t seem to find the reason

Take a look at the docs for the zone condition.
EDIT:
BTW, conditions are always ‘AND’

  condition:
    - condition: zone
      entity_id: device_tracker.phone_pixel
      zone: zone.home

    - condition: time
      weekday:
        - mon
        - tue
        - wen
        - thu
        - fri

does the same.

1 Like

wed not wen

2 Likes

Wow thank you, i am so stupid. works now