homekit-infused icon indicating copy to clipboard operation
homekit-infused copied to clipboard

thermostat problem

Open lujiashun1 opened this issue 1 year ago • 5 comments

wenti mode undifined ,how to debug and fix it?

lujiashun1 avatar Aug 25 '22 03:08 lujiashun1

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.

jimz011 avatar Aug 25 '22 18:08 jimz011

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. f14e4a27866ec776508f18b8f09d4d5 My climate entity attributes image modeIcons contains hvac_mode image I tried to show the mode,but it did not work image

lujiashun1 avatar Aug 26 '22 06:08 lujiashun1

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).

jimz011 avatar Aug 28 '22 18:08 jimz011

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

lujiashun1 avatar Aug 29 '22 00:08 lujiashun1

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

lujiashun1 avatar Aug 29 '22 11:08 lujiashun1