Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Invalid config for [automation]: keeps complaining about "for: minutes"

$
0
0

@vazquezjm wrote:

Hi.

It might be pretty obvious but I cannot find the problem with one of my automations.

I’m trying to trigger a switch on at a given time, then turn it off after x minutes.

- id: '1575712295429'
  alias: Filtrar pileta
  description: Filtro la pile
  trigger:
  - platform: time
    at: "18:40:00"
    for:
      minutes: 1
  condition: []
  action:
  - device_id: 36140821a8c24dada438fd34ba17fc4a
    domain: switch
    entity_id: switch.pileta_bomba
    type: turn_on

I’m consistently getting this error:

Invalid config for [automation]: [for] is an invalid option for [automation]. Check: automation->trigger->0->for. (See /config/configuration.yaml, line 9). Please check the docs at https://home-assistant.io/integrations/automation/

I read https://www.home-assistant.io/docs/automation/trigger/ but and could´t find any references to a time span other than adding “for: minutes: x” to the trigger section.

Any help will be much appreciated.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>