When re-editing automations in the automation UI data is missing from the input fields but it is present in the YAML.
The automations are created purely using the automation UI with no direct editing of the YAML.
I have some Time condition types using After and Before (getting time values from input_datetime helpers)
The UI appears to be writing the YAML fine and the automations work, but when I go to re-edit them using the UI, the fields for Before and After are empty (or not rendering?)
Is this a bug?
- id: '1612348681204'
alias: Heating Bed 2 fixed
description: 'description'
trigger:
- platform: homeassistant
event: start
- platform: state
entity_id: input_boolean.thermostat_bed_2
- platform: state
entity_id: input_datetime.timedaybed2
- platform: state
entity_id: input_datetime.timenightbed2
- platform: state
entity_id: input_number.tempdaybed2
- platform: state
entity_id: input_number.tempnightbed2
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.thermostat_bed_2
state: 'on'
- condition: time
before: input_datetime.timedaybed2 <****** NOT RENDERING IN UI*****
sequence:
- service: climate.turn_on
data: {}
entity_id: climate.bed2_thermostat
- service: climate.set_temperature
data:
temperature: '{{ states.input_number.tempnightbed2.state }}'
entity_id: climate.bed2_thermostat
- conditions:
- condition: state
entity_id: input_boolean.thermostat_bed_2
state: 'on'
- condition: time
after: input_datetime.timedaybed2 <****** NOT RENDERING IN UI*****
before: input_datetime.timenightbed2 <****** NOT RENDERING IN UI*****
sequence:
- service: climate.turn_on
data: {}
entity_id: climate.bed2_thermostat
- service: climate.set_temperature
data:
temperature: '{{ states.input_number.tempdaybed2.state }}'
- conditions:
- condition: state
entity_id: input_boolean.thermostat_bed_2
state: 'on'
- condition: time
after: input_datetime.timenightbed2 <****** NOT RENDERING IN UI*****
sequence:
- service: climate.turn_on
data: {}
entity_id: climate.bed2_thermostat
- service: climate.set_temperature
data:
temperature: '{{ states.input_number.tempnightbed2.state }}'
entity_id: climate.bed2_thermostat
default:
- service: climate.turn_off
data: {}
entity_id: climate.bed2_thermostat
mode: restart
I think this is part of a bigger issue. I get different results if I hardcode the times instead of using input_datetime helpers. The helpers don’t render but the hardcode times do. This also affects how the automation runs.
I’ve started a related thread automation-does-not-work-with-input-helper-but-does-hard-coded
I confess I don’t know how to create an issue on github. I’m a bit of a noob. If I understand github correctly, it looks like the issue has been identified and a fix is in progress?
Summary of similar/related threads, github issues and pull requests: