Closed DJay-X closed 5 years ago
Never mind. I found a reliable working solution with gatttool and homebridge-cmdswitch2 Plugin So no need for this plugin anymore. All the best to you.
{
"platform": "cmdSwitch2",
"name": "Licht",
"switches": [
{
"name": "Spiegelschrank",
"on_cmd": "gatttool -t random -b C5:6B:4E:21:7C:6B --char-write-req -a 0x0016 -n 570101",
"off_cmd": "gatttool -t random -b C5:6B:4E:21:7C:6B --char-write-req -a 0x0016 -n 570102",
"timeout": 2000,
"manufacturer": "Wonderlabs",
"model": "SwitchBot",
"serial": "C5:6B:4E:21:7C:6B"
},
{
"name": "Eingangsbereich",
"on_cmd": "gatttool -t random -b BB:81:D1:31:01:DE --char-write-req -a 0x0016 -n 570101",
"off_cmd": "gatttool -t random -b BB:81:D1:31:01:DE --char-write-req -a 0x0016 -n 570102",
"timeout": 2000,
"manufacturer": "Wonderlabs",
"model": "SwitchBot",
"serial": "BB:81:D1:31:01:DE"
}
]
},
@yujinakayama First of all I would like to politely ask if you made the plugin exclusively for yourself and are therefore not interested in any further development or compatibility for other users, or if you have the time, desire and opportunity for future adjustments? Of course a use only by you and no "support" for others is also absolutely okay, only for the community to know then also good. Not that we hope in vain for adjustments, also invest time from our side into the research as well and inform you here. At least in my case, I don't want to bother you.
Now to the issue I noticed on my system. I run your plugin on a Pi Zero W. And it seems to work from installation to a quick test. Unfortunately it only works to trigger the switch one to two time only, then doing nothing. The log is not showing much and no error. But not sure how I get more details.
Anyway, basic is working for a moment 1-2 switch then not responding. But the App (Eve HomeKit) is not showing an error and I still can switch but without reaction on the SwitchBot.
Also I noticed, when I enable "light switch Add-on" mode to have the on/off feature in SwitchBot App, the Plugin isn't doing anything at all. Is it not compatible with this mode?
Thanks again for the time you are investing and for your reply, at least for the first point if you have a passion for the further development of the plugin.