I’m using the automations UI editor to enter some conditions. Basically I have a trigger that only executes once a state has been true for 1 minute:
above: '54.5'
entity_id: sensor.sma_battery_voltage
for: '00:01:00'
platform: numeric_state
I want to do this same thing in a condition. The Conditions documentation suggests this is possible (https://www.home-assistant.io/docs/scripts/conditions/#state-condition). But I noticed that the UI doesn’t show any option time options like Triggers do.
So I tried entering the time component through YAML:
above: '54.5'
condition: numeric_state
entity_id: sensor.sma_battery_voltage
for:
hours: 0
minutes: 1
seconds: 0
But that results in an error:
- Message malformed: extra keys not allowed @ data[‘condition’][0][‘conditions’][1][‘for’]
Any idea what I’m doing wrong here?