ppieczul / org.openhab.binding.loxone

Loxone binding for OpenHAB2
Eclipse Public License 1.0
8 stars 3 forks source link

Support of Music Server Zone #12

Open JochenKoehler69 opened 4 years ago

JochenKoehler69 commented 4 years ago

Hi all,

is it planned to support also the Loxone Musicserver or the "Music Server Zone" block?

If I could help (e.g. by testing) I could do so :-)

ppieczul commented 4 years ago

@JochenKoehler69 I did not plan it. But let's look into that. I would need you to describe from OH perspective, what use cases do you need. What channels/items do you envision and what and how they would do. If you could take a look at the API documentation here: https://www.loxone.com/enen/wp-content/uploads/sites/3/2016/10/1000_Structure-File.pdf

It says on one hand that Music Server is not documented in the API. But on the other hand there is an AudioZone control that probably correlates to what you describe as Music Server Zone. If you could look into your /data/LoxAPP3.json file and see if you have any AudioZone's and post what they look like, it will also help.

Thanks Pawel

JochenKoehler69 commented 4 years ago

Hi Pavel,

thanks to your quick replay. I had a short look at the API documentation: You're assumption is completely right, that the "AudioZone" is what I'm looking for. I had also a look into the json-File. And in my case there are nine AudioZones, hence this is what I like to control via Openhab :-).

Here's a snapshot from such an AudioZone (coming from the JSON-Viewer in Notepad++): audiozone-example Is this helpful?

Jochen

ppieczul commented 4 years ago

Very helpful. Can you also check what object is with this ID given after “server” key? This would be that undocumented control. Thanks

On Mon, 27 Jan 2020 at 19:32, JochenKoehler69 notifications@github.com wrote:

Hi Pavel,

thanks to your quick replay. I had a short look at the API documentation: You're assumption is completely right, that the "AudioZone" is what I'm looking for. I had also a look into the json-File. And in my case there are nine AudioZones, hence this is what I like to control via Openhab :-).

Here's a snapshot from such an AudioZone (coming from the JSON-Viewer in Notepad++): [image: audiozone-example] https://user-images.githubusercontent.com/32040252/73202556-93fe1680-413b-11ea-972a-86cef2d9ebb1.png Is this helpful?

Jochen

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/ppieczul/org.openhab.binding.loxone/issues/12?email_source=notifications&email_token=ACOHS7S5TLAKTJU3HPEQUV3Q74SCVA5CNFSM4KLYIQU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKASC5I#issuecomment-578888053, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOHS7X2LHPP6O3WXM5R23DQ74SCVANCNFSM4KLYIQUQ .

JochenKoehler69 commented 4 years ago

Hi Pawel,

this is the fragment from json-File: {"name":"Terrasse","type":"AudioZone","uuidAction":"0c7a2678-0255-ed84-ffff912d5ec91829","room":"00000007-038f-0037-0f00000000000000","cat":"00000007-038d-0006-0d00000000000000","defaultRating":1,"isFavorite":false,"isSecured":false,"details":{"server":"0c7a2672-01a3-ebcb-ffff912d5ec91829","playerid":6,"clientType":0,"parameterConnections":0},"states":{"power":"0c7a2678-0254-ed3e-ffffb0bdf90da5d1","serverState":"0c7a2678-0254-ed4e-ffffb0bdf90da5d1","playState":"0c7a2678-0254-ed42-ffffb0bdf90da5d1","clientState":"0c7a2678-0254-ed4f-ffffb0bdf90da5d1","volume":"0c7a2678-0254-ed3f-ffffb0bdf90da5d1","maxVolume":"0c7a2678-0254-ed40-ffffb0bdf90da5d1","mute":"0c7a2678-0254-ed43-ffffb0bdf90da5d1","shuffle":"0c7a2678-0254-ed46-ffffb0bdf90da5d1","repeat":"0c7a2678-0254-ed47-ffffb0bdf90da5d1","source":"0e33ab3b-00aa-0ddc-ffff504f94103078","sourceList":"0c7a2678-0254-ed45-ffffb0bdf90da5d1","songName":"0c7a2678-0254-ed44-ffffb0bdf90da5d1","duration":"0c7a2678-0254-ed49-ffffb0bdf90da5d1","progress":"0c7a2678-0254-ed48-ffffb0bdf90da5d1","album":"0c7a2678-0254-ed4a-ffffb0bdf90da5d1","artist":"0c7a2678-0254-ed4b-ffffb0bdf90da5d1","station":"0d7988ee-02b0-0ce6-ffff504f94103078","genre":"0c7a2678-0254-ed4c-ffffb0bdf90da5d1","cover":"0c7a2678-0254-ed4d-ffffb0bdf90da5d1","volumeStep":"0e33ab3b-00aa-0ddd-ffff504f94103078","queueIndex":"1487f94b-0273-872e-ffff912d5ec91829","enableAirPlay":"1487f94b-0273-872f-ffff912d5ec91829","enableSpotifyConnect":"1487f94b-0273-8730-ffff912d5ec91829","alarmVolume":"0c7a2678-0255-ed79-ffffb0bdf90da5d1","bellVolume":"0c7a2678-0255-ed7a-ffffb0bdf90da5d1","buzzerVolume":"0c7a2678-0255-ed7b-ffffb0bdf90da5d1","ttsVolume":"0c7a2678-0255-ed7c-ffffb0bdf90da5d1","ttsVolume":"0c7a2678-0255-ed7c-ffffb0bdf90da5d1","defaultVolume":"0c7a2678-0255-ed78-ffffb0bdf90da5d1","equalizerSettings":"1487f94b-0273-8731-ffff912d5ec91829"}} There is also a "server" key included ... It seems, that the server key is the same for all AudioZones in my application.

Jochen

ppieczul commented 4 years ago

Thanks. This should be fairly easy to add, I only need to find some time to do it. I will send it to you for testing when it is ready.

JochenKoehler69 commented 4 years ago

sorry for the late reply. Sounds great. When I can help anyhow additionally beside testing, please let me know.