Skip to content

Conversation

@JurgenLB
Copy link
Contributor

@JurgenLB JurgenLB commented Nov 2, 2025

This is to solve the issue #104
and there is another type for the Indoor Camera Advance

maybe the documentation in usage.md needs a rewrite for example;

def HOMESDATA():
    homesData = lnetatmo.HomesData ( authorization, home_id )
    print (homesdata.Homes_Data['name'])
    print (homesdata.Homes_Data['altitude'])
    print (homesdata.Homes_Data['coordinates'])
    print (homesdata.Homes_Data['country'])
    print (homesdata.Homes_Data['timezone'])
    print ('rooms in HomesData')
    for r in homesdata.Homes_Data.get('rooms'):
        print (r)
    print ('Devices in HomesData')
    for m in homesdata.Homes_Data.get('modules'):
        print (m)
    print ('Persons in HomesData')
    if 'persons' in homesdata.Homes_Data.keys():
        for P in homesdata.Homes_Data.get('persons'):
            print (P)
    print ('Schedules in HomesData')
    print (homesdata.Homes_Data['schedules'][0].keys())

try:
    HOMESDATA()
except Exception as e:
    print (e)

Kind Regards

JurgenLB added 8 commits June 11, 2025 20:41
Merge pull request philippelt#98 from JurgenLB/master to close philippelt#94
Added error handling for server response in multiple locations.
Removed redundant check for server response before raising AuthFailure.
Removed redundant authentication error checks from multiple requests.
Added runtime warning for deprecated User and HomeData classes.
Updated deprecation warnings for User and HomeData classes.
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

Successfully merging this pull request may close these issues.

1 participant