vectronic / homebridge-nut

Homebridge plugin for NUT (Network UPS Tools) Client
19 stars 3 forks source link

Serial Number': [Serial Number] characteristic must have a length of more than 1 character otherwise HomeKit will reject this accessory, ignoring new value. #10

Closed Ademarchis closed 2 years ago

Ademarchis commented 2 years ago

I have this error in my Homebridge log: Serial Number': [Serial Number] characteristic must have a length of more than 1 character otherwise HomeKit will reject this accessory, ignoring new value. Is possible resolve the error?

vectronic commented 2 years ago

Yes - I should be able to fix that. Give me a week or so...

Ademarchis commented 2 years ago

Ok Thank you, I wait your news.

Alessandro

Il giorno 12 mar 2022, alle ore 14:28, vectronic @.***> ha scritto:

Yes - I should be able to fix that. Give me a week or so...

— Reply to this email directly, view it on GitHub https://github.com/vectronic/homebridge-nut/issues/10#issuecomment-1065883688, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYGCOJ63XN2NCTRGDNK6T3TU7SLYZANCNFSM5QR2Q2LQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.

vectronic commented 2 years ago

Try v2.4.4 - I am checking for empty strings on some of the characteristic values now...

Ademarchis commented 2 years ago

thank you very much now it's correct! Can I ask you if there is the possibility of expressing some more data? such as the internal temperature of the ups, battery life, ups status, etc? the data in question are already present in the nut and it would be sufficient to expose them if possible.

if you need to do some tests I am available.

Alessandro

Il giorno 13 mar 2022, alle ore 22:19, vectronic @.***> ha scritto:

 Try v2.4.4 - I am checking for empty strings on some of the characteristic values now...

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.

vectronic commented 2 years ago

You should already be getting these details in homekit. See the logic here:

https://github.com/vectronic/homebridge-nut/blob/master/src/platform.ts#L159

and a screenshot here:

F46603F8-A56B-40E3-A58F-7ADF0622B51B

if you think you should be seeing temperature (my ups does not provide it) check that you actually get it from nut client first and maybe send me debug logs from homebridge.

vectronic commented 2 years ago

Closing this. Open another one for anything else.