openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.86k stars 3.58k forks source link

[MQTT] Type check at channel level done prior to transformation #4906

Closed lukicsl closed 5 years ago

lukicsl commented 5 years ago

Checking of matching of the incoming mqtt payload type (e.g. number/string) is done prior to transformation execution

Channel:

Type number : ventStep0 "Vent Step 1 Value" [ stateTopic="ebusd/wolfcwl/LuftmengeStufe0", commandTopic="ebusd/wolfcwl/LuftmengeStufe0/set", transformationPattern="REGEX:(.*?);.*" ]

Item:

Number CWLStep3Vol "Vent Step 3" { channel="mqtt:topic:vevedock:wolfCWL:ventStep3" }

Payload, first number of interest:

300;50;300;5;225

Log entry:

2019-02-16 09:36:01.693 [WARN ] [eneric.internal.generic.ChannelState] - Incoming payload '300;50;300;5;225' not supported by type 'NumberValue'
lukicsl commented 5 years ago

After setting the config again and rebooting things started working as expected