iomax / homebridge-mqttgaragedoor

Homebridge accessory plugin that create an HomeKit Garage Door Opener mapped on MQTT topics
Apache License 2.0
8 stars 9 forks source link

As gate opener? #4

Closed timhng closed 6 years ago

timhng commented 6 years ago

I’ve now got mqttgaragedoor working beautifully with my garage door and Reed switch. I can now replicate the same setup for my electric gate. The only issue I see is purely cosmetic - the icon in the Apple Home app will be a garage door instead of a gate. Is there any way of changing this icon?

iomax commented 6 years ago

Never tried before anyway I'd try changing the service type declaration in index.js, ( row 79 ), from

this.garageDoorOpener = new Service.GarageDoorOpener(this.name);

to

this.garageDoorOpener = new Service.Door(this.name);

aquadat0r commented 6 years ago

@timhng +1 on this idea

timhng commented 6 years ago

Thanks @iomax, so I clone the project and make the code change locally. Then how do I run the new code when the original version is already installed?

iomax commented 6 years ago

I'd make the changes to the code already cloned locally and when ready to run, npm install -g ./homebridge-mqttgaragedoor should reinstall it over the previous/original one.