bwp91 / homebridge-govee

Homebridge plugin to integrate Govee devices into HomeKit.
MIT License
476 stars 49 forks source link

Wireless Buttons #730

Open mateen110110 opened 8 months ago

mateen110110 commented 8 months ago

Switch/button

Bluetooth

bwp91 commented 8 months ago

Hi @mateen110110

can you update to the beta version of the plugin? this device was already in the 'template' list meaning that debug logging should appear in the homebridge log when this device is controlled clicked.

Could you capture these logs and post them here?

Note that with this type of device, Homebridge/HomeKit will not be able to simulate a click on the device, only react. So the accessory would appear in HomeKit as a programmable switch meaning that you can associate scenes/automations. It would not appear as a switch to effectively simulate clicking the physical button.

bwp91 commented 8 months ago

Also (I don't know anything about this device type) - does it support anything further like double click or long click/press?

mateen110110 commented 8 months ago

@bwp91 thanks; I'm on the beta version. The problem is there's no logs generated when I click the govee button. I just see this when the plugin is loaded

[08/02/2024, 09:36:48] [Govee] [Button Sensor] initialising with options {}. [08/02/2024, 09:36:48] [Govee] [Button Sensor] initialised with id [XX:XX:XX] [H5122].

The device does show up in the home app - it just shows unsupported. The device is one press only. I should note it does require a govee hub and only supports BLE (my initial post is incorrectly stated "All")

IMG_2142 IMG_2143

mikedsahgdotnet commented 7 months ago

Hoping to get the H5126 wireless button added here. I put the beta version on my Hoobs Box:

3/3/2024, 3:19:19 PM Govee HOOBS Bridge Beta Loaded plugin 'homebridge-govee' 3/3/2024, 3:19:19 PM Govee HOOBS Bridge Beta Loading 1 platforms... 3/3/2024, 3:19:19 PM Govee HOOBS Bridge Beta Govee Initialising plugin v10.4.1-beta.1 | System linux | Node v16.19.1 | HB v1.6.0 | HAPNodeJS v0.11.0... .... 3/3/2024, 3:19:32 PM Govee HOOBS Bridge Beta Govee WARNING [Button Switch] is not currently supported, do create a Github issue with the following info: 3/3/2024, 3:19:19 PMGovee HOOBS Bridge BetaGoveePlugin initialised. Setting up accessories.... {"device":"XX:XX:XX:XX:XX:XX:XX:XX","deviceName":"Button Switch","model":"H5126","httpInfo":{"groupId":0,"device":"XX:XX:XX:XX:XX:XX:XX:XX","sku":"H5126","spec":"","versionHard":"1","versionSoft":"1","deviceName":"Button Switch","deviceExt":{"deviceSettings":"{\"address\":\"XX:XX:XX:XX:XX\",\"bleName\":\"XXXXXXXX\",\"ic\":0,\"sku\":\"H5126\",\"device\":\"XX:XX:XX:XX:XX:XX:XX:XX\",\"deviceName\":\"Button Switch\",\"versionHard\":\"1\",\"versionSoft\":\"1\",\"battery\":100,\"time\":1709505817570}","lastDeviceData":"{\"online\":true,\"bind\":true}","extResources":"{\"skuUrl\":\"https:..........-add_list_type_device_5126.png\",\"headOnImg\":\"\",\"headOnImgNew\":\"\",\"headOffImg\":\"\",\"headOffImgNew\":\"\",\"ext\":\"\",\"ic\":0}"},"share":0,"deviceId":XXXXXXXX,"goodsType":145,"attributesId":0,"supportScene":0}}

X'd out some identifying info.