Open slminneman opened 4 years ago
execute
is a class method. Try activity.execute(session, { id: activity.id })
Tim,
Thanks! Yeah, I saw that syntax in one of the resolved issues (thanks for the tip of looking there, too). I can get access to the building where this is installed on Monday, but I also have a little test rig I can try it with this afternoon.
I’ll report back on whether it’s working in a few hours, but I suspect this’ll do the trick.
Cheers,
Scott
From: Tim Lyakhovetskiy [mailto:notifications@github.com] Sent: Saturday, November 30, 2019 9:13 AM To: tlyakhov/python-decora_wifi Cc: slminneman; Author Subject: Re: [tlyakhov/python-decora_wifi] Having trouble executing an activity! (#14)
execute is a class method. Try activity.execute(session, { id: activity.id })
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tlyakhov/python-decora_wifi/issues/14?email_source=notifications&email_token=ABAYU5LV5LZPG4BM3JR7GZLQWKNJPA5CNFSM4JRQIY2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFQOFXI#issuecomment-559997661 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAYU5NPE6CWBHP37PT2TRDQWKNJPANCNFSM4JRQIY2A . https://github.com/notifications/beacon/ABAYU5K3AO67YCR5AZZ7DITQWKNJPA5CNFSM4JRQIY2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFQOFXI.gif
Not sure if I'm just not calling it correctly or what.
for residence in all_residences: print(residence.count_residential_activities()) for activity in residence.get_residential_activities():
activity.execute() ## How do I make this call work correctly?
I seem to need some arguments that I can't get a handle on. I'm sure it's just me being stupid, but I'd love a tip to get past this issue. Doing the 5 objects one by one has too much timing jitter.
I could also do it with a scene, but I can't even get scenes successfully listed! I get nothing when I know there are multiple scenes in a listed room.