KartoffelToby / better-thermostat-ui-card

a custom card for a better thermostat in home assistant based on better_thermostat intigration
https://better-thermostat.org
193 stars 74 forks source link

Eco temperature templating? #124

Open Johnymalina opened 8 months ago

Johnymalina commented 8 months ago

Hi iam not able to change eco temperature settings using slider i wanted to make change eco temperature more interactive using HA helper to be able to set eco temperature but template is not working in this card. Is there any chance to call a script pressing the eco button or any other way to change eco temperatute without using yaml everytime?

type: custom:better-thermostat-ui-card
entity: climate.living_room_heating
eco_temperature: '{{ states(''input_number.eco_temperature'') | int}}'
duedipicche commented 4 months ago

Same problem:

eco_temperature: 
                  value_template: "{{ state_attr('climate.myClimate Entity', 'current_temperature') | float(99.0) }}"

don't work and: eco_temperature: "{{ state_attr('climate..myClimate Entity', 'current_temperature') | float(99.0) }}" don't work. in booth case the response is: Invocation of better_thermostat/set_temp_target_temperature service failed. expected float for dictionary value @ data['temperature'] thanks