Repeating automation

Hey, im trying to create a repeating automation using time pattern, but i cant get it to work. Is there some bug in the time_pattern platform right now?

This automation:

  - id: test
    alias: "test"
    trigger:
      - platform: time_pattern
        seconds: '/5'

Results in this error:
Invalid config for [automation]: required key not provided @ data['action']. Got None. (See /home/homeassistant/.homeassistant/configuration.yaml, line 78). Please check the docs at https://home-assistant.io/components/automation/

What am i doing wrong here?

It doesn’t do anything. You are missing the action as the log says. it should be something like;

- id: test
    alias: "test"
    trigger:
      - platform: time_pattern
        seconds: '/5'
    action:
      service: light.turn_on
      data:
        entity_id:
        - light.kitchen
1 Like