pyControl4 icon indicating copy to clipboard operation
pyControl4 copied to clipboard

Add support for Control4 Rooms

Open kdkavanagh opened this issue 3 years ago • 5 comments

Will be accompanied by HomeAssistant media_player support

kdkavanagh avatar Apr 26 '22 00:04 kdkavanagh

Is their a reason this pull request hasn't been merged? Is the project stalled? It seems that room integration is big feature for media control and I would like to contribute to home assistant by including room control using pycontrol4 assuming the request is merged.

nalin29 avatar Sep 09 '22 13:09 nalin29

Additionally, I have noticed that this is not integrated with the websocket implementation it seems that the websocket cannot subscribe to room updates. Is there a way I can test and get my own websocket working through trial and error. What were the steps taken to capture api and websocket messages?

nalin29 avatar Sep 10 '22 03:09 nalin29

The websocket API seemed to require some unique handshake process to fully connect. Beyond that, the two methods seemed functionally similar and I didnt need any time-sensitive push updates into HA. It was a bit easier to just use the REST API, especially since the rest of this library was using that as well.

To reverse engineer the API, I had to MITM the android app installed on an old android phone I had lying around - I needed to rebuild the apk with custom CA certs and use BurpSuite Community edition to intercept the API calls from the app. Unfortunately I dont recall the exact set of steps, I just remember it was a bit of a pain, but there are tutorials out there since this is a pretty common need for app developers

kdkavanagh avatar Sep 10 '22 16:09 kdkavanagh

+1 re: the merge question. In the meantime, I've been using a local install of this plugin+the HA integration I wrote. I can probably get those HA changes cleaned up and PR'd if that'd be helpful

kdkavanagh avatar Sep 10 '22 16:09 kdkavanagh

Thank you. Yeah I installed your library and was able to change to current HA plugin to support my media rooms for source and volume/power control using the current polling approach. It would be better to be push and not as hard coded.

nalin29 avatar Sep 10 '22 17:09 nalin29

I noticed that you have forked the home assistant core and modified the control4 integration there. What features have you got working since I have a version that I made a while back but is pretty bare bones and diy. If you need someone to help test it let me know.

nalin29 avatar Feb 06 '23 16:02 nalin29

Closed by #21

lawtancool avatar Feb 15 '23 03:02 lawtancool