homebridge-shelly icon indicating copy to clipboard operation
homebridge-shelly copied to clipboard

[Bug] DW2 sensor - characteristic was supplied illegal value

Open MrMysakovich opened this issue 3 years ago • 24 comments

Hi,

After latest update of Shelly Door Windows sensor to v 1.11.1 I get this messages:
Screen Shot 2021-07-28 at 16 24 40

This messages I got, when first installed DW2 sensor without update. After updating It was OK, but then It was new update and it started to do it again.

If somebody look at it I will be happy :-)

MrMysakovich avatar Jul 28 '21 14:07 MrMysakovich

I have the same problem what you describe here with my shelly H&T.

danny1605 avatar Aug 01 '21 07:08 danny1605

Yes It is probably because of latest update of FW.

MrMysakovich avatar Aug 01 '21 07:08 MrMysakovich

You are certainly right, I hope that there will be an upgrade to the plugin soon.

danny1605 avatar Aug 01 '21 07:08 danny1605

The same here! H&T battery level shows „illegal value“ error. This value seems to be not transmitted correctly to Homebridge. H&T Sensor running latest FW v1.11.1 F4BB2F9D-DCB9-4DBF-92CD-AFF18DD61836

apartmedia avatar Aug 01 '21 11:08 apartmedia

Why is the battery level -1? Are you using an external power supply?

alexryd avatar Aug 01 '21 14:08 alexryd

No, it started to show this after latest update of FW. I use it same way as before. Something has to do it with newer firmware… EDIT: Asking now tech team of Shelly what they changed in latest FW, so you can fix it easily.

MrMysakovich avatar Aug 01 '21 14:08 MrMysakovich

Why is the battery level -1? Are you using an external power supply?

Yes these three sensors using external usb power supply. Allterco announced some changes for the H&T regarding values published via CoIoT. I‘m not sure at the moment if these changes affecting the battery value, but I think that was one change as it was not possible to distinguish between battery and usb power via CoAP.

apartmedia avatar Aug 01 '21 18:08 apartmedia

I just published version 0.18.1 that should remove these warnings. As for the battery level, it will probably be shown as 0% when using a usb power supply so I guess this can be improved further.

alexryd avatar Aug 01 '21 19:08 alexryd

I just published version 0.18.1 that should remove these warnings. As for the battery level, it will probably be shown as 0% when using a usb power supply so I guess this can be improved further.

0.18.1 is showing 0% battery level when the device is configured for external usb power supply. May be it‘s possible to set it to 100% fix if the configuration is set to external power supply and at the same time transmitting value -1? That could cover this scenario.

apartmedia avatar Aug 01 '21 21:08 apartmedia

I found another error message regarding illegal values for the ambient level of the Shelly Motion Sensor. Is this related and also fixable? 78BA60BF-3A85-4894-B5D6-A3486528C895

apartmedia avatar Aug 01 '21 21:08 apartmedia

I found another error message regarding illegal values for the ambient level of the Shelly Motion Sensor. Is this related and also fixable? 78BA60BF-3A85-4894-B5D6-A3486528C895

That’s exactly what I have with DW 2 sensor too.

MrMysakovich avatar Aug 02 '21 05:08 MrMysakovich

I just published version 0.18.1 that should remove these warnings. As for the battery level, it will probably be shown as 0% when using a usb power supply so I guess this can be improved further.

My Shelly H&T works with external power and in HomeKit I still get the battery warning that it is empty at 0%.

danny1605 avatar Aug 02 '21 06:08 danny1605

My Shelly H&T works with external power and in HomeKit I still get the battery warning that it is empty at 0%.

That’s what Alex said, 0.18.1 is showing 0% battery level when device is usb powered and this needs further improvement.

apartmedia avatar Aug 02 '21 07:08 apartmedia

@apartmedia @MrMysakovich That error was fixed in 0.18.1. Perhaps the illegal value is cached. What happens when your DW2 reports a different light level?

alexryd avatar Aug 02 '21 18:08 alexryd

@apartmedia @MrMysakovich That error was fixed in 0.18.1. Perhaps the illegal value is cached. What happens when your DW2 reports a different light level?

I checked it again. Sorry for my mistake I forgot to update to latest version. After update everything is OK. So for me, bug is fixed. Thank you :-)

MrMysakovich avatar Aug 02 '21 20:08 MrMysakovich

@apartmedia @danny1605 I've now released version 0.19.0 that sets the battery level to 100% when running on an external power supply.

alexryd avatar Aug 06 '21 19:08 alexryd

@apartmedia @danny1605 I've now released version 0.19.0 that sets the battery level to 100% when running on an external power supply.

Thx

danny1605 avatar Aug 06 '21 19:08 danny1605

@apartmedia @danny1605 I've now released version 0.19.0 that sets the battery level to 100% when running on an external power supply.

Seems to work fine. Great job. Thanx.

apartmedia avatar Aug 07 '21 05:08 apartmedia

Hi, I have vibration detection turned off, but still get motion sensor trigger in HomeKit. Can you fix it?

Or it is ok to show some time, that motion was detected that somebody opened door or window, this is OK, but when will disappear?

2FA03CB5-DD1E-42D3-80EF-A94E4C9347A0

MrMysakovich avatar Aug 07 '21 06:08 MrMysakovich

Same here

andyblac avatar Aug 07 '21 12:08 andyblac

@MrMysakovich @andyblac If you update to 0.19.1 the motion sensor should no longer be triggered when vibration is disabled.

alexryd avatar Aug 10 '21 10:08 alexryd

@alexryd yup, now no false motion, thanks.

andyblac avatar Aug 10 '21 11:08 andyblac

@MrMysakovich @andyblac If you update to 0.19.1 the motion sensor should no longer be triggered when vibration is disabled.

Perfect! :-) Thank you

MrMysakovich avatar Aug 10 '21 12:08 MrMysakovich

@apartmedia @danny1605 I've now released version 0.19.0 that sets the battery level to 100% when running on an external power supply.

Just one hint regarding your fix for reporting the battery level on external usb power for the H&T. Alterco just announced a Beta of FW v1.11.4. They have again changed the battery level reporting when powering via usb. The new FW reports 100% instead of -1. So I think your fix needs to be rolled back or needs some change again as they will stop reporting -1🥴. May be you can extend your logic to either show the reported percentage (the case for the new FW) or 100% when -1 is reported (to still handle the current stable version as 1.11.4 is still beta and will probably not being installed immediately by everyone). Annoying back and forth from Allterco with changing the behavior so often.

This is the post explaining the Update

40045C4D-159D-450D-9C5B-2A9E783887D3

apartmedia avatar Aug 19 '21 09:08 apartmedia