Supereg / homebridge-http-switch

Powerful http switch for Homebridge: https://github.com/homebridge/homebridge
ISC License
219 stars 36 forks source link

Individual Serialnumber #55

Closed RaiPos closed 4 years ago

RaiPos commented 4 years ago

Hello,

is it possible to add a parameter/value to set individual serial numbers to each switch? Because i.e. the EVE app has troubles with devices having all the same serial number.

edit: I have tested it by edit line number 305 in index.js and it works now in EVE app: .setCharacteristic(Characteristic.SerialNumber, this.name)

But i think to assign an individual serial number would be the nicer way. :)

Thanks

mbierman commented 4 years ago

Maybe I'm not following what you are getting at. It seems each named switch is be treated separately. Just give it a different name.

RaiPos commented 4 years ago

in apple home everything works as expected. but when you use "eve app" (i like the interface much more), the switches are identified by serial number. so if you want to add one switch to your favourites, every switch with the same serial number (in this case "SW01") will be added and you're not able to select only one. in this case it would be nice if it's possible to set the serial number via config.

hope you can understand what i mean. :)

Supereg commented 4 years ago

Are you running the latest version of the Eve App? Cause I remember that they did fix that issue?

RaiPos commented 4 years ago

yes, version 4.2.2 (5 days old)

mbierman commented 4 years ago

Strange I’m not having that problem.

mbierman commented 4 years ago

Works o.k. for me in Eve. What problem are you seeing?

RaiPos commented 4 years ago

Sorry for my late answer, i have tested different settings and always got the same result. When using standard serial number "SW01" for all devices (like in the original code) i can not add only one switch to my favourites (see my attached pictures). I tried to reset my homebridge and readd all HTTP-SWITCHES again, same result. After edit the code (like in my post before) it is possible and works fine.

01 02 03

mbierman commented 4 years ago

@RainhardPosch Does the switch serial number matter? If I duplicate a switch, I see both in Eve and they work. I haven't tried setting up to see if they properly control separate things though.

RaiPos commented 4 years ago

it seems that the serial number only matters in the favourites tab. when switches have the same serial number it is not possible to add a single one but the operational function is given (i can trigger each switch separatly).

in the rooms tab instead the switches are separated correctly.

Supereg commented 4 years ago

A new serialNumber property was added to v0.5.31 in order to define custom serial numbers. Sorry for the delay.