ilcato / homebridge-mqttswitch

Homebridge accessory plugin that create an HomeKit Switch based on MQTT topics
Apache License 2.0
31 stars 41 forks source link

MQTT device status not updated in the HomeKit app #5

Closed iomax closed 8 years ago

iomax commented 8 years ago

I'm working on a homemade ESP8266 device, able to interact with homebridge server thanks to the mqttswitch plugin. Everything goes right if the homekit app ( eve or idevice in this case ) is up and running at the device change status time ( some port up or down as needed ) and the various homekit apps rightly show the port change status. Unfortunately it's not true if the change occur when home kit apps was not running so that at the app start, it doesn't report the current/updated status of the device. Maybe something related to the "statusGet" parameter but I'm unable to identify the issue even spying the various mqtt msg ( no "statusGet" topic fired ).

Please could you help/address me to solve the issue ?

Following you will find the accessories part of the config.json file for my setup :

"platforms": [
],

"accessories": [
    {
            "accessory": "mqttswitch",
            "name": "Light",
            "url": "mqtt://c1p8.lan",
            "username": "",
            "password": "",
            "caption": "light",
            "topics": {
                    "statusGet":    "salahobby/statusGet/1",
                    "statusSet":    "salahobby/statusSet/1"
                    }
    }
    ]

Thanks

iomax commented 8 years ago

As usual, nothing changed and the day after the problem seems be solved by itself, and everything is working as expected.

Thanks you