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

strings vs numbers #9

Open
consolacion opened this issue May 8, 2017 · 0 comments
Open

strings vs numbers #9

consolacion opened this issue May 8, 2017 · 0 comments

Comments

@consolacion
Copy link

Not really an issue, but more curiosity from my part: You send the humidity as a string with "(String) humidity", however in OpenHab item file you consider it as a number, even as a float with
"Number Humidity "Ambient Humidity [%.0f %%]" {mqtt="<[test:krzychb/home/sensor/Humidity:state:default]"}"
Now obviously that works as I have tried myself, but on other occasions I found openhab rather picky on using a via MQTT received string payload as a number.
Am I missing something ?

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

1 participant