Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Did the new app update break things #35

Open
bhaktatejas922 opened this issue Jan 14, 2023 · 2 comments
Open

Did the new app update break things #35

bhaktatejas922 opened this issue Jan 14, 2023 · 2 comments

Comments

@bhaktatejas922
Copy link

Hey, there was an update to the app last week and I'm seeing a 404 when trying to set a temperature. I had not used the pyeight API before, so I'm not sure if it was working and doesn't work now because of the update

Error puting Eight data. 404, message='Not Found', url=URL(
@mezz64
Copy link
Owner

mezz64 commented Jan 15, 2023

I'm not seeing any issues on my end. The known url is working as expected.

@bhaktatejas922
Copy link
Author

do you have an example of setting the temperature? Here's what I'm trying

timezone = "America/Los_Angeles"
eight = EightSleep(user, password, timezone, None)
eightuser_left = EightUser(eight, user, "left")
eightuser_right = EightUser(eight, user, "right")


# await eight.start()

# # Update mattress data, 1min interval recommended
# await eight.update_device_data()

# # Update user data, 5min interval recommended
# await eight.update_user_data()

async def main():
    await eight.start()
    await eight.update_device_data()
    await eight.update_user_data()
    print(vars(eight), "\n\n")
    # call room_temperature to get the current room temperature
    print(eight.room_temperature)

    # user set_heating_level to set the heating level
    await eightuser_left.set_heating_level(-45)
    await eightuser_right.set_heating_level(-45)
    await eight.stop()


if __name__ == "__main__":
    import asyncio
    asyncio.run(main())

What am I doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants