Jan200101 / Jan200101/ShellyPy
deviceMeter = device.meter(0) #request meter information
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 31
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
Code:
import ShellyPy
device = ShellyPy.Shelly("192.168.100.33")
deviceMeter = device.status() #request meter information
print(deviceMeter[0]) #print power information
print(deviceMeter['total']) #print total informatio
print(deviceMeter)
Result
/bin/python3.12 /home/ubudesa/py/pp_shelly.py
Traceback (most recent call last):
File "/home/ubudesa/py/pp_shelly.py", line 5, in
deviceMeter = device.meter(0) #request meter information
^^^^^^^^^^^^^^^
File "/home/ubudesa/.local/lib/python3.12/site-packages/ShellyPy/gen2.py", line 97, in meter
raise NotImplementedError("Unavailable")
NotImplementedError: Unavailable
I can't find the error install pip install ShellyPy, when I run it I see the error, can you help me please?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the reported device.status() and device.meter(0) calls with ShellyPy/gen2.py, especially the meter method at line 97. Reproduce the NotImplementedError with the shown Python 3.12 example and determine whether meter(0) is supported for this device; done means the supported behavior is clear and the example no longer fails unexpectedly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100