alexryd / homebridge-shelly

Homebridge plugin for Shelly devices
MIT License
299 stars 44 forks source link

Shelly 1 valve fault status #145

Open danny1605 opened 4 years ago

danny1605 commented 4 years ago

Hallo, ich habe das Problem das meine Shelly 1 valve immer im starten modus bleibt. Shelly´s gehen soweit nur der Status wird nicht richtig angezeigt. Ich hoffe auf schnelle abhilfe. Danke !

Hello, I have the problem that my Shelly 1 valve always stays in start mode.

20-07-14 19-41-11 2094

{ "platform": "Shelly", "name": "Shelly", "devices": [ { "id": "8caab5061xxx", "type": "valve" }, { "id": "8caab5061xxx", "type": "valve" }, { "id": "98f4abd0cxxx", "type": "valve" } ], "admin": { "enabled": true, "port": 8181 } }

jonalbr commented 4 years ago

I've got a similar issue with my Shelly 2.5. The endstatus from my roller shutter is alyway "opening" or "closing" instead of "open" and closed". Further HomeKit alway thinks my roller shutter is at 30%. I posted the details here:

147

Karo-X commented 4 years ago

It is really embarrassing that I have commented here so often that the plugin is not working properly, but in fact it was due to my "poorly" configured network. In my case it was the setting: Broadcast and Multicast Handling Convert IP Multicast to Unicast: Enabled ... and that's false!

It was already clear to me that the Shellys needed multicast, but unfortunately so far I didn't know how or where to set these settings in the AeroHive (my accesspoints) settings. Since my network broke down the days for inexplicable reasons (well, it was not that inexplicable - I had changed something some days ago), I had to examine every setting and that's where I found it.

So @jonas240 make sure that your network components don't filter or even drop the mutlicast. (ansonsten Teile mir gerne mit welche Hardware du einsetzt und ich helfe dir gern.)

danny1605 commented 4 years ago

hello, can anyone give tips why my status of the valve is not displayed correctly?

alexryd commented 4 years ago

@danny1605 Are you running the latest Shelly firmware and version of this plugin?

If you can run homebridge in debug mode (with the -D flag when launching homebridge) and then post some log output here, that would be helpful.

danny1605 commented 4 years ago

@danny1605 Are you running the latest Shelly firmware and version of this plugin?

If you can run homebridge in debug mode (with the -D flag when launching homebridge) and then post some log output here, that would be helpful.

Hello here the logs. The device id of the shelly that is set as valve is SHSW-1 8CAAB50613E3

Shelly firmeware---> 20200812-090904/v1.8.0@8acf41b0 Homebridge Shelly---> homebridge-shelly v0.14.0 Homebridge Config UI X---> homebridge-config-ui-x v4.26.0

20-08-24 11-09-58 2239


[8/24/2020, 11:08:29 AM] [Config] Homebridge restart request received [8/24/2020, 11:08:29 AM] [Config] No restart command defined, killing process... [8/24/2020, 11:08:29 AM] [HB Supervisor] Stopping services... [8/24/2020, 11:08:29 AM] Got SIGTERM, shutting down Homebridge... [8/24/2020, 11:08:34 AM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null [8/24/2020, 11:08:40 AM] [HB Supervisor] OS: Linux 5.4.55-1-pve x64 [8/24/2020, 11:08:40 AM] [HB Supervisor] Node.js v12.18.3 /usr/bin/node [8/24/2020, 11:08:40 AM] [HB Supervisor] Homebridge Path: /usr/lib/node_modules/homebridge/bin/homebridge [8/24/2020, 11:08:40 AM] [HB Supervisor] UI Path: /usr/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js [8/24/2020, 11:08:40 AM] [HB Supervisor] Starting Homebridge with extra flags: -I -D [8/24/2020, 11:08:40 AM] [HB Supervisor] Started Homebridge v1.1.2 with PID: 1091 [8/24/2020, 11:08:40 AM] Loaded config.json with 1 accessories and 3 platforms. [8/24/2020, 11:08:40 AM] --- [8/24/2020, 11:08:41 AM] Loaded plugin: homebridge-config-ui-x@4.26.0 [8/24/2020, 11:08:41 AM] Registering platform 'homebridge-config-ui-x.config' [8/24/2020, 11:08:41 AM] --- [8/24/2020, 11:08:41 AM] Loaded plugin: homebridge-raspberrypi-temperature@0.0.7 [8/24/2020, 11:08:41 AM] Registering accessory 'homebridge-raspberrypi-temperature.RaspberryPiTemperature' [8/24/2020, 11:08:41 AM] --- [8/24/2020, 11:08:41 AM] Loaded plugin: homebridge-shelly@0.14.0 [8/24/2020, 11:08:41 AM] Registering platform 'homebridge-shelly.Shelly' [8/24/2020, 11:08:41 AM] --- [8/24/2020, 11:08:42 AM] [Config] Homebridge Config UI X v4.26.0 is listening on :: port 8581 [8/24/2020, 11:08:41 AM] Loaded plugin: homebridge-tahoma@0.3.50 homebridge-tahoma API version: 2.6 [8/24/2020, 11:08:41 AM] Registering platform 'homebridge-tahoma.Tahoma' [8/24/2020, 11:08:41 AM] --- [8/24/2020, 11:08:41 AM] Loading 3 platforms... [8/24/2020, 11:08:41 AM] [Shelly] Initializing Shelly platform... [8/24/2020, 11:08:41 AM] [Tahoma] Initializing Tahoma platform... [8/24/2020, 11:08:41 AM] [Tahoma] Fetch accessories... [8/24/2020, 11:08:41 AM] [Tahoma] Login Connexoon server... [8/24/2020, 11:08:41 AM] [Config] Initializing config platform... [8/24/2020, 11:08:41 AM] [Config] Running in Service Mode [8/24/2020, 11:08:41 AM] Loading 1 accessories... [8/24/2020, 11:08:41 AM] [Server Temp.] Initializing RaspberryPiTemperature accessory... [8/24/2020, 11:08:41 AM] [Server Temp.] update currentTemperatureCharacteristic value: 43 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHSW-1 B97EA6 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHSW-PM F2FC33 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHSW-PM 76BFC3 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHSW-1 98F4ABD0C3B6 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHSW-PM 76E39F [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHSW-1 8CAAB5061642 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHPLG-S 698897 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHSW-PM 76EC31 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHPLG-S 6977FF [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHPLG-S 7A2FC5 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHSW-PM 766B37 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHSW-25 B94F37 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #1 for device SHSW-25 B94F37 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHDM-1 F35D41 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHSW-PM 76DCF1 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHDM-1 F36755 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHSW-PM 766220 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHWT-1 F2A934 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHHT-1 B88FDF [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHHT-1 B89455 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHWT-1 F2AF88 [8/24/2020, 11:08:41 AM] [Shelly] Configuring cached accessory #0 for device SHSW-1 8CAAB50613E3 [8/24/2020, 11:08:41 AM] [Shelly] 22 accessories loaded from cache [8/24/2020, 11:08:41 AM] [Shelly] Admin server is running on port 8181 [8/24/2020, 11:08:41 AM] [Tahoma] Unable to refresh states (not logged in) [8/24/2020, 11:08:41 AM] [Shelly] Device SHSW-1 8CAAB50613E3 came online [8/24/2020, 11:08:41 AM] [Shelly] Loading settings for device SHSW-1 8CAAB50613E3 [8/24/2020, 11:08:41 AM] [Shelly] Device SHSW-PM 76DCF1 came online [8/24/2020, 11:08:41 AM] [Shelly] Loading settings for device SHSW-PM 76DCF1 [8/24/2020, 11:08:41 AM] [Shelly] Device SHSW-PM 766220 came online [8/24/2020, 11:08:41 AM] [Shelly] Loading settings for device SHSW-PM 766220 [8/24/2020, 11:08:41 AM] [Shelly] Device SHSW-1 B97EA6 came online [8/24/2020, 11:08:41 AM] [Shelly] Loading settings for device SHSW-1 B97EA6 [8/24/2020, 11:08:41 AM] [Shelly] Device SHSW-1 98F4ABD0C3B6 came online [8/24/2020, 11:08:41 AM] [Shelly] Loading settings for device SHSW-1 98F4ABD0C3B6 [8/24/2020, 11:08:41 AM] [Shelly] Device SHSW-PM 766B37 came online [8/24/2020, 11:08:41 AM] [Shelly] Loading settings for device SHSW-PM 766B37 [8/24/2020, 11:08:41 AM] [Shelly] Device SHSW-PM F2FC33 came online [8/24/2020, 11:08:41 AM] [Shelly] Loading settings for device SHSW-PM F2FC33 [8/24/2020, 11:08:41 AM] [Shelly] temperature of device SHHT-1 B88FDF changed to 21.5 [8/24/2020, 11:08:41 AM] [Shelly] humidity of device SHHT-1 B88FDF changed to 60 [8/24/2020, 11:08:41 AM] [Shelly] battery of device SHHT-1 B88FDF changed to 90 % [8/24/2020, 11:08:41 AM] [Shelly] Device SHHT-1 B88FDF came online [8/24/2020, 11:08:41 AM] [Shelly] Loading settings for device SHHT-1 B88FDF [8/24/2020, 11:08:41 AM] [Shelly] Device SHSW-PM 76BFC3 came online [8/24/2020, 11:08:41 AM] [Shelly] Loading settings for device SHSW-PM 76BFC3 [8/24/2020, 11:08:41 AM] [Shelly] Device SHPLG-S 6977FF came online [8/24/2020, 11:08:41 AM] [Shelly] Loading settings for device SHPLG-S 6977FF [8/24/2020, 11:08:41 AM] [Shelly] Device SHSW-1 8CAAB5061642 came online [8/24/2020, 11:08:41 AM] [Shelly] Loading settings for device SHSW-1 8CAAB5061642 [8/24/2020, 11:08:41 AM] [Shelly] Device SHSW-PM 76EC31 came online [8/24/2020, 11:08:41 AM] [Shelly] Loading settings for device SHSW-PM 76EC31 [8/24/2020, 11:08:41 AM] [Shelly] Device SHPLG-S 698897 came online [8/24/2020, 11:08:41 AM] [Shelly] Loading settings for device SHPLG-S 698897 [8/24/2020, 11:08:41 AM] [Shelly] Device SHPLG-S 7A2FC5 came online [8/24/2020, 11:08:41 AM] [Shelly] Loading settings for device SHPLG-S 7A2FC5 [8/24/2020, 11:08:41 AM] [Shelly] Device SHSW-25 B94F37 came online [8/24/2020, 11:08:41 AM] [Shelly] Loading settings for device SHSW-25 B94F37 [8/24/2020, 11:08:42 AM] [Tahoma] RESP : {"success":true,"roles":[{"name":"ENDUSER"}]} [8/24/2020, 11:08:42 AM] [Tahoma] 5 device(s) found [8/24/2020, 11:08:42 AM] [Tahoma] [Box] type: Pod > Pod, protocol: internal [8/24/2020, 11:08:42 AM] [Tahoma] No definition found for Pod > Pod in mapping.json file [8/24/2020, 11:08:42 AM] [Tahoma] [SUNEA io] type: Awning > PositionableHorizontalAwning, protocol: io [8/24/2020, 11:08:42 AM] [Tahoma] Instanciate SUNEA io as WindowCovering [8/24/2020, 11:08:42 AM] [Tahoma] [OGP KNX Bridge] type: ProtocolGateway > DynamicBridge, protocol: ogp [8/24/2020, 11:08:42 AM] [Tahoma] No definition found for ProtocolGateway > DynamicBridge in mapping.json file [8/24/2020, 11:08:42 AM] [Tahoma] [OGP Siegenia Bridge] type: ProtocolGateway > DynamicBridge, protocol: ogp [8/24/2020, 11:08:42 AM] [Tahoma] No definition found for ProtocolGateway > DynamicBridge in mapping.json file [8/24/2020, 11:08:42 AM] [Tahoma] [OGP Intesis Bridge] type: ProtocolGateway > DynamicBridge, protocol: ogp [8/24/2020, 11:08:42 AM] [Tahoma] No definition found for ProtocolGateway > DynamicBridge in mapping.json file [8/24/2020, 11:08:42 AM] Initializing platform accessory 'SUNEA io'... Setup Payload: X-HM://0024L0VQPF5ON Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ xxx-xxx-xxx-xxx-xxx │     
└────────────┘     

[8/24/2020, 11:08:42 AM] Homebridge is running on port 51944. [8/24/2020, 11:08:45 AM] [Shelly] brightness of device SHDM-1 F35D41 changed to 15 [8/24/2020, 11:08:45 AM] [Shelly] Device SHDM-1 F35D41 came online [8/24/2020, 11:08:45 AM] [Shelly] Loading settings for device SHDM-1 F35D41 [8/24/2020, 11:08:45 AM] [Shelly] brightness of device SHDM-1 F36755 changed to 100 [8/24/2020, 11:08:45 AM] [Shelly] Device SHDM-1 F36755 came online [8/24/2020, 11:08:45 AM] [Shelly] Loading settings for device SHDM-1 F36755 [8/24/2020, 11:08:45 AM] [Shelly] Device SHSW-PM 76E39F came online [8/24/2020, 11:08:45 AM] [Shelly] Loading settings for device SHSW-PM 76E39F [8/24/2020, 11:09:14 AM] [Shelly] Setting relay0 of device SHSW-1 8CAAB50613E3 to true [8/24/2020, 11:09:15 AM] [Shelly] relay0 of device SHSW-1 8CAAB50613E3 changed to true [8/24/2020, 11:09:26 AM] [Server Temp.] update currentTemperatureCharacteristic value: 40 [8/24/2020, 11:09:27 AM] [Shelly] Setting relay0 of device SHSW-1 8CAAB50613E3 to false [8/24/2020, 11:09:29 AM] [Server Temp.] update currentTemperatureCharacteristic value: 40 [8/24/2020, 11:09:29 AM] [Server Temp.] update currentTemperatureCharacteristic value: 40 [8/24/2020, 11:09:33 AM] [Server Temp.] update currentTemperatureCharacteristic value: 40 [8/24/2020, 11:09:41 AM] [Server Temp.] update currentTemperatureCharacteristic value: 40 [8/24/2020, 11:09:59 AM] [Shelly] temperature of device SHHT-1 B89455 changed to 20.38 [8/24/2020, 11:09:59 AM] [Shelly] humidity of device SHHT-1 B89455 changed to 79 [8/24/2020, 11:09:59 AM] [Shelly] battery of device SHHT-1 B89455 changed to 100 % [8/24/2020, 11:09:59 AM] [Shelly] Device SHHT-1 B89455 came online [8/24/2020, 11:09:59 AM] [Shelly] Loading settings for device SHHT-1 B89455 [8/24/2020, 11:10:10 AM] [Shelly] relay0 of device SHSW-1 8CAAB50613E3 changed to false [8/24/2020, 11:10:39 AM] [Shelly] Setting relay0 of device SHSW-1 8CAAB50613E3 to true [8/24/2020, 11:10:40 AM] [Shelly] relay0 of device SHSW-1 8CAAB50613E3 changed to true [8/24/2020, 11:10:41 AM] [Server Temp.] update currentTemperatureCharacteristic value: 40 [8/24/2020, 11:10:49 AM] [Shelly] Setting relay0 of device SHSW-1 8CAAB50613E3 to false [8/24/2020, 11:11:14 AM] [Shelly] Setting relay0 of device SHSW-1 8CAAB50613E3 to false [8/24/2020, 11:11:31 AM] [Server Temp.] update currentTemperatureCharacteristic value: 40 [8/24/2020, 11:11:34 AM] [Server Temp.] update currentTemperatureCharacteristic value: 40 [8/24/2020, 11:11:34 AM] [Server Temp.] update currentTemperatureCharacteristic value: 40 [8/24/2020, 11:11:41 AM] [Server Temp.] update currentTemperatureCharacteristic value: 40 [8/24/2020, 11:11:43 AM] [Shelly] Setting relay0 of device SHSW-1 8CAAB50613E3 to false [8/24/2020, 11:11:44 AM] [Server Temp.] update currentTemperatureCharacteristic value: 40 [8/24/2020, 11:11:46 AM] [Shelly] relay0 of device SHSW-1 8CAAB50613E3 changed to false [8/24/2020, 11:11:46 AM] [Server Temp.] update currentTemperatureCharacteristic value: 40 [8/24/2020, 11:12:41 AM] [Server Temp.] update currentTemperatureCharacteristic value: 39

danny1605 commented 4 years ago

@alexryd hello something new about my valve status problem ?

alexryd commented 4 years ago

Looks like you are not receiving CoAP status messages properly (only now and then). See this page for an explanation why this is happening and how you can troubleshoot it.

danny1605 commented 4 years ago

@alexryd hello i have performed the linked troubleshoot. And I get an output for all commands. I think everything is okay with my network.

tcpdump -s0 dst 224.0.1.187------>

19:20:56.743035 IP Ventil1.fritz.box.5683 > 224.0.1.187.5683: UDP, length 107 19:20:56.745123 IP Ventil3.fritz.box.5683 > 224.0.1.187.5683: UDP, length 107 19:20:56.750361 IP Ventil2.fritz.box.5683 > 224.0.1.187.5683: UDP, length 107

shellies listen--------------------------->

[Device discovered] 2020-08-27T17:22:31.176Z Model: Shelly 1 ID: 8CAAB50613E3 Host: 192.168.178.130 Property: relay0 Value: false Property: input0 Value: 1 Property: inputEvent0 Value: L Property: inputEventCounter0 Value: 1 Property: externalTemperature0 Value: null Property: externalTemperature1 Value: null Property: externalTemperature2 Value: null Property: externalHumidity Value: null Property: externalInput0 Value: null

[Device discovered] 2020-08-27T17:22:31.179Z Model: Shelly 1 ID: 98F4ABD0C3B6 Host: 192.168.178.131 Property: relay0 Value: false Property: input0 Value: 1 Property: inputEvent0 Value: L Property: inputEventCounter0 Value: 1 Property: externalTemperature0 Value: null Property: externalTemperature1 Value: null Property: externalTemperature2 Value: null Property: externalHumidity Value: null Property: externalInput0 Value: null

[Device discovered] 2020-08-27T17:22:31.186Z Model: Shelly 1 ID: 8CAAB5061642 Host: 192.168.178.129 Property: relay0 Value: false Property: input0 Value: 1 Property: inputEvent0 Value: L Property: inputEventCounter0 Value: 1 Property: externalTemperature0 Value: null Property: externalTemperature1 Value: null Property: externalTemperature2 Value: null Property: externalHumidity Value: null Property: externalInput0 Value: null


tcpdump -s0 dst 224.0.1.187 and port 5683 ---------------->

�SHSW-PM#76E39F#2�C��r�{"G":[[0,9103,0],[0,1101,0],[0,2101,0],[0,2102,""],[0,2103,0],[0,4101,0.00],[0,4103,0],[0,6102,0],[0,6109,0.00],[0,3104,39.56],[0,3105,103.21],[0,6101,0]]}P�i�cits� �SHSW-PM#76BFC3#2�C��Z�{"G":[[0,9103,0],[0,1101,0],[0,2101,0],[0,2102,""],[0,2103,0],[0,4101,0.00],[0,4103,0],[0,6102,0],[0,6109,0.00],[0,3104,31.21],[0,3105,88.18],[0,6101,0]]}P}��cits� �SHSW-PM#F2FC33#2�C��}�{"G":[[0,9103,0],[0,1101,0],[0,2101,0],[0,2102,""],[0,2103,0],[0,4101,0.00],[0,4103,0],[0,6102,0],[0,6109,0.00],[0,3104,42.97],[0,3105,109.34],[0,6101,0]]}P�p�cits�

and that goes on for over 1000 pages

alexryd commented 4 years ago

When running shellies listen, do you see any updates when opening and closing your valve? Are you running these commands from the same device that you are running homebridge on?

danny1605 commented 4 years ago

@alexryd yes i can see it, and yes i ruuning these commands on the same device.

[Property changed] 2020-08-28T07:56:20.630Z Property: relay0 Value: true Device ID: 8CAAB50613E3 [Property changed] 2020-08-28T07:56:21.547Z Property: relay0 Value: false Device ID: 8CAAB50613E3 [Property changed] 2020-08-28T07:56:22.485Z Property: relay0 Value: true Device ID: 8CAAB50613E3 [Property changed] 2020-08-28T07:56:23.454Z Property: relay0 Value: false Device ID: 8CAAB50613E3

danny1605 commented 4 years ago

@alexryd all shellys working perfect, (CoAP and multicast) including the shelly 1. only when I set this shelly 1 into the status valve it doesn't work correct. on/off works but only in homkit, the loading bar that rotates with the status wait. do you think there might be a problem with the plugin ??

ttopholm commented 3 years ago

@alexryd any news on this one....

danny1605 commented 3 years ago

Hello have now implemented the whole thing with mongoose-os-apps / shelly-homekit and it works perfect! The the status indicator work properly, and you have many more options.

---> https://github.com/mongoose-os-apps/shelly-homekit

At the moment it only works with the alpha version which is still being tested

--> Testing: https://github.com/mongoose-os-apps/shelly-homekit/issues/498 --> Firmware: http://rojer.me/files/shelly/2.8.0-alpha1/