Getting an error in my logs with
- id: Set_Indicator_Red
alias: 'Set indicator red'
trigger:
- platform: time_pattern
seconds: '/30'
condition:
- condition: state
entity_id: switch.red_light
state: 'on'
- condition: state
entity_id: switch.red_indicator
state: 'off'
action:
- service: switch.turn_on
entity_id: switch.red_indicator
the above throws an error and that automation never ‘loads’, but the below doesn’t and the automation is there in developer view ?
Invalid config for [automation]: must be a value between 0 and 59 for dictionary value @ data[‘seconds’]. Got None. (See ?, line ?).
- id: RED_ON_repeat
alias: 'RED ON repeat'
trigger:
- platform: time_pattern
seconds: '/59'
condition:
- condition: state
entity_id: switch.red_light
state: 'on'
- condition: template
value_template: "{{ (as_timestamp(now()) - as_timestamp((states.switch.red_light.last_updated)) > 119 )}}"
action:
- service: mqtt.publish
data:
topic: "iotlink/all/commands/run"