Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hvac action template #28

Open
tomfool1985 opened this issue Nov 23, 2022 · 2 comments
Open

hvac action template #28

tomfool1985 opened this issue Nov 23, 2022 · 2 comments

Comments

@tomfool1985
Copy link

tomfool1985 commented Nov 23, 2022

Hi to everyone,

I tried to set the hvac action template in order to have the current status of the entity, but i does not work, thi is the template:

hvac_action_template: "{% set p = states('sensor.fancoil_cucina') | float > 0 %}
                           {% set eu = states('input_select.stagione') == 'Inverno' %}
                           {{  'HVACAction.HEATING' if p == true and eu ==true else  'HVACAction.COOLING' if p == true and eu == false else 'HVACAction.OFF' }}"

thanks for your help

@jcwillox
Copy link
Owner

Looks like the issue is you're returning the literal HVACAction.HEATING instead of the actual value heating, for a list of valid values look here https://github.com/home-assistant/core/blob/dev/homeassistant/components/climate/const.py#L90.

Otherwise, perhaps @laszlojakab can help.

@tomfool1985
Copy link
Author

Looks like the issue is you're returning the literal HVACAction.HEATING instead of the actual value heating, for a list of valid values look here https://github.com/home-assistant/core/blob/dev/homeassistant/components/climate/const.py#L90.

Otherwise, perhaps @laszlojakab can help.

Thanks!! work now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants