homekit-infused
homekit-infused copied to clipboard
thermostat problem
mode undifined ,how to debug and fix it?
This is because your thermostat probably doesn't show the current hvac_mode
, it will only show a state instead.
There is no good fix for it except the fix below:
Replace the following line in /hki-base/templates/button/hki-thermostat.yaml
# replace line 19 with:
state_display: "[[[ if (states['{{entity}}'].state == 'off') return `Off`; else return `${states['{{entity}}'].state}` ]]]"
Reload lovelace afterwards (you can reload lovelace by clicking on your profile photo in the top right and then scroll the navigation bar to the left). If you can't find it you can also just restart HA instead.
This is because your thermostat probably doesn't show the current
hvac_mode
, it will only show a state instead.There is no good fix for it except the fix below:
Replace the following line in
/hki-base/templates/button/hki-thermostat.yaml
# replace line 19 with: state_display: "[[[ if (states['{{entity}}'].state == 'off') return `Off`; else return `${states['{{entity}}'].state}` ]]]"
Reload lovelace afterwards (you can reload lovelace by clicking on your profile photo in the top right and then scroll the navigation bar to the left). If you can't find it you can also just restart HA instead.
Thank you very much. it works.But there is another problem the popup-card does not display hvac_mode buttons.
My climate entity attributes
modeIcons contains hvac_mode
I tried to show the mode,but it did not work
I am not entirely sure, I did not create the popup card code. For this you better open an issue on the original creator's repository.
You can find the original creator in the docs (go to the button addon and click on the link).
I am not entirely sure, I did not create the popup card code. For this you better open an issue on the original creator's repository.
You can find the original creator in the docs (go to the button addon and click on the link).
OK Thank you
I am not entirely sure, I did not create the popup card code. For this you better open an issue on the original creator's repository.
You can find the original creator in the docs (go to the button addon and click on the link).
It is OK now Because I installed the wrong Lovelace