Skip to content

Ghost events with buttons #978

Description

@Unarelith

Version of the integration

Latest commit.

Configuration

I was using the other PR for button support, but after updating Home Assistant I had to update the integration.

Hub H100 firmware 1.5.23 and 1.6.1.

Describe the bug

Buttons will register ghost events.

Image

Sorry it's in French, but you can see that there were two events that were triggered for some reason (I was sleeping at the time).

It happened once or twice every day since I updated the integration (it never happened when I used the other PR).

Debug log

2026-07-11 04:50:45.714 ERROR (MainThread) [kasa.transports.klaptransport] Query failed after successful authentication: Host is 192.168.1.104, Sequence is -1328509916, Response status is 403, Request was {"method":"multipleRequest","request_time_milis":1783738245701,"terminal_uuid":"Si0PDhzU7ZgSr/yuygJSTg==","params":{"requests":[{"method":"get_device_time"},{"method":"get_alarm_configure"},{"method":"get_support_alarm_type_list"},{"method":"get_child_device_list"},{"method":"get_child_device_component_list"}]}}
2026-07-11 04:50:51.747 ERROR (MainThread) [kasa.transports.klaptransport] Query failed after successful authentication: Host is 192.168.1.104, Sequence is 1053764445, Response status is 403, Request was {"method":"multipleRequest","request_time_milis":1783738251701,"terminal_uuid":"Si0PDhzU7ZgSr/yuygJSTg==","params":{"requests":[{"method":"get_device_time"},{"method":"get_alarm_configure"},{"method":"get_support_alarm_type_list"},{"method":"get_child_device_list"},{"method":"get_child_device_component_list"}]}}
2026-07-11 04:51:03.490 ERROR (MainThread) [custom_components.tapo.coordinators] Error fetching tapo data: Unexpected exception: 
2026-07-11 04:51:03.492 ERROR (MainThread) [custom_components.tapo.coordinators] Error fetching tapo data: Unexpected exception: 
2026-07-11 04:51:03.534 ERROR (MainThread) [kasa.smart.smartdevice] Error querying 192.168.1.104 for modules 'Time, Alarm, ChildDevice, DeviceModule, Matter' after first update: ('Unable to query the device: 192.168.1.104: ', TimeoutError())
2026-07-11 04:51:08.711 ERROR (MainThread) [kasa.transports.klaptransport] Query failed after successful authentication: Host is 192.168.1.104, Sequence is -1047648916, Response status is 403, Request was {"method":"multipleRequest","request_time_milis":1783738268701,"terminal_uuid":"Si0PDhzU7ZgSr/yuygJSTg==","params":{"requests":[{"method":"get_device_time"},{"method":"get_alarm_configure"},{"method":"get_support_alarm_type_list"},{"method":"get_child_device_list"},{"method":"get_child_device_component_list"}]}}
2026-07-11 04:51:14.711 ERROR (MainThread) [kasa.transports.klaptransport] Query failed after successful authentication: Host is 192.168.1.104, Sequence is -477173085, Response status is 403, Request was {"method":"multipleRequest","request_time_milis":1783738274701,"terminal_uuid":"Si0PDhzU7ZgSr/yuygJSTg==","params":{"requests":[{"method":"get_device_time"},{"method":"get_alarm_configure"},{"method":"get_support_alarm_type_list"},{"method":"get_child_device_list"},{"method":"get_child_device_component_list"}]}}
2026-07-11 04:51:20.707 ERROR (MainThread) [kasa.transports.klaptransport] Query failed after successful authentication: Host is 192.168.1.104, Sequence is -1835819387, Response status is 403, Request was {"method":"multipleRequest","request_time_milis":1783738280700,"terminal_uuid":"Si0PDhzU7ZgSr/yuygJSTg==","params":{"requests":[{"method":"get_device_time"},{"method":"get_alarm_configure"},{"method":"get_support_alarm_type_list"},{"method":"get_child_device_list"},{"method":"get_child_device_component_list"}]}}

Despite all the kasa transport errors (which I get all the time), the buttons are working properly.

After updating the firmware to 1.6.1 I see new lines like these:

2026-07-11 09:27:06.991 ERROR (MainThread) [kasa.smart.smartdevice] Error querying 192.168.1.104 for modules 'Time, Alarm, ChildDevice, DeviceModule, Matter' after first update: Device 192.168.1.104 responded with 400 to handshake2

And these:

2026-07-11 09:28:57.111 ERROR (MainThread) [kasa.smart.smartdevice] Error querying 192.168.1.104 individually for module query 'get_device_time' after first update: Device 192.168.1.104 responded with 400 to handshake2
2026-07-11 09:28:57.664 ERROR (MainThread) [kasa.smart.smartdevice] Error querying 192.168.1.104 individually for module query 'get_alarm_configure' after first update: Device 192.168.1.104 responded with 400 to handshake2
2026-07-11 09:28:58.186 ERROR (MainThread) [kasa.smart.smartdevice] Error querying 192.168.1.104 individually for module query 'get_support_alarm_type_list' after first update: Device 192.168.1.104 responded with 400 to handshake2
2026-07-11 09:28:58.802 ERROR (MainThread) [kasa.smart.smartdevice] Error querying 192.168.1.104 individually for module query 'get_child_device_list' after first update: Device 192.168.1.104 responded with 400 to handshake2
2026-07-11 09:29:02.021 WARNING (MainThread) [kasa.smart.smartdevice] Error processing Time for device 192.168.1.104, module will be unavailable: get_device_time for Time (error_code=INTERNAL_QUERY_ERROR)
2026-07-11 09:29:02.021 WARNING (MainThread) [kasa.smart.smartdevice] Error processing Alarm for device 192.168.1.104, module will be unavailable: get_alarm_configure for Alarm (error_code=INTERNAL_QUERY_ERROR)
2026-07-11 09:29:02.022 WARNING (MainThread) [kasa.smart.smartdevice] Error processing ChildDevice for device 192.168.1.104, module will be unavailable: get_child_device_list for ChildDevice (error_code=INTERNAL_QUERY_ERROR)
2026-07-11 09:29:02.024 WARNING (MainThread) [homeassistant.components.tplink.entity] Unable to read data for <DeviceType.Hub at 192.168.1.104 - Hub Intelligent (H100)> select.hub_intelligent_son_de_l_alarme: get_alarm_configure for Alarm (error_code=INTERNAL_QUERY_ERROR)
2026-07-11 09:29:02.025 WARNING (MainThread) [homeassistant.components.tplink.entity] Unable to read data for <DeviceType.Hub at 192.168.1.104 - Hub Intelligent (H100)> select.hub_intelligent_volume_de_l_alarme: get_alarm_configure for Alarm (error_code=INTERNAL_QUERY_ERROR)
2026-07-11 09:29:02.030 WARNING (MainThread) [homeassistant.components.tplink.entity] Unable to read data for <DeviceType.Hub at 192.168.1.104 - Hub Intelligent (H100)> siren.hub_intelligent: get_alarm_configure for Alarm (error_code=INTERNAL_QUERY_ERROR)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions