-
Notifications
You must be signed in to change notification settings - Fork 29
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
HomeStatus not working in my account #369
Comments
What device type is this? |
It is the Smarther2 termostat by Bticino . The online APIs are working
properly
Thx
F.
Il Mar 3 Gen 2023, 19:45 Tobias Sauerwein ***@***.***> ha
scritto:
… What device type is this?
—
Reply to this email directly, view it on GitHub
<#369 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALKZOSSL2RNH4HBFVU53HF3WQRXU7ANCNFSM6AAAAAASYLX5OM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yes, so it is a BNS? Which version of pyatmo are you using? |
Also, you are using the old and deprecated classes/functions. Those do not support BTicino devices. Are you using |
Correct it is a BNS,
I am using pyatmo in a standalone script.
I tried with 7.5.0 and older 5,x,x versions
I am using the ones provided in pyatmo package
thank you
Il giorno mar 3 gen 2023 alle ore 22:25 Tobias Sauerwein <
***@***.***> ha scritto:
… Also, you are using the old and deprecated classes/functions. Those do not
support BTicino devices. Are you using pyatmo in a standalone script?
—
Reply to this email directly, view it on GitHub
<#369 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALKZOSVO6EMHUZS32DLKYXDWQSKMDANCNFSM6AAAAAASYLX5OM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hello, any news ?
what does it mean the old deprecated ? which are the new ones?
If i run :
# 2 : Get devices list
homeData = pyatmo.HomeData(authorization)
homeData.update()
thermostat_data = pyatmo.ThermostatData(authorization)
thermostat_data.update()
then i get :
File "C:\Users\xxxxx\Desktop\temp\test.py", line 20, in <module>
thermostat_data = pyatmo.ThermostatData(authorization)
AttributeError: module 'pyatmo' has no attribute 'ThermostatData'
Il giorno mer 4 gen 2023 alle ore 08:37 Francesco Sinacori <
***@***.***> ha scritto:
… Correct it is a BNS,
I am using pyatmo in a standalone script.
I tried with 7.5.0 and older 5,x,x versions
I am using the ones provided in pyatmo package
thank you
Il giorno mar 3 gen 2023 alle ore 22:25 Tobias Sauerwein <
***@***.***> ha scritto:
> Also, you are using the old and deprecated classes/functions. Those do
> not support BTicino devices. Are you using pyatmo in a standalone script?
>
> —
> Reply to this email directly, view it on GitHub
> <#369 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALKZOSVO6EMHUZS32DLKYXDWQSKMDANCNFSM6AAAAAASYLX5OM>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Here is a small example: account = pyatmo.AsyncAccount(async_auth)
await account.async_update_topology()
home_id = "your_home_id"
await async_account.async_update_status(home_id)
room_id = "a_room_id"
room = async_home.rooms[room_id] Unfortunately I haven't had the time to update the documentation yet. |
Hi,
still can't make it work.
How should i initialize async_auth ?
Thank you
Il giorno lun 16 gen 2023 alle ore 17:08 Tobias Sauerwein <
***@***.***> ha scritto:
… Here is a small example:
account = pyatmo.AsyncAccount(async_auth)await account.async_update_topology()home_id = "your_home_id"await async_account.async_update_status(home_id)room_id = "a_room_id"room = async_home.rooms[room_id]
Unfortunately I haven't had the time to update the documentation yet.
—
Reply to this email directly, view it on GitHub
<#369 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALKZOSSQQ5B5CEQDNG6KTLTWSVW63ANCNFSM6AAAAAASYLX5OM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a Smarther thermostat (Smarther2 in Italy).
the following code works properly
homeData = pyatmo.HomeData(authorization)
homeData.update()
print(homeData.raw_data)
only differently from the website doesn't show all the info about the house but it stop at rooms details.
when i run the following code, with home_id set accordingly to previous response
homeStatus = pyatmo.HomeStatus(authorization, home_id="xxxxxxxxxxx")
homeStatus.update()
print(homeStatus.raw_data)
I get :
Traceback (most recent call last):
File "C:\Users\Francesco\Desktop\Temp\test.py", line 21, in
homeStatus.update()
File "C:\Users\Francesco\anaconda3\lib\site-packages\pyatmo\thermostat.py", line 264, in update
self.raw_data = extract_raw_data(resp.json(), "home")
File "C:\Users\Francesco\anaconda3\lib\site-packages\pyatmo\helpers.py", line 57, in extract_raw_data
raise NoDevice("No device found, errors in response")
pyatmo.exceptions.NoDevice: No device found, errors in response
while on netatmo API tryout all the information including the thermostat are properly shown.
Any hint ?
The text was updated successfully, but these errors were encountered: