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

STM 330 temperature sensor formatting error #21

Closed
danielegobbetti opened this issue Oct 5, 2018 · 3 comments
Closed

STM 330 temperature sensor formatting error #21

danielegobbetti opened this issue Oct 5, 2018 · 3 comments

Comments

@danielegobbetti
Copy link

danielegobbetti commented Oct 5, 2018

Premise: I am new to openhab2 and to enocean protocol, but I was able to get the EnoceanPi gateway recognized and working following your instructions (using the 2.4.0-snapshot release on openhabian). It might be that the issue is not related to this addon, but it's the first sensor I am adding to openhab.

I managed to get an STM 330 temperature sensor automatically recognized with the "teach in" message. It has been added as A5-02-05, with a temperature range of 0-40 degrees C, which matches the datasheet.

Everything looks fine, except I am getting the following warnings in openhab.log:

2018-10-05 16:28:53.299 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value '22.431372549019606' of item openocean_temperatureSensor_IDIDXX_IDIDYY_temperature with format '%.1f %unit%': Conversion = 'u'

And in paper UI the values are displayed as follows:
image

I am unsure whether this issue is in the addon or if there is something wrong with my openhab setup, so please apologize if this issue is creating unnecessary noise.

@fruggy83
Copy link
Owner

fruggy83 commented Oct 7, 2018

Hello Daniele (@danielegobbetti),

I think the temperature value of 22.4 °C seems to be read correctly. However there seems to be a problem displaying it. Could you check the item settings please. They have to look like this

grafik

It is important that your temperature item is defined as a number item with the dimension temperature. In most cases this happens if you have activated the simple item linking mode.

Best regards and welcome
Daniel

@fruggy83
Copy link
Owner

fruggy83 commented Nov 6, 2018

Hi Daniele (@danielegobbetti),

could you solve your problem with your STM300? If so could you please close this issue?

Best regards
Daniel

@danielegobbetti
Copy link
Author

Oh thanks for the heads up. I forgot to update that I was able to make it work. I had to toggle twice (it was enabled, and I disabled then re-enabled it) the simple item linking mode and then re-discover the sensor.

Thanks a lot!

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

No branches or pull requests

2 participants