checkmann
(Christoph)
May 24, 2021, 10:15pm
1
I’ve the following thing config
Thing topic veluxRolloBad {
Channels:
Type number : watersensorKitchen "watersensorKitchen" [ stateTopic="tele/veluxRolloBad/SENSOR" ]
}
and my item config
Number watersensorKitchen_test "Watersensor" (gDG) {channel="mqtt:topic:mosquitto:veluxRolloBad:watersensorKitchen"}
In the log I see
Incoming payload '{"Time":"2021-05-24T23:06:17","ANALOG":{"A0":3}}' not supported by type 'NumberValue'
Any help why this happens?
I want to read the A0 value (which is 3 in this case).
rossko57
(Rossko57)
May 24, 2021, 11:02pm
2
Because the channel is trying to stuff the whole MQTT payload into a Number Item, that’s what you asked it to do,
Simplest option is to use JSONPATH for state transformation in the channel settings, as used with many other Tasmota messages.
Thanks! Indeed. Problem solved by
Type number : watersensorKitchen "watersensorKitchen" [ stateTopic="tele/veluxRolloBad/SENSOR", transformationPattern="JSONPATH:$.ANALOG.A0"]
1 Like
Hey, i got exactly the same problem, i tried it with jsonpath (its also in the addons) but no valure is showing on the sitemap :/?
rossko57
(Rossko57)
November 19, 2021, 11:25pm
5
If you had exactly the same problem, it would have exactly the same fix.
Maybe you could provide details of your actual problem - what have you set up, what messages do you see?