I’m a newbie in Home Assistant. I want to create a custom thermostat card.
When I press + or - button, I want to increse or decrese the temperature without sending immediately the command to thermostat but right after I’ve finished to set the temp. Like the generic thermostat card…
How can I do this?
I have installed custom button-card. I can change the temperature but when i press the + button it send the command right after
This is the code of the + and - button and the setpoint of thermostat
custom_fields:
item1:
card:
type: "custom:button-card"
template: "widget_icon_for_thermostat"
entity: "[[[ return variables.entity ]]]"
tap_action:
action: "call-service"
service: "climate.set_temperature"
service_data:
temperature: "[[[ return (parseFloat(states[variables.entity].attributes.temperature) - 0.5) ]]]"
entity_id: "[[[ return variables.entity ]]]"
icon: "mdi:minus"
item2:
card:
type: "custom:button-card"
template: "false_temperature"
hold_action:
action: "more-info"
entity: "[[[ return variables.entity ]]]"
icon: "mdi:temperature-celsius"
item3:
card:
type: "custom:button-card"
template: "widget_icon_for_thermostat"
entity: "[[[ return variables.entity ]]]"
tap_action:
action: "call-service"
service: "climate.set_temperature"
service_data:
temperature: "[[[ return (parseFloat(states[variables.entity].attributes.temperature) + 0.5)
]]]"
entity_id: "[[[ return variables.entity ]]]"
icon: "mdi:plus"