Support for the "on" and "off" buttons on Hub 2? #28
-
Hi, thank you very much for creating this add-on, it's been working great for me. However, I didn't find a way to configure the "on" and "off" buttons of Hub 2 to trigger some HA automation for instance (the reason why I want to do this is because SwitchBot scenes do not allow conditions presently). Am I missing something or is this currently not supported, and in the latter case, will there potentially be support for it in the future? Thanks! Best regards, Ville |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Which of the following do you want to achieve?
For case 1, Hub 2's Webhook only notifies changes in temperature and humidity. For case 2, Hub 2 does not have DeviceControlCommands implemented. (For case 1, although it's quite an unconventional approach... It would be better to raise an issue in the SwitchBotAPI repository for adding Webhook support or control commands. |
Beta Was this translation helpful? Give feedback.
-
Just for the record, adding the hub2 with matter allows to catch in HA when on/off are pressed |
Beta Was this translation helpful? Give feedback.
Which of the following do you want to achieve?
For case 1, Hub 2's Webhook only notifies changes in temperature and humidity.
https://github.com/OpenWonderLabs/SwitchBotAPI?tab=readme-ov-file#hub-2-1
For case 2, Hub 2 does not have DeviceControlCommands implemented.
https://github.com/OpenWonderLabs/SwitchBotAPI?tab=readme-ov-file#send-device-control-commands
While it's not possible to press the On/Off button, this add-on does support executing scenes.
(For case 1, although it's quite an unconventional approach...
You could set up a scene that is execute…