pyEight icon indicating copy to clipboard operation
pyEight copied to clipboard

add support for 'temperature' endpoint

Open anant-singh opened this issue 2 years ago • 7 comments

anant-singh avatar Jun 13 '23 00:06 anant-singh

@anant-singh Seems like you're working on reversing more of the API, do you have any place where you're publishing what you've found?

andrew-kennedy avatar Jun 14 '23 00:06 andrew-kennedy

Where can I publish it? Is there a discord channel or forum?

anant-singh avatar Jun 14 '23 03:06 anant-singh

@anant-singh Can you let me know how this differs from the current heating level value that is +/- 100? Looks like it might be the same thing, just at a new endpoint.

mezz64 avatar Jun 14 '23 20:06 mezz64

This allows you to directly set it for the user, without caring for the side. Also, it let's you turn off the heating/cooling which was the primary use case I needed. Btw I don't know if duration is valid anymore.

anant-singh avatar Jun 14 '23 20:06 anant-singh

@mezz64 Any updates on this? I didn't want to make breaking changes to the API hence, added a separate method. But ideally, I believe this change could just go under set_heating_level . Or I could just add a function to turn the state off and remove all the other changes?

anant-singh avatar Jun 18 '23 04:06 anant-singh

This allows you to directly set it for the user, without caring for the side. Also, it let's you turn off the heating/cooling which was the primary use case I needed. Btw I don't know if duration is valid anymore.

Duration is valid, as I use the current version of pyEight in home automations, and it shows up as a "timer" mode in the app, though there is no way to set a duration from the app. Seems like a deprecated API. The mode you are adding in this PR is the way the app currently sets the heating and cooling mode, and it respects smart schedules.

andrew-kennedy avatar Jun 21 '23 08:06 andrew-kennedy

I'd prefer to just have one method, especially if they've changed the app to no longer use the old way.

Best thing to do is define your new functions and then adapt the existing "set_heating_level" function to use the new functions to maintain compatability. I'll try to find some time over the next few days to run some test on my device, but please keep in mind not all eight devices out there are PODs with cooling functionality. Some offer heating only so we need to ensure bounds are respected correctly for those types of devices.

mezz64 avatar Jun 22 '23 15:06 mezz64