shauntarves / wyze-sdk

A modern Python client for controlling Wyze devices.
The Unlicense
308 stars 50 forks source link

How to get remote WAN IP address of cameras #185

Open PrestonMcAfee opened 2 months ago

PrestonMcAfee commented 2 months ago

I have Wyze V3 cameras at a remote cabin connected to starlink. I am trying to use blue iris at my home to monitor them. Starlink changes the WAN IP frequently, often every five minutes (new satellite lock). I've been able to use wyze-sdk to get the local IP addresses of the cameras, but not the WAN IP address. (If I were running a computer there, I would just run dynamic DNS). Wyze monitors the WAN IP address because otherwise it could not communicate with the cameras. I have this working:

response = client.devices_list() for device in client.devices_list(): print(f"mac: {device.mac}") print(f"ip: {device.ip}")

which gets me the local IP, but not the starlink IP. I pulled all the attributes of the cameras and it does not contain the WAN IP. Is the WAN IP available from the Wyze SDK?