Closed faanskit closed 2 years ago
The SonarCloud check failing on code I did not touch in this PR. I will not fix this supposed error.
The SonarCloud check failing on code I did not touch in this PR. I will not fix this supposed error.
No worries it was changed in the master, so we will just have to make sure the merge happens correctly. SonarCloud is not the best but it is free haha
SonarCloud Quality Gate failed.
2 Bugs
0 Vulnerabilities
0 Security Hotspots
4 Code Smells
No Coverage information
0.0% Duplication
Sample code for turning notifications on/off
These variants work
from wyzeapy.base_client import AccessTokenError, DeviceTypes, Device, PropertyIDs, ActionNotSupported, Group, EventTypes
from wyzeapy.client import Client
import sys
if __name__ == '__main__':
if len(sys.argv) == 2:
wyze_client = Client("username", "password")
devices = wyze_client.get_devices()
for device in devices:
device_type: DeviceTypes = DeviceTypes(device.product_type)
if device_type == DeviceTypes.CAMERA:
if sys.argv[1] == "off":
device_info = wyze_client.notifications_off(device, PropertyIDs.NOTIFICATIONS)
elif sys.argv[1] == "on":
device_info = wyze_client.notifications_on(device, PropertyIDs.NOTIFICATIONS)
Hey @faanskit can you update this to fit the current project?
Hey @faanskit can you update this to fit the current project?
Sure, but it will take some time before I can do it. Do not have access to a dev enviroment for a few weeks and have not followed what changes has been made.
No worries! Whenever you get a chance
Updated Wyzeapy to be compatible with Wyze Sensors (old model). And fixed #4