openhab / openhab-google-assistant

openHAB Google Assistant: Actions on Google for openHAB
Eclipse Public License 2.0
176 stars 86 forks source link

Add Climate- & HumiditySensor, Change TemperatureSensor #432

Closed michikrug closed 1 year ago

michikrug commented 1 year ago

While working on #426, we noticed that using TemperatureControl does not show any UI for the sensor in the Google Home app. Apparently, using the TemperatureSetting trait does the trick. Therefore, I adjusted the TemperatureSensor to use the other trait. In addition to that, I added a HumiditySensor (only for humidity) and a ClimateSensor (for both humidity and temperature).

This supersedes #428 as working with ranges did not fix the issue.

Screenshot_20230103-212322 Screenshot_20230103-212333 Screenshot_20230103-212339


Resolves #426 Resolves #427


ToDo

robnielsen commented 1 year ago

@michikrug, do you have a Nest Hub? I noticed that the current version displays both the setpoint and current temperature for TemperatureSensor. Hopefully, it will still work with your changes.

robnielsen commented 1 year ago

PXL_20230105_183126758 - Copy

michikrug commented 1 year ago

@michikrug, do you have a Nest Hub? I noticed that the current version displays both the setpoint and current temperature for TemperatureSensor. Hopefully, it will still work with your changes.

No. I don't.

Well, I have removed the setpoint one as I thought this makes no sense. At least in Google Home the single one is displayed.

michikrug commented 1 year ago

openHAB Web UI was updated here: https://github.com/openhab/openhab-webui/pull/1648