I am trying to store my current hvac_mode in a input_select and i am not sure why it is barking at me about mapping values not being allowed here.
- id: '1589381297570'
alias: HVAC Off if Door left open
description: ''
trigger:
- entity_id: group.door_sensors
for: 00:05
platform: state
to: 'on'
condition:
- condition: template
value_template: states.climate.thermostat_39.state | hvac_modes != "off"
action:
- service: input_select.select_option
data_template:
entity_id: input_select.hvac_mode
option: "{{ states('climate.thermostat_39') }}"
- data:
hvac_mode: 'off'
entity_id: climate.thermostat_39
service: climate.set_hvac_mode