Hello,
i did set up an Connection to Zendure Cloud via its MQTT Server. That connection is working and i did configure that one via a file.
(So connection is not the issue)
That Zendure Server does provide an MQTT Topic to me with a set of JSON information. That Item is coming and runnning. (thats not the topic)
… but the topic is that the Zendure Server does not always send in that JSON Frame all the information. That Frame can be filled with “Solar Power” only and on the other hand it may contain many other informations.
my code does look:
Thing mqtt:topic:MQTT_Zendure_Thing "MQTT Zendure Items" (mqtt:broker:ZendureBroker) {
Channels:
Type dimmer : Zen_State "Zen_Percentage" [ stateTopic="yj2xxxuc/96B1Vt89/state", commandTopic="yj2xxxuc/96B1Vt89/electricLevel/set", transformationPattern="JSONPATH:$.electricLevel" ]
Type number : Zen_Solarpower "Zen_Solarpower" [ stateTopic="yj2xxxuc/96B1Vt89/state", commandTopic="yj2xxxuc/96B1Vt89/solarInputPower/set", transformationPattern="JSONPATH:$.solarInputPower" ]
… and on.
you see there that i have channels with different values all in the same topic and this is JSON “transformed.”
The Problem i do have now with this: it works. the received value is received and transformed into the right value… but only the received value is transformed and the things that are in this time are not received generate a Warning in Openhab log.
like that one:
Question: is it anykind possible to add “transform only what is received”
the Openhab Config here always requests the full stack of information.