sbender9 / signalk-shelly

Signal K Plugin For Shelly devices
Apache License 2.0
3 stars 2 forks source link

Shelly Plus 1 PM support possible issue? #44

Open htool opened 1 year ago

htool commented 1 year ago

Hi Scott,

I've got 3 shellies running one, but one is acting strange through the plugin. This shows debug message after restart:

Sep 24 11:00:48 boatnet signalk-server[21761]: 2023-09-24T09:00:48.444Z signalk-shelly discovered device 3C6105FE1484 SHSW-1 @ 192.168.2.19
Sep 24 11:00:48 boatnet signalk-server[21761]: 2023-09-24T09:00:48.448Z signalk-server:put registered action handler for vessels.self electrical.switches.starlink.state signalk-shelly
Sep 24 11:00:48 boatnet signalk-server[21761]: 2023-09-24T09:00:48.451Z signalk-shelly sending meta: [{"path":"electrical.switches.starlink.state","value":{"timeout":3840}},{"path":"electrical.switches.starlink.state","value":{"units":"bool"}},{"path":"electrical.switches.starlink.input0","value":{"timeout":3840}},{"path":"electrical.switches.starlink.externalTemperature0","value":{"timeout":3840}},{"path":"electrical.switches.starlink.externalTemperature0","value":{"units":"K"}},{"path":"electrical.switches.starlink.externalTemperature1","value":{"timeout":3840}},{"path":"electrical.switches.starlink.externalTemperature1","value":{"units":"K"}},{"path":"electrical.switches.starlink.externalTemperature2","value":{"timeout":3840}},{"path":"electrical.switches.starlink.externalTemperature2","value":{"units":"K"}}]
Sep 24 11:00:48 boatnet signalk-server[21761]: 2023-09-24T09:00:48.487Z signalk-naviop-plugin path: electrical.switches.starlink.state  state: 0  source: signalk-shelly
Sep 24 11:01:02 boatnet signalk-server[21761]: 2023-09-24T09:01:02.496Z signalk-shelly discovered device 98CDAC0D6A71 SHSW-1 @ 192.168.2.21
Sep 24 11:01:02 boatnet signalk-server[21761]: 2023-09-24T09:01:02.497Z signalk-server:put registered action handler for vessels.self electrical.switches.orionCharger.state signalk-shelly
Sep 24 11:01:02 boatnet signalk-server[21761]: 2023-09-24T09:01:02.498Z signalk-shelly sending meta: [{"path":"electrical.switches.orionCharger.state","value":{"timeout":3840}},{"path":"electrical.switches.orionCharger.state","value":{"units":"bool"}},{"path":"electrical.switches.orionCharger.input0","value":{"timeout":3840}},{"path":"electrical.switches.orionCharger.externalTemperature0","value":{"timeout":3840}},{"path":"electrical.switches.orionCharger.externalTemperature0","value":{"units":"K"}},{"path":"electrical.switches.orionCharger.externalTemperature1","value":{"timeout":3840}},{"path":"electrical.switches.orionCharger.externalTemperature1","value":{"units":"K"}},{"path":"electrical.switches.orionCharger.externalTemperature2","value":{"timeout":3840}},{"path":"electrical.switches.orionCharger.externalTemperature2","value":{"units":"K"}}]
Sep 24 11:01:07 boatnet signalk-server[21761]: 2023-09-24T09:01:07.401Z signalk-shelly discovered device shellyplus1pm-08b61fd5e38c Shelly Plus 1 PM @ undefined
Sep 24 11:01:07 boatnet signalk-server[21761]: 2023-09-24T09:01:07.401Z signalk-server:put registered action handler for vessels.self electrical.switches.dolphinCharger.state signalk-shelly
Sep 24 11:01:07 boatnet signalk-server[21761]: 2023-09-24T09:01:07.404Z signalk-shelly sending meta: [{"path":"electrical.switches.dolphinCharger.state","value":{"units":"bool"}},{"path":"electrical.switches.dolphinCharger.voltage","value":{"units":"V"}},{"path":"electrical.switches.dolphinCharger.temperature","value":{"units":"K"}},{"path":"electrical.switches.dolphinCharger.temperature","value":{"units":"K"}},{"path":"electrical.switches.dolphinCharger.source","value":{"units":"string"}},{"path":"electrical.switches.dolphinCharger.apower","value":{"units":"W"}},{"path":"electrical.switches.dolphinCharger.current","value":{"units":"A"}},{"path":"electrical.switches.dolphinCharger.powerFactor","value":{"units":"W"}},{"path":"electrical.switches.dolphinCharger.input0","value":{"units":"bool"}}]

Especially this undefined stands out: Sep 24 11:01:07 boatnet signalk-server[21761]: 2023-09-24T09:01:07.401Z signalk-shelly discovered device shellyplus1pm-08b61fd5e38c Shelly Plus 1 PM @ undefined

It identifies as follows:

{"name":"dolphinShelly","id":"shellyplus1pm-08b61fd5e38c","mac":"08B61FD5E38C","model":"SNSW-001P16EU","gen":2,"fw_id":"20221024-142010/0.11.4-ga1906a2","ver":"0.11.4","app":"Plus1PM","auth_en":false,"auth_domain":null}

Host/dhcp/ip config is similar to other two. I can ping it and access the webinterface.

The plugin picks it up, updates some initial data but then seems to stop. Support for the Shelly Plus 1 PM is there according to the README and shellies-ng/dist/devices/shelly-plus-1-pm.js contains the model id.

htool commented 1 year ago

The config seems slightly off looking at how the model id/name is used differently:

pi@boatnet:~ $ cat .signalk/plugin-config-data/signalk-shelly.json 
{
  "configuration": {
    "tempUnits": "C",
    "Device ID SHSW-1-98CDAC0D6A71": {
      "deviceName": "Shelly 1 ",
      "enabled": true,
      "devicePath": "orionCharger"
    },
    "Device ID SHSW-1-3C6105FE1484": {
      "deviceName": "Shelly 1 ",
      "enabled": true,
      "devicePath": "starlink"
    },
    "Device ID Shelly Plus 1 PM-shellyplus1pm-08b61fd5e38c": {
      "deviceName": "Shelly Plus 1 PM ",
      "enabled": true,
      "devicePath": "dolphinCharger"
    },
    "nextGenPassswords": [],
    "Device ID SHSW-1-D65B6A": {
      "deviceName": "Shelly 1 ",
      "enabled": true,
      "devicePath": "instrumentpanel"
    }
  },
  "enabled": true,
  "enableDebug": true
htool commented 1 year ago

And I noticed the old firmware, but updating that didn't make any difference :/