core: Duplicate TP Links devices in Sense app (different MAC addresses)
The problem
When I updated to 2022.5.0 this week, my Sense app started showing strange TP-Link devices. I had already configured emulated_kasa to work with Sense for a few power plugs I have in Home Asisstant, and everything was working correctly in the Sense app.
Howevwer, after the core update, my Wifi plug (Sonoff) changed its settings so that instead of the power being an atttribute of the plug, it was a separate sensor.
I corrected/updated these settings in my config, but one device is still duplicated in Sense – the dishwasher.
I already have history data for the original emulated_kasa plug in Sense for my Dishwasher and it was working great. Now however there are TWO emulated_kasa Dishwasher devices in my Sense app. The original, which has the correct settings and data, and the new duplicate, same name.
The MAC addresses are different however.
I am not able to Delete or Merge the devices in the iOS app like the Sense documentation suggests. I assume these options are not available to TP-Link based devices.
I have no idea how to resolve this so it’s just the one (original) Dishwasher in Sense.
Please help!
Original Dishwasher:
Duplicate:

What version of Home Assistant Core has the issue?
core-2022.5.0
What was the last working version of Home Assistant Core?
core-2022.4.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
emulated_kasa
Link to integration documentation on our website
https://www.home-assistant.io/integrations/emulated_kasa/
Diagnostics information
No response
Example YAML snippet
emulated_kasa:
entities:
sensor.washing_machine_outlet_power:
name: "Washing Machine"
sensor.dishwasher_power:
name: "Dishwasher"
sensor.ups_office_power:
name: "Office Machines"
sensor.ups_basement_power:
name: "Networking"
switch.z906_outlet:
name: "Z906 Speakers"
power: "{{ states('sensor.z906_outlet_power') }}"
sensor.toaster_power_meter:
name: "Toaster"
Anything in the logs that might be useful for us?
No response
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (7 by maintainers)
The emulated kasa component uses only the entities defined in the config, it doesn’t have anywhere else it would store them. Sense sends out a request for devices and HA replies back with a message for each entity defined.
You could try disabling the emulated kasa component and then disable/enable the integration in Sense to see if it’s storing them