Apple M2 Pro
MacOS 13.3.1
Indigo 2022.2.2
Shelly Pro 4PM V2 Firmware 0.14.1
Plugin v7.20.47
Connection via wired ethernet
No authentication on the Shelly device. I can connect to it on the local LAN and via the Shelly cloud
Plugin discovery for ONE device returns:
added IP#:192.168.5.234 to shelly discovery process
But, trying discovery for a range of addressed .233 to .235 returns nothing.
In either case, no device is created in the target folder.
However, setting Use curl or python-requests for web page access to python requests throws the following errors:
- Code: Select all
22 Apr 2023 at 11:49:45
shellyDirect Error url testHTTP:False, used: http://192.168.5.234:80/status
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 2022.2/IndigoPluginHost3.app/Contents/Resources/PlugIns/requests/models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "plugin.py", line 5483, in getJsonFromDevices
jj = resp.json()
File "/Library/Application Support/Perceptive Automation/Indigo 2022.2/IndigoPluginHost3.app/Contents/Resources/PlugIns/requests/models.py", line 917, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: [Errno Expecting value] Not Found: 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "plugin.py", line 5487, in getJsonFromDevices
r = "timeout" if r.find("timed out")>-1 else rr[0:50]
NameError: name 'rr' is not defined
EDIT: Here is the log for the discovery attempt:
- Code: Select all
2023-04-22 12:15:49 added IP#:192.168.5.234 to shelly discovery process
2023-04-22 12:15:52 SHELLY discovery: probing ip# 192.168.5.234, for 20 secs
2023-04-22 12:15:52 addToShellyPollerQueue ip#:192.168.5.234; page:settings; now:False; getStatusDelay:1682158551.468488
2023-04-22 12:15:58 added IP#:192.168.5.234 to shelly discovery process
2023-04-22 12:16:08 sbin/ping -c 1 -W 40 -o 192.168.5.234 ret-code: 0
2023-04-22 12:16:08 getJsonFromDevices: ip:192.168.5.234 page:settings
2023-04-22 12:16:08 Connection: /usr/bin/curl -m 10 --globoff 'http://192.168.5.234:80/settings'
2023-04-22 12:16:08 Shelly curl response from 192.168.5.234 no json object returned: >Not Found<> % Total % Received % Xferd Average Speed T<
2023-04-22 12:16:08 shellyPollerThread last querry were not successful skip; ip:192.168.5.234
2023-04-22 12:16:13 SHELLY discovery: finished
2023-04-22 12:16:16 SHELLY discovery: probing ip# 192.168.5.234, for 20 secs
2023-04-22 12:16:16 addToShellyPollerQueue ip#:192.168.5.234; page:settings; now:False; getStatusDelay:1682158575.887476
2023-04-22 12:16:28 sbin/ping -c 1 -W 40 -o 192.168.5.234 ret-code: 0
2023-04-22 12:16:28 getJsonFromDevices: ip:192.168.5.234 page:settings
2023-04-22 12:16:28 Connection: /usr/bin/curl -m 10 --globoff 'http://192.168.5.234:80/settings'
2023-04-22 12:16:28 Shelly curl response from 192.168.5.234 no json object returned: >Not Found<> % Total % Received % Xferd Average Speed T<
2023-04-22 12:16:28 shellyPollerThread last querry were not successful skip; ip:192.168.5.234