Does it show in the log it received updates? And do you have the code somewhere on GitHub, because based on the information you gave I can’t see what might be wrong.
Not sure if it causes your problem, but your channels are defined as QuantityType, but you pass a DecimalType as argument. Also don’t override updateState. The method has a variant with ChannelUID as argument and if you would call that instead of the String variant it would bypass your override method and cause unexpected behavior.
Sorry but I am still having trouble with this issue - nothing is getting updated (btw even the yahoo weather channel which is included in the demo app): Number:Temperature Weather_Temperature "Outside Temperature [%.1f °C]" <temperature> (Weather) { channel="yahooweather:weather:berlin:temperature" }
Is not receiving any updates
I do not get what I am missing, therefore I’d really appreciate any help
I’m asking because the Yahoo binding has been removed some time ago because they shutdown the API. And the Yahoo binding isn’t in the recent demo app. Also due to the build system changes you should use the ide as described in the instructions.
Okay sorry, you are right - the yahoo weather items are still in the demo sitemap but there is no binding, you are right…
I got it working now, but I do not really understand whats happening and why the framework channel seems to be different to the one I defined.
Here is what I’ve changed:
The handleCommand method is called with a refresh Command and the channel is smainverter:inverter:30284926:current
So I changed my item to listen to that channel:
`Number:Energy SMA_Current_Prod "Current Production [%.3f %unit%]" <solarplant> { channel="smainverter:inverter:30284926:current" }`
I do not know why the number 30284926 has been added, because I thought that there should be the thing_id instead. The thing_id I’ve defined in my demo.things file is:
The number is a thing identifier. As channels belong to things and you may have multiple things of same type in order to uniquely identify them their identifiers (ChannelUID) do contain also a thing id.