Hey there,
i´m currently trying to get informations about the current Source from my Philips TV.
The JointSpace Binding can´t access any information so i tried to get it with the HTTP Binding and som JSON.
Item:
Switch tvSource "Quelle [%s]" <tv> (TV, Wohnzimmer) {http="<[http://192.168.2.14:1925/1/sources/current:10000:JS(tvSource.js)]"}
tvSource.js
JSON.parse(input).id;
http://192.168.2.14:1925/1/sources/current
{
"id": "30"
}
Sitemap:
Text item=tvSource
I´m not getting any errors in the openhab.log but the item stays empty.
Even when changing the Source the item doesn´t get updatet…
Any ideas?
Thanks!