ShellyPy
ShellyPy copied to clipboard
ShellyPy.error.NotFound: Not Found even if Shelly 1 is reachable
I'm trying to using the library which should be pretty simple. I've used device = ShellyPy.Shelly("xx.xx.xx.xx")
and with device.update()
I can see the device name printing print(device)
Now, if I use
deviceMeter = device.meter(0)
print(deviceMeter['total'])
I've the error above
The thing is that I can correctly reach the IP from the same PC I'm trying to connect with Python.
Also, I don't know if I have to active Allow Cross-Origin Resource Sharing
on the Shelly?
Oh just figured it out that you have to use device.status()