shauntarves / wyze-sdk

A modern Python client for controlling Wyze devices.
The Unlicense
298 stars 49 forks source link

No doorbell support #38

Open shauntarves opened 2 years ago

anthonystabile commented 2 years ago

I have a Wyze doorbell and an open to helping with development and testing.

shauntarves commented 2 years ago

That would be great!

What kinds of things do you want to do with the doorbell? I assume standard things like "is there motion" or "get the list of events", but what else?

On Thu, Aug 12, 2021 at 12:06 PM Anthony Stabile @.***> wrote:

I have a Wyze doorbell and an open to helping with development and testing.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shauntarves/wyze-sdk/issues/38#issuecomment-897764145, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEDBMEVCJSCZW4NUY3EUMTT4PWPPANCNFSM5CBINK6Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

anthonystabile commented 2 years ago

Do you know the mechanism behind how the Wyze app receives notifications? I was curious if it was a push type method that can be utilized.

An async listener for the doorbell button/trigger would be a great feature.

In order to be a good Wyze API client, I have been adverse to implement any type of frequent polling mechanism for real-time events (such as sensors).


From: Shaun Tarves @.> Sent: Thursday, August 12, 2021 12:23 PM To: shauntarves/wyze-sdk @.> Cc: Anthony Stabile @.>; Comment @.> Subject: Re: [shauntarves/wyze-sdk] No doorbell support (#38)

That would be great!

What kinds of things do you want to do with the doorbell? I assume standard things like "is there motion" or "get the list of events", but what else?

On Thu, Aug 12, 2021 at 12:06 PM Anthony Stabile @.***> wrote:

I have a Wyze doorbell and an open to helping with development and testing.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shauntarves/wyze-sdk/issues/38#issuecomment-897764145, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEDBMEVCJSCZW4NUY3EUMTT4PWPPANCNFSM5CBINK6Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/shauntarves/wyze-sdk/issues/38#issuecomment-897780371, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHJQZ7N5VFN62TPWHHHPR33T4PYQDANCNFSM5CBINK6Q. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

shauntarves commented 2 years ago

For what it's worth, the wyze mobile apps poll for data so often, anything you do would be lost in the noise :)

As for the triggering mechanism, I'm sure it's like any other push notification registration. While I haven't looked in specific detail at the device registration code they use, I can tell you that you would need a constant and unique 'phone_id' parameter, as that is crucial in the push setup.

I can definitely investigate adding support to the SDK for doorbell-related items, but it will be the same style (poll for the device state) as all the other calls in the SDK

On Thu, Aug 12, 2021 at 12:43 PM Anthony Stabile @.***> wrote:

Do you know the mechanism behind how the Wyze app receives notifications? I was curious if it was a push type method that can be utilized.

An async listener for the doorbell button/trigger would be a great feature.

In order to be a good Wyze API client, I have been adverse to implement any type of frequent polling mechanism for real-time events (such as sensors).


From: Shaun Tarves @.> Sent: Thursday, August 12, 2021 12:23 PM To: shauntarves/wyze-sdk @.> Cc: Anthony Stabile @.>; Comment @.> Subject: Re: [shauntarves/wyze-sdk] No doorbell support (#38)

That would be great!

What kinds of things do you want to do with the doorbell? I assume standard things like "is there motion" or "get the list of events", but what else?

On Thu, Aug 12, 2021 at 12:06 PM Anthony Stabile @.***> wrote:

I have a Wyze doorbell and an open to helping with development and testing.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/shauntarves/wyze-sdk/issues/38#issuecomment-897764145>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABEDBMEVCJSCZW4NUY3EUMTT4PWPPANCNFSM5CBINK6Q

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub< https://github.com/shauntarves/wyze-sdk/issues/38#issuecomment-897780371>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AHJQZ7N5VFN62TPWHHHPR33T4PYQDANCNFSM5CBINK6Q

. Triage notifications on the go with GitHub Mobile for iOS< https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android< https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shauntarves/wyze-sdk/issues/38#issuecomment-897795802, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEDBMH6HIR5GV3IZQGR2DDT4P24DANCNFSM5CBINK6Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .