Use Tapo S200B button presses and dial rotation in Home Assistant with H200
Tapo S200B/S200D Cloud Events
Unofficial Home Assistant integration for Tapo button and rotary events through the Thing Cloud Event Log.
My Tapo S200B is visible in Home Assistant, but button presses are not available as automation triggers. What can I try?
This integration reads Tapo cloud Event Log records and emits Home Assistant events for button presses and dial rotations. It was tested primarily with the H200 and S200B. It does not require a Tapo Smart Action or a separate MQTT bridge.
Getting started
- Add the repository to HACS as a custom integration, install it, and restart Home Assistant.
- Add Tapo S200B/S200D Cloud Events in Devices & services using your own Tapo account.
- Use the documented tapo_s200b_pressed and tapo_s200b_rotated events in automations.
Example: use a single press as an automation trigger
After installing and configuring the custom integration, use its grouped press event. This example uses a placeholder light entity; substitute your own entity. It is an example configuration, not a live test.
automation:
- alias: S200B single press example
triggers:
- trigger: event
event_type: tapo_s200b_pressed
event_data:
action: single_click
actions:
- action: light.toggle
target:
entity_id: light.exampleHow do I distinguish rotary direction?
Listen to tapo_s200b_rotated. Positive degrees mean clockwise, negative degrees mean anti-clockwise. Use device_id to filter multiple buttons. The default poll interval is one second plus cloud and network delay, not a real-time latency guarantee.
Why is my button visible but not triggering automations?
Discovery of a paired device does not prove that a local API exposes its physical button events. This integration uses the cloud Event Log rather than local trigger logs. On startup it seeds history rather than replaying old events. Authentication failures stop polling and request reauthentication; do not publish credentials or Home Assistant config-entry storage.
Compatibility and limitations
Cloud polling is required, not local-only control. S200D hardware and firmware combinations can vary. Triple click is derived from grouped events, not a native Tapo event.