jcwillox / hass-template-climate

❄️Templatable Climate Device for Home Assistant, Supports Running Actions On Service Calls.
MIT License
114 stars 34 forks source link

[FR]: Example of hvac_action_template #58

Open greberg opened 5 months ago

greberg commented 5 months ago

Is your feature request related to a problem? Please describe.

Some more examples could probably help out how the integration is working

Describe the solution you'd like

So I have a floor temperature system that is controlled using a shelly plug and an external temperture sensor. I want to add some more feeling that this is actually a thermostat. I have tried some examples but can't really figure it out so I need some help. So right now I can see the current temp, my target temp. I have even solved that if I switch my shelly plug on the climate control says "heating". What I want now is to be able to control the shelly plug from the climate control and I guess I need to use the hvac_action_template but I can't figure out how to do it. So choosing off in climate I of course want to send switch.off and choosing "heat" a switch command switch.on. Here is my yaml so far, I understand I miss the action part but how to do that?

`- platform: climate_template name: floortemperature min_temp: 15 max_temp: 30 temp_step: 1 modes:

Describe alternatives you've considered

No response

Additional context

No response

andrus2049 commented 5 months ago

For your needs no read-only templates (used for mapping) can be used (like "hvac_action_template") Use "set_hvac_mode" instead.

Take a look here: https://developers.home-assistant.io/docs/core/entity/climate/#hvac-action