Skip to content

Support for the "on" and "off" buttons on Hub 2? #28

Answered by hsakoh
DistractedPhysicist asked this question in Q&A
Discussion options

You must be logged in to vote

Which of the following do you want to achieve?

  1. Detect when the On/Off button of Hub 2 is pressed as an event in Home Assistant.
  2. Press the On/Off button of Hub 2 from Home Assistant.

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…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@DistractedPhysicist
Comment options

Answer selected by hsakoh
Comment options

You must be logged in to vote
4 replies
@DistractedPhysicist
Comment options

@hsakoh
Comment options

@DistractedPhysicist
Comment options

@zalmael
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants