Alexa finds some Home Assistant devices twice (duplicates)

This is my emulated_hue.yaml

host_ip: 192.168.1.23
listen_port: 80
off_maps_to_on_domains:
 - script
 - scene
expose_by_default: false
exposed_domains:
 - light
 - script
 - switch
entities:
 script.boomerang:
  name: "Boomerang"
  hidden: false
 script.disneyjunior:
  name: "Disney Junior"
  hidden: false
 light.kitchen_light_1:
  name: "Kitchen Light 1"
  hidden: false
 light.kitchen_light_2:
  name: "Kitchen Light 2"
  hidden: false
 light.kitchen_light_3:
  name: "Kitchen Light 3"
  hidden: false
 switch.kitchentvpower:
  name: "Kitchen TV Power"
  hidden: false
 switch.kitchenacoff:
  name: "Kitchen AC Off"
  hidden: false
 switch.kitchenaccold:
  name: "Kitchen AC Cold"
  hidden: false
 switch.kitchenachot:
  name: "Kitchen AC Hot"
  hidden: false
 switch.kitcheninputcablenet:
  name: "Kitchen TV Input CableNet"
  hidden: false

and this is http://192.168.1.23/api/pi/lights

I “disassembled” it below for better visibility

{

"1": {
"manufacturername": "Home Assistant", 
"modelid": "HASS123", 
"name": "Boomerang", 
"state": {"bri": 254, "mode": "homeautomation", "on": false, "reachable": true}, 
"swversion": "123", 
"type": "Dimmable light", 
"uniqueid": "00:ad:f8:b1:c1:f3:81:69-28"}, 

"10": {
"manufacturername": "Home Assistant", 
"modelid": "HASS123", 
"name": "Kitchen Light 3", 
"state": {"bri": 254, "mode": "homeautomation", "on": false, "reachable": true}, 
"swversion": "123", 
"type": "Dimmable light", 
"uniqueid": "00:04:db:70:6d:55:14:d8-9d"}, 

"2": {
"manufacturername": "Home Assistant", 
"modelid": "HASS123", 
"name": "Disney Junior", 
"state": {"bri": 254, "mode": "homeautomation", "on": false, "reachable": true}, 
"swversion": "123", "type": "Dimmable light", "uniqueid": "00:fc:5f:7b:a4:84:2a:55-56"}, 

"3": {
"manufacturername": "Home Assistant", 
"modelid": "HASS123", 
"name": "Kitchen AC Off", "state": {"bri": 254, "mode": "homeautomation", "on": false, "reachable": true}, 
"swversion": "123", 
"type": "Dimmable light", 
"uniqueid": "00:f5:8b:75:f8:4f:e5:49-5d"}, 

"4": {
"manufacturername": "Home Assistant", 
"modelid": "HASS123", 
"name": "Kitchen AC Hot", 
"state": {"bri": 254, "mode": "homeautomation", "on": false, "reachable": true}, 
"swversion": "123", 
"type": "Dimmable light", 
"uniqueid": "00:72:96:0c:dd:b5:5e:67-dd"}, 

"5": {
"manufacturername": "Home Assistant", 
"modelid": "HASS123", "name": "Kitchen TV Power", 
"state": {"bri": 254, "mode": "homeautomation", "on": false, "reachable": true}, 
"swversion": "123", 
"type": "Dimmable light", 
"uniqueid": "00:67:17:6d:9c:3c:ba:f8-53"}, 

"6": {
"manufacturername": "Home Assistant", 
"modelid": "HASS123", 
"name": "Kitchen TV Input CableNet", 
"state": {"bri": 254, "mode": "homeautomation", "on": true, "reachable": true}, 
"swversion": "123", 
"type": "Dimmable light", 
"uniqueid": "00:8d:9d:40:1d:db:54:e2-e1"}, 

"7": {
"manufacturername": "Home Assistant", 
"modelid": "HASS123", "name": "Kitchen AC Cold", 
"state": {"bri": 254, "mode": "homeautomation", "on": true, "reachable": true}, 
"swversion": "123", 
"type": "Dimmable light", 
"uniqueid": "00:41:50:a2:b5:ae:8a:44-a9"}, 

"8": {
"manufacturername": "Home Assistant", 
"modelid": "HASS123", 
"name": "Kitchen Light 1", 
"state": {"bri": 254, "mode": "homeautomation", "on": true, "reachable": true}, 
"swversion": "123", 
"type": "Dimmable light", 
"uniqueid": "00:44:d4:dc:70:02:aa:16-97"}, 

"9": {
"manufacturername": "Home Assistant", 
"modelid": "HASS123", 
"name": "Kitchen Light 2", 
"state": {"bri": 254, "mode": "homeautomation", "on": true, "reachable": true}, 
"swversion": "123", 
"type": "Dimmable light", 
"uniqueid": "00:7d:ff:c5:54:47:31:b7-67"}

}

My problem is that alexa finds some of these devices twice. I tried “Forget All” and “Discover” again, but it still finds some devices twice.


Any idea why?
Thanks

Did you ever figure out a solution to this? This is driving me crazy. I’ve deleted the emulated_hue.json, restarted home assistant, and removed all devices from the web interface. I am getting 4 and 5 entries for each emulated device every time I discover. The strange thing is that if I disconnect all my alexa’s and try to discover from my phone then it wasn’t finding anything.

UPDATE: I eventually found the solution in the thread How to efficiently flush emulated hue.

Mine was doing this with smart life devices.

What was happening was alexa was reading the config from the smart life skill & home assistant - thus duplicating the devices.

I disabled the smart life skill from alexa & deleted the devices associated w/ the skill & now only have one copy of each device

@Cheezlbub If I am understanding this correctly, your Alexa now needs to depend wholly upon your HA instance for these devices? Is that correct?

1 Like

Is the Alexa web interface still available on PC? I can’t seem to find a way to edit/modify/delete dupes w/o going to the mobile app, which is god awful