SeaPea / HomeP

Pebble watch app for controlling Chamberlain/Liftmaster MyQ Devices
MIT License
4 stars 2 forks source link

New 4.1 Api #3

Closed WilliamRandol closed 7 years ago

WilliamRandol commented 7 years ago

On my fork I have done some work towards getting this to work with the new API. I don't want to make it a pull request. Because I don't know how much of the rest of everything may still be broke (multi door, lights etc.) But it could be useful. https://github.com/WilliamRandol/HomeP

SeaPea commented 7 years ago

Thanks. I have been working on this too, using the code here: https://github.com/arraylabs/myq

However, nowhere else could I find working code for the individual device status fetching. Is your getDeviceStatus function working? I'd very much rather not use the other examples of fetching the entire device list just to get the status of a single device.

WilliamRandol commented 7 years ago

No, it also gets the whole list. I couldn't find any examples of that either.

One example provides a url for it, but it gives a 404. I did include the link in the code though, just in case it was on it's way.

On Mon, Feb 20, 2017, 22:11 Colin notifications@github.com wrote:

Thanks. I have been working on this too, using the code here: https://github.com/arraylabs/myq

However, nowhere else could I find working code for the individual device status fetching. Is your getDeviceStatus function working? I'd very much rather not use the other examples of fetching the entire device list just to get the status of a single device.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SeaPea/HomeP/issues/3#issuecomment-281247094, or mute the thread https://github.com/notifications/unsubscribe-auth/ACcrpz9MY2Ibk-un1LDh0LM-sGSz_HaJks5renHrgaJpZM4MGuMm .

SeaPea commented 7 years ago

Just cracked the device status URL. It returns a 404 error unless you get the attribute and headers just right. I committed the latest version, which I think is working. Need to do some more testing and cleanup before releasing though. Should be done tomorrow (or rather later today - it's late...)

WilliamRandol commented 7 years ago

Nice! That will be much better.I completely forgot that some API's return that as a legitimate response to a request.

I was looking at https://github.com/jbnunn/Alexa-MyQGarage and https://github.com/Einstein42/myq-garage mostly.

On Mon, Feb 20, 2017 at 11:03 PM Colin notifications@github.com wrote:

Just cracked the device status URL. It returns a 404 error unless you get the attribute and headers just right. I committed the latest version, which I think is working. Need to do some more testing and cleanup before releasing though. Should be done tomorrow (or rather later today - it's late...)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SeaPea/HomeP/issues/3#issuecomment-281253324, or mute the thread https://github.com/notifications/unsubscribe-auth/ACcrp5xOHXTo2HWcr68fc3b27tCUMtDPks5ren4pgaJpZM4MGuMm .

SeaPea commented 7 years ago

As far as I can tell, it is all working again. Thanks for your help!