This is probably an easy one for many of you guys, but I’m not skilled enough to figure it out
I’m trying to move my HomeAssistant setup to hass.io, but have problems with my command line switches for my B&O products.
In my existing and working setup I have a Command_state that looks something like this (from memory): curl -X GET ‘http://192.168.xxx.xxx:8080/BeoZone/Zone/ActiveSources’ -H ‘content-type: application/json’ | python -mjson | grep ‘inUse’
The response I get from that command (without the mjson and grep command) is a quite long json string, but the main thing is that the word ‘inUse’ is only there when the TV is on, and therefor I can use it for status.
Couldn’t wait I’ve tried jq now and it works like a charm - and it’s easier to understand for me, so it’s a win-win
The final command ended up being: curl -X GET -H “Content-Type: application/json” “http://192.16
8.xxx.xxx:8080/BeoZone/Zone/ActiveSources/” | jq “.primaryExperience.source.inUse”