vectronic / homebridge-nut

Homebridge plugin for NUT (Network UPS Tools) Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid characteristics for accessory

hdmvide opened this issue · comments

The accessory is correctly identified as a contact sensor on Homekit, but when I try to create an automation that detects the status of the "contact sensor", the selectable characteristic is only "temperature" instead of "opened" or " closed".

Hmm that is weird. This is what I see when I start creating an Automation which is ‘A sensor detects something’ and then choose the UPS accessory:

D1167D02-3694-43CA-BD75-AB2154178753

This is what see when looking at the details for the accessory:

C1CF2930-EC7B-4087-888B-CD924BA21F4C

Do you see something different?

I have tried removing and adding the accessory from the configuration file and restarting Homebridge several times, and after several attempts Homebridge has associated the correct characteristic for the contact sensor accessory

I don't understand if there is a bug in Hombridge when it loads multiple characteristics for accessories, or if it's a plugin bug.

Thank you

@hdmvide can you tell me if your UPS accessory provides a temperature reading? My UPS doesn’t do there is a possibility it is an issue in the plug-in code which only manifests if the UPS supports retiring temp information.

I have the Ippon Back Basic UPS and I have same issue. This UPS provides the temperature. I think, it’s a fake parameter, because it show 25C only:

ups.productid: 5161
ups.status: OL
ups.temperature: 25.0
ups.type: offline / line interactive
ups.vendorid: 0665

1F1DABAA-2BBE-4BBA-80A8-4047FBE5D0A5

On the weekend I will try to move the temperature characteristic away from the contactsensor service definition and onto a new temperaturesensor service. If this doesn't help, I will just remove it entirely....

Made changes and removed CurrentTemperature Characteristic. @AndySwitcher see if it works for you. @vectronic/homebridge-nut v2.4.1

You might need to remove homebridge-nut from Homebridge config, restart Homebridge, add homebridge-nut again and restart Homebridge again.

I was updated the plugin today and this working for me. Thank you!

DEFD4C68-2382-4BAA-87B1-2726EB4A1ED5