fabiorighetti - I'm still struggling to get the...

I'm still struggling to get the Shelly plugin to work! It locates as shown in the log but doesn't list in the Data browser. The devices have the firmware updated. I've already uninstalled and reinstalled the plugin. Any tips? @Scott Bender ?
No description
No description
24 Replies
Scott Bender
Scott Bender15mo ago
Sorry, I forgot about this. Let me add some more debug logging. I can do that tomorrow… Can you show me your ~/.signalk/plugin-config-data/signalk-shelly.json ? ok, I published a new version with some extra debug messages
fabiorighetti
fabiorighettiOP15mo ago
No description
Scott Bender
Scott Bender15mo ago
ok, I don't think the latest version is ging to help ok, just published v1.15.3 , can you try that and take a look at the debug logging? hmm. I wonder if this is about username/password Yeah, I definitely think there is an issue with that I don’t see how that ever worked! I don’t have a gen 1 device available for testing right now…
fabiorighetti
fabiorighettiOP15mo ago
No description
fabiorighetti
fabiorighettiOP15mo ago
Could it be related to the device name in the json?
Scott Bender
Scott Bender15mo ago
nope, it's username/password. You don't see this in your log?
Feb 23 13:57:23 TypeError: Cannot read properties of undefined (reading 'setAuth') at addDevice (/home/sbender/.signalk/node_modules/signalk-shelly/dist/index.js:367:27) at /home/sbender/.signalk/node_modules/signalk-shelly/dist/index.js:126:21 at Array.forEach (<anonymous>) at Object.start (/home/sbender/.signalk/node_modules/signalk-shelly/dist/index.js:125:25) at doPluginStart (/usr/lib/node_modules/signalk-server/lib/interfaces/plugins.js:269:20) at /usr/lib/node_modules/signalk-server/lib/interfaces/plugins.js:450:21 at savePluginOptions (/usr/lib/node_modules/signalk-server/lib/interfaces/plugins.js:135:13) at /usr/lib/node_modules/signalk-server/lib/interfaces/plugins.js:437:13 at Layer.handle [as handle_request] (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/layer.js:95:5) at next (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/route.js:144:13) at Route.dispatch (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/route.js:114:3) at Layer.handle [as handle_request] (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/layer.js:95:5) at /usr/lib/node_modules/signalk-server/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/index.js:346:12) at next (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/index.js:280:10) at Function.handle (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/index.js:175:3) at router (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/index.js:47:12) at Layer.handle [as handle_request] (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/index.js:328:13) at /usr/lib/node_modules/signalk-server/node_modules/express/lib/router/index.js:286:9 at Function.process_params (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/index.js:346:12) at next (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/index.js:280:10)
Feb 23 13:57:23 TypeError: Cannot read properties of undefined (reading 'setAuth') at addDevice (/home/sbender/.signalk/node_modules/signalk-shelly/dist/index.js:367:27) at /home/sbender/.signalk/node_modules/signalk-shelly/dist/index.js:126:21 at Array.forEach (<anonymous>) at Object.start (/home/sbender/.signalk/node_modules/signalk-shelly/dist/index.js:125:25) at doPluginStart (/usr/lib/node_modules/signalk-server/lib/interfaces/plugins.js:269:20) at /usr/lib/node_modules/signalk-server/lib/interfaces/plugins.js:450:21 at savePluginOptions (/usr/lib/node_modules/signalk-server/lib/interfaces/plugins.js:135:13) at /usr/lib/node_modules/signalk-server/lib/interfaces/plugins.js:437:13 at Layer.handle [as handle_request] (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/layer.js:95:5) at next (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/route.js:144:13) at Route.dispatch (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/route.js:114:3) at Layer.handle [as handle_request] (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/layer.js:95:5) at /usr/lib/node_modules/signalk-server/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/index.js:346:12) at next (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/index.js:280:10) at Function.handle (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/index.js:175:3) at router (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/index.js:47:12) at Layer.handle [as handle_request] (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/index.js:328:13) at /usr/lib/node_modules/signalk-server/node_modules/express/lib/router/index.js:286:9 at Function.process_params (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/index.js:346:12) at next (/usr/lib/node_modules/signalk-server/node_modules/express/lib/router/index.js:280:10)
fabiorighetti
fabiorighettiOP15mo ago
No errors. Nothing like that. This inversion of the device id in the json to what is displayed in the log? device 17084E SHRGBW2 Device ID SHRGBW2-17084E ...................................................... Feb 23 15:57:56 2024-02-23T18:57:56.615Z signalk-shelly discovered device 17084E SHRGBW2 @ 192.168.0.192 "Device ID SHRGBW2-17084E": { "deviceName": "Shelly RGBW2 ", "enabled": true, "devicePath": "SHRGBW2-17084E",
Scott Bender
Scott Bender15mo ago
that's ok mine look the same I just published v1.15.4 with a fix for authentication your ip addresses are odd. Really 192.168.0.x? ok, I guess that's ok. Just not used to seeing it
fabiorighetti
fabiorighettiOP15mo ago
No description
fabiorighetti
fabiorighettiOP15mo ago
No description
fabiorighetti
fabiorighettiOP15mo ago
Thank you very much @Scott Bender ! Everything working!
Scott Bender
Scott Bender15mo ago
Yeah!
fabiorighetti
fabiorighettiOP15mo ago
@Scott Bender I noticed that the plugin is not finding Shelly H&T 😓
fabiorighetti
fabiorighettiOP15mo ago
No description
Scott Bender
Scott Bender15mo ago
It must have found it at some point then. But now you’re not seeing a debug log for it being discovered?
fabiorighetti
fabiorighettiOP15mo ago
It is only finding the two devices that appear in the plugin settings Feb 23 17:08:20 2024-02-23T20:08:20.239Z signalk-shelly device online 17084E Feb 23 17:08:20 2024-02-23T20:08:20.240Z signalk-shelly sending deltas [{"path":"electrical.switches.SHRGBW2-17084E.state","value":0},{"path":"electrical.switches.SHRGBW2-17084E.dimmingLevel","value":0.32},{"path":"electrical.switches.SHRGBW2-17084E.red","value":255},{"path":"electrical.switches.SHRGBW2-17084E.green","value":34},{"path":"electrical.switches.SHRGBW2-17084E.blue","value":0},{"path":"electrical.switches.SHRGBW2-17084E.white","value":82},{"path":"electrical.switches.SHRGBW2-17084E.preset","value":"Unknown"},{"path":"electrical.switches.SHRGBW2-17084E.mode","value":"color"},{"path":"electrical.switches.SHRGBW2-17084E.overPower","value":0},{"path":"electrical.switches.SHRGBW2-17084E.input0","value":0},{"path":"electrical.switches.SHRGBW2-17084E.power0","value":0},{"path":"electrical.switches.SHRGBW2-17084E.power1","value":0},{"path":"electrical.switches.SHRGBW2-17084E.power2","value":0},{"path":"electrical.switches.SHRGBW2-17084E.power3","value":0}] Feb 23 17:08:30 2024-02-23T20:08:30.235Z signalk-shelly device online 3C6105FD9256 Feb 23 17:08:30 2024-02-23T20:08:30.237Z signalk-shelly sending deltas [{"path":"electrical.switches.shsw-fundeio.state","value":0},{"path":"electrical.switches.shsw-fundeio.input0","value":0}] Feb 23 17:08:30 2024-02-23T20:08:30.239Z signalk-shelly device online 17084E Feb 23 17:08:30 2024-02-23T20:08:30.240Z signalk-shelly sending deltas [{"path":"electrical.switches.SHRGBW2-17084E.state","value":0},{"path":"electrical.switches.SHRGBW2-17084E.dimmingLevel","value":0.32},{"path":"electrical.switches.SHRGBW2-17084E.red","value":255},{"path":"electrical.switches.SHRGBW2-17084E.green","value":34},...
Scott Bender
Scott Bender15mo ago
Only devices that are discovered show up in the plugin settings I don’t know if this is relevant here. “Requires setting the Internet & Security -> CoIoT -> Remote address option on the Shelly device to the IP address of your device running node-shellies.” They don’t say that the H&T needs that, but not sure how accurate that is.
Scott Bender
Scott Bender15mo ago
GitHub
GitHub - alexryd/node-shellies: Handles communication with Shelly d...
Handles communication with Shelly devices. Contribute to alexryd/node-shellies development by creating an account on GitHub.
fabiorighetti
fabiorighettiOP15mo ago
It seems to me that it's only for Motion
fabiorighetti
fabiorighettiOP15mo ago
No description
Scott Bender
Scott Bender15mo ago
Yeah, but I’m pretty there are some other devices that needed it. Don’t recall which ones
fabiorighetti
fabiorighettiOP15mo ago
it found!
No description
Scott Bender
Scott Bender15mo ago
That’s after making that change?
fabiorighetti
fabiorighettiOP15mo ago
No. I did not do any additional configuration. It appears that Shelly H&T updates from time to time and there may have been some delays.

Did you find this page helpful?