AMoo-Miki / homebridge-tuya-lan

Homebridge plugin for IoT devices that use Tuya Smart's platform
MIT License
204 stars 52 forks source link

Garage Door Sensor #257

Open FIRE-SORCERER opened 3 years ago

FIRE-SORCERER commented 3 years ago

Hey guys, I have a smart garage door sensor like the one here (https://www.bunnings.com.au/orion-grid-connect-smart-garage-door-controller-with-sensor_p0261686)

It comes with sensor that detect whether the door is opened or close by using magnets. Currently I have the door setup on homekit using this plugin but I was curious as to whether anyone has been able to make the sensors work and keep homekit up to date when the door is open or closed after manual use? I noticed there were some other plugins that have tried to implement this however, I would prefer to stay with this plugin.

Cheers, FIRE

Edit: I am fairly new to this and this programing language so I do apologise if this is plainly obvious or already a feature lol

FIRE-SORCERER commented 3 years ago

So at the moment my Config reads as follows:

                "name": "Garage Door",
                "type": "GarageDoor",
                "model": "Garage Door Controller",
                "id": "6969",
                "key": "6969",
                "dpAction": 1,
                "dpStatus": 101,
                "debug": true

Homebridge detects the changes to the Garage door from external sources i.e. pressing the remote or the button on the opener itself. However, homekit is not being updated. "[TuyaAccessory] GarageDoor changed: {"2":0,"3":true,"4":12,"5":60,"12":"unclosed_time"}"