alexryd / homebridge-shelly-ng

Homebridge plugin for the next generation of Shelly devices
GNU General Public License v3.0
121 stars 44 forks source link

Illegal value for Voltage characteristic #36

Closed IngmarStein closed 2 years ago

IngmarStein commented 2 years ago

I'm running version 1.4.1 of homebridge-shelly-ng and get a lot of warnings in the log about too large values for the Voltage characteristic:

[7/17/2022, 2:52:34 PM] [homebridge-shelly-ng] This plugin generated a warning from the characteristic 'Voltage': characteristic was supplied illegal value: number 252.7 exceeded maximum of 250. See https://homebridge.io/w/JtMGR for more info.
[7/17/2022, 2:52:46 PM] [homebridge-shelly-ng] This plugin generated a warning from the characteristic 'Voltage': characteristic was supplied illegal value: number 252.7 exceeded maximum of 250. See https://homebridge.io/w/JtMGR for more info.
[7/17/2022, 2:53:02 PM] [homebridge-shelly-ng] This plugin generated a warning from the characteristic 'Voltage': characteristic was supplied illegal value: number 252.7 exceeded maximum of 250. See https://homebridge.io/w/JtMGR for more info.
[7/17/2022, 2:53:18 PM] [homebridge-shelly-ng] This plugin generated a warning from the characteristic 'Voltage': characteristic was supplied illegal value: number 252.6 exceeded maximum of 250. See https://homebridge.io/w/JtMGR for more info.
[7/17/2022, 2:53:34 PM] [homebridge-shelly-ng] This plugin generated a warning from the characteristic 'Voltage': characteristic was supplied illegal value: number 252.8 exceeded maximum of 250. See https://homebridge.io/w/JtMGR for more info.

Those values don't look plausible to me.

alexryd commented 2 years ago

With version 1.4.2 you should no longer see these warnings.

IngmarStein commented 2 years ago

That was quick!

Unfortunately, I still get these warnings with 1.4.2:

[7/17/2022, 3:13:43 PM] [Shelly NG] Process Ended. Code: 143, Signal: null
[7/17/2022, 3:13:50 PM] [Shelly NG] Restarting Process...
[7/17/2022, 3:13:50 PM] [Shelly NG] Launched child bridge with PID 29610
[7/17/2022, 3:13:50 PM] Registering platform 'homebridge-shelly-ng.ShellyNG'
[7/17/2022, 3:13:51 PM] [Shelly NG] Loaded homebridge-shelly-ng v1.4.2 child bridge successfully
[7/17/2022, 3:13:51 PM] Loaded 3 cached accessories from cachedAccessories.x.
[7/17/2022, 3:13:51 PM] Homebridge v1.5.0 (HAP v0.10.2) (Shelly NG) is running on port 59499.
[7/17/2022, 3:13:51 PM] [Shelly NG] mDNS device discovery started
[7/17/2022, 3:13:51 PM] [Shelly NG] [shellyplus1pm-x] Device added
[7/17/2022, 3:13:51 PM] [Shelly NG] [shellyplus1pm-x] Device added
[7/17/2022, 3:13:51 PM] [Shelly NG] [shellyplus2pm-x] Device added
[7/17/2022, 3:13:54 PM] [homebridge-shelly-ng] This plugin generated a warning from the characteristic 'Voltage': characteristic was supplied illegal value: number 250.5 exceeded maximum of 250. See https://homebridge.io/w/JtMGR for more info.
[7/17/2022, 3:14:09 PM] [homebridge-shelly-ng] This plugin generated a warning from the characteristic 'Voltage': characteristic was supplied illegal value: number 250.9 exceeded maximum of 250. See https://homebridge.io/w/JtMGR for more info.
alexryd commented 2 years ago

Ok, I suppose these values are cached by homebridge. Then you need to remove the accessory (preferably from the Config UI X Settings screen) and then restart homebridge again.

IngmarStein commented 2 years ago

Several hours later, the log messages have stopped. Either the value is now in the previous expected range or the cache has been refreshed. I'll close this for now, thanks again!