so i made an automation for when you toggle home (none) to away (away) for the thermostate… it used to work in previous HA os but i noticed its not working…
i needed to build a work around with the generic thermostate as its missing features for away and such…
so i have 2 file reads for Away (away) and Home (none)
now in my automation its supposed to read the toggle and then choose whatever setting its set to away or none… well now it crashes HA i added extra action to force the Button to away or none as for whatever reason when you Press Away it seems to run but it wont set the Switch to Away it keeps it on None like your at home… and doesnt switch … turn off the automation and it toggles fine… so whatever wrong in my automation does toggle the switch anymore
alias: "!!test"
description: ""
triggers:
- trigger: state
entity_id:
- climate.moms_furnace
attribute: preset_mode
conditions: []
actions:
- choose:
- conditions:
- condition: state
entity_id: climate.moms_furnace
attribute: preset_mode
state: away
sequence:
- action: climate.set_temperature
metadata: {}
data:
temperature: "{{states('sensor.away_temperature_house') }}"
target:
entity_id: climate.moms_furnace
- action: climate.set_preset_mode
metadata: {}
data:
preset_mode: away
target:
entity_id: climate.moms_furnace
- conditions:
- condition: state
entity_id: climate.moms_furnace
attribute: preset_mode
state: none
sequence:
- action: climate.set_temperature
metadata: {}
data:
temperature: "{{states('sensor.home_temperature_house') }}"
target:
entity_id: climate.moms_furnace
- action: climate.set_preset_mode
metadata: {}
data:
preset_mode: none
target:
entity_id: climate.moms_furnace
mode: single
this is what i normally have minus the added code above
alias: "!!test"
description: ""
triggers:
- trigger: state
entity_id:
- climate.moms_furnace
attribute: preset_mode
conditions: []
actions:
- choose:
- conditions:
- condition: state
entity_id: climate.moms_furnace
attribute: preset_mode
state: away
sequence:
- action: climate.set_temperature
metadata: {}
data:
temperature: "{{states('sensor.away_temperature_house') }}"
target:
entity_id: climate.moms_furnace
- conditions:
- condition: state
entity_id: climate.moms_furnace
attribute: preset_mode
state: none
sequence:
- action: climate.set_temperature
metadata: {}
data:
temperature: "{{states('sensor.home_temperature_house') }}"
target:
entity_id: climate.moms_furnace
mode: single
so the 2nd one used to work but it doesnt it just crashes
if i set the trigger for preset away and just run the away it will set the temperature but it wont toggle the switch it will stay on Home(none) so its not letthing the switch toggle… but it used to work
1 post - 1 participant