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 temperatureRange to TemperatureSensor #428

Closed
wants to merge 2 commits into from

Conversation

michikrug
Copy link
Collaborator

@michikrug michikrug commented Jan 1, 2023

As reported in #426, the TemperatureControl trait requires the temperatureRange attribute.
This was missing so far.

This PR adds this attribute to the TemperatureSensor device type.

It also introduces a default range of -100°C to 100°C as a fallback, when no range is provided.


Fixes #426


TODO:

  • Prepare PR to openhab-ui to add the new attribute

@robnielsen
Copy link

robnielsen commented Jan 2, 2023

@michikrug, is it possible to add the optional temperatureStepCelsius attribute as well?

@michikrug
Copy link
Collaborator Author

@michikrug, is it possible to add the optional temperatureStepCelsius attribute as well?

Yes, but it would not serve any purpose with a query only device.

And so far we do not have other devices for that trait.

Signed-off-by: Michael Krug <michi.krug@gmail.com>
Signed-off-by: Michael Krug <michi.krug@gmail.com>
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

Successfully merging this pull request may close these issues.

TemperatureSensor does not work because it is missing required temperature range attributes
2 participants