I got all the info from this page: https://github.com/edberoi/python-airmusicapi
Edit:
So I’ve wanted to check if my radio is playing or not in HA, by studing the dabman api you can find out that the sid value changes once the radio is playing or not playing, thanks to this i created an NodeRED flow to check for the current value and to send info if the radio in on or off:
The flow:
[{"id":"03baef9ddf0a2449","type":"inject","z":"beda68e300d2159f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"10","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":110,"y":160,"wires":[["97c886cbde476b8e"]]},{"id":"97c886cbde476b8e","type":"http request","z":"beda68e300d2159f","name":"Kuchnia","method":"GET","ret":"txt","paytoqs":"ignore","url":"192.168.0.142/background_play_status","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"basic","senderr":false,"headers":[],"x":260,"y":160,"wires":[["6285073c89e39fd3"]]},{"id":"6285073c89e39fd3","type":"xml","z":"beda68e300d2159f","name":"","property":"payload","attr":"","chr":"","x":390,"y":160,"wires":[["05c735b1d3fcea99"]]},{"id":"05c735b1d3fcea99","type":"change","z":"beda68e300d2159f","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.result.sid[0]","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":160,"wires":[["fc44f2aa3edfdaf2"]]},{"id":"8a7a56c3e3034af9","type":"ha-entity","z":"beda68e300d2159f","name":"","server":"b4642eb.26c79d","version":2,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"Radio Kuchnia"},{"property":"device_class","value":""},{"property":"icon","value":""},{"property":"unit_of_measurement","value":""},{"property":"state_class","value":""},{"property":"last_reset","value":""}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"payload","outputLocationType":"none","inputOverride":"allow","outputOnStateChange":false,"outputPayload":"","outputPayloadType":"str","x":910,"y":160,"wires":[[]]},{"id":"fc44f2aa3edfdaf2","type":"change","z":"beda68e300d2159f","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"1","fromt":"str","to":"off","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"6","fromt":"str","to":"on","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"7","fromt":"str","to":"on","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"2","fromt":"str","to":"on","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"3","fromt":"str","to":"on","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"4","fromt":"str","to":"on","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"5","fromt":"str","to":"on","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"9","fromt":"str","to":"on","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"12","fromt":"str","to":"on","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"14","fromt":"str","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":730,"y":160,"wires":[["8a7a56c3e3034af9"]]},{"id":"b4642eb.26c79d","type":"server","name":"Home Assistant main","version":4,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m"}]
And with this card I can see if the radio is on:
type: custom:button-card
show_name: true
show_icon: true
name: Radio Kuchnia
tap_action:
action: call-service
service: shell_command.kuchnia_on_off
service_data: {}
target: {}
icon: mdi:power
show_state: false
state_color: true
hold_action:
action: none
entity: sensor.radio_lazienka_2
aspect_ratio: 1/1
Works great!