Items syntax


Just found a difference in items syntax on tutorial page ( and example page ( It looks like on tutorial page there are mistakes as I tried this approach and nothing worked.

Thing yahooweather:weather:berlin [ location="638242", unit="c" ]

Number Temperature   { channel="yahooweather:weather:berlin#temperature" }
Number Humidity      { channel="yahooweather:weather:berlin#humidity" }

Above you can see quotation marks used when specifying location woeid as well as “#” separating berlin and both temperature and humidity.
Yahooweather example page shows different syntax:

yahooweather:weather:berlin [ location=638242 ]

Number Temperature 	"Outside Temperature" { channel="yahooweather:weather:berlin:temperature" }

Here, neither quatation marks are used nor “#”. This time everything worked fine. Is it a bug or mistype? Or both cases are possible?

Most likely there has been an update to the binding since the migration tutorial was written. I took the example straight from the readme for the Yahoo binding as it existed at that time.

When you see a conflict, always trust the binding docs over the tutorials.

I’ll file an issue to update the example to match the binding config.

Thanks for pointing this out.