Jan200101 / ShellyPy

Python library to interact with Shelly devices
MIT License
22 stars 14 forks source link

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

Open NicoCaldo opened 1 year ago

NicoCaldo commented 1 year ago

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 commented 1 year ago

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