Closed Ipnotik closed 3 years ago
Are you running the latest firmware on the Shellies? Does this happen all the time? What happens when you restart homebridge?
Hello Alex, thanks for your answer: yes I'm running latest Shelly's firmware and yes it happens all the time even if I completely reinstall homebridge and when I restart it nothing changes.
L
You could try installing the shellies library using $ npm install -g shellies
and the running $ shellies listen
to see what updates your devices are sending. That might tell you if status updates are being sent when a device stops.
Hello,
i have the same issue with my Shelly 2.5.
Run homebridge with the -D
option to enable debug output. Then look at the log to see what is happening when you open and close your blinds.
What do you mean with the first sentence?
When you run homebridge, you can give it the -D
flag, like so: $ homebridge -D
.
Have you tried recalibrating the 2.5s after updating to the latest firmware?
Same issue here. Recalibrating nothing helped.
Setting Roller-Shutter (via iOS) to position 38, and this is the debug output:
Sep 24 18:12:44 raspberrypi homebridge[3679]: Tue, 24 Sep 2019 16:12:44 GMT EventedHTTPServer [::ffff:192.168.178.57] HTTP request: /characteristics
Sep 24 18:12:44 raspberrypi homebridge[3679]: Tue, 24 Sep 2019 16:12:44 GMT HAPServer [CC:22:3D:E3:CE:10] HAP Request: PUT /characteristics
Sep 24 18:12:44 raspberrypi homebridge[3679]: Tue, 24 Sep 2019 16:12:44 GMT Accessory [HomeBridge] Processing characteristic set: [{"aid":9,"iid":10,"value":38}]
Sep 24 18:12:44 raspberrypi homebridge[3679]: Tue, 24 Sep 2019 16:12:44 GMT Accessory [HomeBridge] Setting Characteristic "Target Position" to value 38
Sep 24 18:12:44 raspberrypi homebridge[3679]: 2019-09-24T16:12:44.354Z superagent GET 192.168.178.81/roller/0?go=to_pos&roller_pos=38
Sep 24 18:12:44 raspberrypi homebridge[3679]: 2019-09-24T16:12:44.399Z superagent GET 192.168.178.81/roller/0?go=to_pos&roller_pos=38 -> 200
Sep 24 18:12:44 raspberrypi homebridge[3679]: Tue, 24 Sep 2019 16:12:44 GMT EventedHTTPServer [::ffff:192.168.178.57] Muting event '9.10' notification for this connection since it originated here.
Sep 24 18:12:44 raspberrypi homebridge[3679]: Tue, 24 Sep 2019 16:12:44 GMT EventedHTTPServer [::ffff:192.168.178.37] Sending HTTP event '9.10' with data: {"characteristics":[{"aid":9,"iid":10,"value":38}]}
Sep 24 18:12:44 raspberrypi homebridge[3679]: Tue, 24 Sep 2019 16:12:44 GMT EventedHTTPServer [::ffff:192.168.178.25] Sending HTTP event '9.10' with data: {"characteristics":[{"aid":9,"iid":10,"value":38}]}
Sep 24 18:12:44 raspberrypi homebridge[3679]: Tue, 24 Sep 2019 16:12:44 GMT EventedHTTPServer [::ffff:192.168.178.57] HTTP Response is finished
Setting Roller-Shutter Position macOS
Sep 24 18:40:09 raspberrypi homebridge[3679]: Tue, 24 Sep 2019 16:40:09 GMT EventedHTTPServer [::ffff:192.168.178.25] HTTP request: /characteristics
Sep 24 18:40:09 raspberrypi homebridge[3679]: Tue, 24 Sep 2019 16:40:09 GMT HAPServer [CC:22:3D:E3:CE:10] HAP Request: PUT /characteristics
Sep 24 18:40:09 raspberrypi homebridge[3679]: Tue, 24 Sep 2019 16:40:09 GMT Accessory [HomeBridge] Processing characteristic set: [{"aid":9,"iid":10,"value":25}]
Sep 24 18:40:09 raspberrypi homebridge[3679]: Tue, 24 Sep 2019 16:40:09 GMT Accessory [HomeBridge] Setting Characteristic "Target Position" to value 25
Sep 24 18:40:09 raspberrypi homebridge[3679]: 2019-09-24T16:40:09.273Z superagent GET 192.168.178.81/roller/0?go=to_pos&roller_pos=25
Sep 24 18:40:09 raspberrypi homebridge[3679]: 2019-09-24T16:40:09.311Z superagent GET 192.168.178.81/roller/0?go=to_pos&roller_pos=25 -> 200
Sep 24 18:40:09 raspberrypi homebridge[3679]: Tue, 24 Sep 2019 16:40:09 GMT EventedHTTPServer [::ffff:192.168.178.37] Sending HTTP event '9.10' with data: {"characteristics":[{"aid":9,"iid":10,"value":25}]}
Sep 24 18:40:09 raspberrypi homebridge[3679]: Tue, 24 Sep 2019 16:40:09 GMT EventedHTTPServer [::ffff:192.168.178.25] Muting event '9.10' notification for this connection since it originated here.
Sep 24 18:40:09 raspberrypi homebridge[3679]: Tue, 24 Sep 2019 16:40:09 GMT EventedHTTPServer [::ffff:192.168.178.90] Sending HTTP event '9.10' with data: {"characteristics":[{"aid":9,"iid":10,"value":25}]}
Sep 24 18:40:09 raspberrypi homebridge[3679]: Tue, 24 Sep 2019 16:40:09 GMT EventedHTTPServer [::ffff:192.168.178.25] HTTP Response is finished
Sep 24 18:40:09 raspberrypi homebridge[3679]: 2019-09-24T16:40:09.316Z socket.io:client writing packet {"type":2,"data":["accessories-data",[{"aid":9,"iid":8,"uuid":"0000008C-0000-1000-8000-0026BB765291","type":"WindowCovering","humanType":"Window Covering","serviceName":"Window Covering","serviceCharacteristics":[{"aid":9,"iid":9,"uuid":"0000006D-0000-1000-8000-0026BB765291","type":"CurrentPosition","serviceType":"WindowCovering","serviceName":"Window Covering","description":"Current Position","value":100,"format":"uint8","perms":["pr","ev"],"unit":"percentage","maxValue":100,"minValue":0,"minStep":1,"canRead":true,"canWrite":false,"ev":true},{"aid":9,"iid":10,"uuid":"0000007C-0000-1000-8000-0026BB765291","type":"TargetPosition","serviceType":"WindowCovering","serviceName":"Window Covering","description":"Target Position","value":25,"format":"uint8","perms":["pr","pw","ev"],"unit":"percentage","maxValue":100,"minValue":0,"minStep":1,"canRead":true,"canWrite":true,"ev":true},{"aid":9,"iid":11,"uuid":"00000072-0000-1000-8000-0026BB765291","type":"PositionState","serviceType":"WindowCovering","serviceName":"Window Covering","description":"Position State","value":2,"format":"uint8","perms":["pr","ev"],"maxValue":2,"minValue":0,"canRead":true,"canWrite":false,"ev":true}],"accessoryInformation":{"Manufacturer":"Shelly","Model":"SHSW-25","Name":"Shelly 2.5 00819B","Serial Number":"00819B","Firmware Revision":"1.5.3","Hardware Revision":"prod-2019-03"},"values":{"CurrentPosition":100,"TargetPosition":25,"PositionState":2},"instance":{"name":"HomeBridge","username":"CC:22:3D:E3:CE:10","port":51810,"services":[],"ipAddress":"192.168.178.90"},"uniqueId":"e29ebce3edbebf6a494e0318190f839addbcc9d12577403e706a30d6a2a5b944"}]],"nsp":"/accessories"}
Sep 24 18:40:09 raspberrypi homebridge[3679]: 2019-09-24T16:40:09.317Z socket.io-parser encoding packet {"type":2,"data":["accessories-data",[{"aid":9,"iid":8,"uuid":"0000008C-0000-1000-8000-0026BB765291","type":"WindowCovering","humanType":"Window Covering","serviceName":"Window Covering","serviceCharacteristics":[{"aid":9,"iid":9,"uuid":"0000006D-0000-1000-8000-0026BB765291","type":"CurrentPosition","serviceType":"WindowCovering","serviceName":"Window Covering","description":"Current Position","value":100,"format":"uint8","perms":["pr","ev"],"unit":"percentage","maxValue":100,"minValue":0,"minStep":1,"canRead":true,"canWrite":false,"ev":true},{"aid":9,"iid":10,"uuid":"0000007C-0000-1000-8000-0026BB765291","type":"TargetPosition","serviceType":"WindowCovering","serviceName":"Window Covering","description":"Target Position","value":25,"format":"uint8","perms":["pr","pw","ev"],"unit":"percentage","maxValue":100,"minValue":0,"minStep":1,"canRead":true,"canWrite":true,"ev":true},{"aid":9,"iid":11,"uuid":"00000072-0000-1000-8000-0026BB765291","type":"PositionState","serviceType":"WindowCovering","serviceName":"Window Covering","description":"Position State","value":2,"format":"uint8","perms":["pr","ev"],"maxValue":2,"minValue":0,"canRead":true,"canWrite":false,"ev":true}],"accessoryInformation":{"Manufacturer":"Shelly","Model":"SHSW-25","Name":"Shelly 2.5 00819B","Serial Number":"00819B","Firmware Revision":"1.5.3","Hardware Revision":"prod-2019-03"},"values":{"CurrentPosition":100,"TargetPosition":25,"PositionState":2},"instance":{"name":"HomeBridge","username":"CC:22:3D:E3:CE:10","port":51810,"services":[],"ipAddress":"192.168.178.90"},"uniqueId":"e29ebce3edbebf6a494e0318190f839addbcc9d12577403e706a30d6a2a5b944"}]],"nsp":"/accessories"}
Sep 24 18:40:09 raspberrypi homebridge[3679]: 2019-09-24T16:40:09.317Z socket.io-parser encoded {"type":2,"data":["accessories-data",[{"aid":9,"iid":8,"uuid":"0000008C-0000-1000-8000-0026BB765291","type":"WindowCovering","humanType":"Window Covering","serviceName":"Window Covering","serviceCharacteristics":[{"aid":9,"iid":9,"uuid":"0000006D-0000-1000-8000-0026BB765291","type":"CurrentPosition","serviceType":"WindowCovering","serviceName":"Window Covering","description":"Current Position","value":100,"format":"uint8","perms":["pr","ev"],"unit":"percentage","maxValue":100,"minValue":0,"minStep":1,"canRead":true,"canWrite":false,"ev":true},{"aid":9,"iid":10,"uuid":"0000007C-0000-1000-8000-0026BB765291","type":"TargetPosition","serviceType":"WindowCovering","serviceName":"Window Covering","description":"Target Position","value":25,"format":"uint8","perms":["pr","pw","ev"],"unit":"percentage","maxValue":100,"minValue":0,"minStep":1,"canRead":true,"canWrite":true,"ev":true},{"aid":9,"iid":11,"uuid":"00000072-0000-1000-8000-0026BB765291","type":"PositionState","serviceType":"WindowCovering","serviceName":"Window Covering","description":"Position State","value":2,"format":"uint8","perms":["pr","ev"],"maxValue":2,"minValue":0,"canRead":true,"canWrite":false,"ev":true}],"accessoryInformation":{"Manufacturer":"Shelly","Model":"SHSW-25","Name":"Shelly 2.5 00819B","Serial Number":"00819B","Firmware Revision":"1.5.3","Hardware Revision":"prod-2019-03"},"values":{"CurrentPosition":100,"TargetPosition":25,"PositionState":2},"instance":{"name":"HomeBridge","username":"CC:22:3D:E3:CE:10","port":51810,"services":[],"ipAddress":"192.168.178.90"},"uniqueId":"e29ebce3edbebf6a494e0318190f839addbcc9d12577403e706a30d6a2a5b944"}]],"nsp":"/accessories"} as 2/accessories,["accessories-data",[{"aid":9,"iid":8,"uuid":"0000008C-0000-1000-8000-0026BB765291","type":"WindowCovering","humanType":"Window Covering","serviceName":"Window Covering","serviceCharacteristics":[{"aid":9,"iid":9,"uuid":"0000006D-0000-1000-8000-0026BB765291","type":"CurrentPosition","serviceType":"WindowCovering","serviceName":"Window Covering","description":"Current Position","value":100,"format":"uint8","perms":["pr","ev"],"unit":"percentage","maxValue":100,"minValue":0,"minStep":1,"canRead":true,"canWrite":false,"ev":true},{"aid":9,"iid":10,"uuid":"0000007C-0000-1000-8000-0026BB765291","type":"TargetPosition","serviceType":"WindowCovering","serviceName":"Window Covering","description":"Target Position","value":25,"format":"uint8","perms":["pr","pw","ev"],"unit":"percentage","maxValue":100,"minValue":0,"minStep":1,"canRead":true,"canWrite":true,"ev":true},{"aid":9,"iid":11,"uuid":"00000072-0000-1000-8000-0026BB765291","type":"PositionState","serviceType":"WindowCovering","serviceName":"Window Covering","description":"Position State","value":2,"format":"uint8","perms":["pr","ev"],"maxValue":2,"minValue":0,"canRead":true,"canWrite":false,"ev":true}],"accessoryInformation":{"Manufacturer":"Shelly","Model":"SHSW-25","Name":"Shelly 2.5 00819B","Serial Number":"00819B","Firmware Revision":"1.5.3","Hardware Revision":"prod-2019-03"},"values":{"CurrentPosition":100,"TargetPosition":25,"PositionState":2},"instance":{"name":"HomeBridge","username":"CC:22:3D:E3:CE:10","port":51810,"services":[],"ipAddress":"192.168.178.90"},"uniqueId":"e29ebce3edbebf6a494e0318190f839addbcc9d12577403e706a30d6a2a5b944"}]]
Sep 24 18:40:09 raspberrypi homebridge[3679]: 2019-09-24T16:40:09.318Z engine:socket sending packet "message" (2/accessories,["accessories-data",[{"aid":9,"iid":8,"uuid":"0000008C-0000-1000-8000-0026BB765291","type":"WindowCovering","humanType":"Window Covering","serviceName":"Window Covering","serviceCharacteristics":[{"aid":9,"iid":9,"uuid":"0000006D-0000-1000-8000-0026BB765291","type":"CurrentPosition","serviceType":"WindowCovering","serviceName":"Window Covering","description":"Current Position","value":100,"format":"uint8","perms":["pr","ev"],"unit":"percentage","maxValue":100,"minValue":0,"minStep":1,"canRead":true,"canWrite":false,"ev":true},{"aid":9,"iid":10,"uuid":"0000007C-0000-1000-8000-0026BB765291","type":"TargetPosition","serviceType":"WindowCovering","serviceName":"Window Covering","description":"Target Position","value":25,"format":"uint8","perms":["pr","pw","ev"],"unit":"percentage","maxValue":100,"minValue":0,"minStep":1,"canRead":true,"canWrite":true,"ev":true},{"aid":9,"iid":11,"uuid":"00000072-0000-1000-8000-0026BB765291","type":"PositionState","serviceType":"WindowCovering","serviceName":"Window Covering","description":"Position State","value":2,"format":"uint8","perms":["pr","ev"],"maxValue":2,"minValue":0,"canRead":true,"canWrite":false,"ev":true}],"accessoryInformation":{"Manufacturer":"Shelly","Model":"SHSW-25","Name":"Shelly 2.5 00819B","Serial Number":"00819B","Firmware Revision":"1.5.3","Hardware Revision":"prod-2019-03"},"values":{"CurrentPosition":100,"TargetPosition":25,"PositionState":2},"instance":{"name":"HomeBridge","username":"CC:22:3D:E3:CE:10","port":51810,"services":[],"ipAddress":"192.168.178.90"},"uniqueId":"e29ebce3edbebf6a494e0318190f839addbcc9d12577403e706a30d6a2a5b944"}]])
Sep 24 18:40:09 raspberrypi homebridge[3679]: 2019-09-24T16:40:09.318Z engine:socket flushing buffer to transport
Sep 24 18:40:09 raspberrypi homebridge[3679]: 2019-09-24T16:40:09.318Z engine:ws writing "42/accessories,["accessories-data",[{"aid":9,"iid":8,"uuid":"0000008C-0000-1000-8000-0026BB765291","type":"WindowCovering","humanType":"Window Covering","serviceName":"Window Covering","serviceCharacteristics":[{"aid":9,"iid":9,"uuid":"0000006D-0000-1000-8000-0026BB765291","type":"CurrentPosition","serviceType":"WindowCovering","serviceName":"Window Covering","description":"Current Position","value":100,"format":"uint8","perms":["pr","ev"],"unit":"percentage","maxValue":100,"minValue":0,"minStep":1,"canRead":true,"canWrite":false,"ev":true},{"aid":9,"iid":10,"uuid":"0000007C-0000-1000-8000-0026BB765291","type":"TargetPosition","serviceType":"WindowCovering","serviceName":"Window Covering","description":"Target Position","value":25,"format":"uint8","perms":["pr","pw","ev"],"unit":"percentage","maxValue":100,"minValue":0,"minStep":1,"canRead":true,"canWrite":true,"ev":true},{"aid":9,"iid":11,"uuid":"00000072-0000-1000-8000-0026BB765291","type":"PositionState","serviceType":"WindowCovering","serviceName":"Window Covering","description":"Position State","value":2,"format":"uint8","perms":["pr","ev"],"maxValue":2,"minValue":0,"canRead":true,"canWrite":false,"ev":true}],"accessoryInformation":{"Manufacturer":"Shelly","Model":"SHSW-25","Name":"Shelly 2.5 00819B","Serial Number":"00819B","Firmware Revision":"1.5.3","Hardware Revision":"prod-2019-03"},"values":{"CurrentPosition":100,"TargetPosition":25,"PositionState":2},"instance":{"name":"HomeBridge","username":"CC:22:3D:E3:CE:10","port":51810,"services":[],"ipAddress":"192.168.178.90"},"uniqueId":"e29ebce3edbebf6a494e0318190f839addbcc9d12577403e706a30d6a2a5b944"}]]"
shellies status 192.168.178.81
Type: SHSW-25 ID: 00819B Host: 192.168.178.81
Property: powerMeter0 Value: 0
Property: relay0 Value: false
Property: internalTemperature Value: 51.05
Property: overheated Value: false
Property: input0 Value: 0
Property: powerMeter1 Value: 0
Property: relay1 Value: false
Property: input1 Value: 0
Property: mode Value: roller
Property: rollerPosition Value: 38
Property: rollerState Value: stop
Status: {"G":[[0,112,0],[0,122,0],[0,113,38],[0,111,0],[0,121,0],[0,118,0],[0,128,0],[0,115,51.05],[0,116,123.89],[0,117,0]]}
In home bridge the status is:
Window Covering |
-- | --
Current Position | 100%
Target Position | 38%
At apple home-app the shutter is still "closing..." BUT: When I restart the home bridge the status is right.
+1
i see in your code
if (state === 'stop') { targetPosition = position } else if (state === 'open' && this.targetPosition <= position) { // we don't know what the target position is here, but we set it // to 100 so that the interface shows that the roller is opening targetPosition = 100 } else if (state === 'close' && this.targetPosition >= position) { // we don't know what the target position is here, but we set it // to 0 so that the interface shows that the roller is closing targetPosition = 0 }
isn't it possible to set targetPosition = currentPosition after stop?
I have TP Link Deco M5 and I had to turn off beamforming feature.
I have the same issue, did anyone solve this?
Still having this issue. Any news?
Same issue here. homekit is showing „closing“. homebridge shows them greyish, but with the label „open“. I am not sure, but maybe its related to an automation?! When doing it manually it looks like its working fine.
Hi, since yesterday all my Shelly 2.5 devices remain in opening or closing status even if they stop to operate.