ShellyPy icon indicating copy to clipboard operation
ShellyPy copied to clipboard

ShellyPy.error.NotFound: Not Found even if Shelly 1 is reachable

Open NicoCaldo opened this issue 1 year ago • 1 comments

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?

NicoCaldo avatar Oct 04 '23 10:10 NicoCaldo

Oh just figured it out that you have to use device.status()

NicoCaldo avatar Oct 04 '23 10:10 NicoCaldo