OnlineHumidifier icon indicating copy to clipboard operation
OnlineHumidifier copied to clipboard

strings vs numbers

Open consolacion opened this issue 7 years ago • 0 comments

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 ?

consolacion avatar May 08 '17 10:05 consolacion