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

How to pass message to topic #2

Closed hubbardsw closed 6 years ago

hubbardsw commented 6 years ago

I have an ESP 8266 that works just fine in mqtt when using as a regular switch. I pass "1" to the setStatus topic activate a relay for a garage door. However, in your plugin, what value is being passed to the setStatus by default and how to I override it to send message "1"?

Nothing I try works

iomax commented 6 years ago

Please try with "on" value. Unfortunately, at this time, if you can not manage it in your esp8266 code, you have to change it inside the homebridge-mqttgaragedoor code ( index.js - row 204 ).

MrBalonio commented 6 years ago

This is resolved by https://github.com/iomax/homebridge-mqttgaragedoor/pull/7/

Please merge