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

Add Temperature Sensor #172

Closed
wants to merge 3 commits into from
Closed

Conversation

michikrug
Copy link
Collaborator

As it was reported multiple times that the current way of providing a temperature sensor using a thermostat device is not working nicely, this PR adds a new TemperatureSensor device type.
(See Temperature Sensor and Google Assistant @ openHAB Community)

With this new way we
a) Do not need the thermostat group item anymore
b) Only get response with the current temperature without the information "Thermostat is off"
c) Can not anymore see the value in the Google Home app, as sensors do not have any UI currently

Same as for thermostats we also can specify useFahrenheit=true if required.

Signed-off-by: Michael Krug <michi.krug@gmail.com>
Signed-off-by: Michael Krug <michi.krug@gmail.com>
Signed-off-by: Michael Krug <michi.krug@gmail.com>
@michikrug michikrug mentioned this pull request Oct 6, 2020
@mrleongalaxyum
Copy link

mrleongalaxyum commented Nov 15, 2020

Hello, how can I use this?
I've tried the following, but google home says the thermostat is not setup yet

Group g_LeonsRoom_TSTAT "Leon's Room env" { ga="Thermostat"}
Number Tsense1 "Room temperature [%.1f °C]" {channel="mqtt:topic:502d7cd3:Tsense1", ga="TemperatureSensor"}

image

Also, is this feature even included in the latest build of OpenHAB or do I have to wait for that?

@michikrug
Copy link
Collaborator Author

Hi. Thanks for reaching out.

First of all, all changes in the Google Assistant integration are independent of openHAB itself. Thus, the features mentioned here will not be bound to any specific openHAB release but will be released separately without you having to update anything.

Secondly, the sensor feature is not yet released. You can only try this by hosting your own openHAB cloud instance and assistant action as described in the README.

Furthermore, the usage of the sensor would be without a Thermostate as a standalone item. Unfortunately, there will also be no user interface for the sensor in Google Home.

@mrleongalaxyum
Copy link

Hi. Thanks for reaching out.

First of all, all changes in the Google Assistant integration are independent of openHAB itself. Thus, the features mentioned here will not be bound to any specific openHAB release but will be released separately without you having to update anything.

Secondly, the sensor feature is not yet released. You can only try this by hosting your own openHAB cloud instance and assistant action as described in the README.

Furthermore, the usage of the sensor would be without a Thermostate as a standalone item. Unfortunately, there will also be no user interface for the sensor in Google Home.

Thanks a lot for the info!

Do you know where can I subscribe to get the relevant info when all this is implemented?

@michikrug
Copy link
Collaborator Author

Basically here is the right place 😀

@michikrug
Copy link
Collaborator Author

I would close this in favor of #175

Base automatically changed from master to main January 18, 2021 20:15
@michikrug
Copy link
Collaborator Author

Implemented with #175

@michikrug michikrug closed this Mar 5, 2021
@michikrug michikrug deleted the temperaturesensor branch March 25, 2021 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants