Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lights from zigbee2mqtt not discovered by Amazon Echo #619

Open
joeashcraft opened this issue Oct 21, 2024 · 0 comments
Open

lights from zigbee2mqtt not discovered by Amazon Echo #619

joeashcraft opened this issue Oct 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@joeashcraft
Copy link

Description

With hass-emulated-hue I have 2 lights from zigbee2mqtt ("z2m") which aren't discovered by my Amazon Echo Plus (1st Gen, 2017), while my 2 lights from esphome are.

I suspect this is my Echo being weird, but I wanted to see if anyone has run in to this.

  • all 4 lights work from within home-assistant
    • the 2 z2m lights can be controller from the z2m web-ui or from Home-Assistant itself.
  • the /description.xml looks OK to me
  • the /api/$key$/lights does contain all the lights (2 from zigbee2mqtt + 2 from esphome)
  • in Hue Essentials (Android), the hass-emulated-hue bride lets me controll all 4 lights
  • I've hard-reset my Echo. It quickly finds the 2 esphome lights again, but never the 2 z2m lights

my devices:

  • ❌ 1 IKEA Tradfri light connected to z2m via home-assistant addon.
    Device Pantry Light; entity light.pantry_light; hass-emulated-hue "uniqueid": "zigbee2mqtt_0xe8e07efffe1ba1f5".
    json response from .../lights
    ...
            "2": {
                "state": {
                    "on": false,
                    "reachable": true,
                    "mode": "homeautomation",
                    "bri": 4,
                    "alert": "select",
                    "ct": 454
                },
                "name": "Pantry Light",
                "uniqueid": "zigbee2mqtt_0xe8e07efffe1ba1f5",
                "swupdate": {
                    "state": "noupdates",
                    "lastinstall": "2024-10-19T17:39:45"
                },
                "config": {
                    "config": {
                        "archetype": "sultanbulb",
                        "direction": "omnidirectional",
                        "function": "mixed",
                        "startup": {
                            "configured": true,
                            "mode": "safety"
                        }
                    }
                },
                "capabilities": {
                    "certified": true,
                    "control": {
                        "mindimlevel": 1000,
                        "maxlumen": 800
                    },
                    "streaming": {
                        "renderer": false,
                        "proxy": false
                    }
                },
                "type": "Color temperature light",
                "manufacturername": "IKEA",
                "productname": "Pantry Light",
                "modelid": "TRADFRI bulb E26/27, white spectrum, globe, opal, 1055/1100/1160 lm (LED2003G10)",
                "swversion": "1.0.012"
            }
  • ❌ 1 sonoff plug connected to z2m via home-assistant addon; plugged in here is a night light.
    Device Switch2; entity light.switch2 (actually a plug); hass-emulated-hue "uniqueid": "zigbee2mqtt_0x00124b002456de8b"
    json response from .../lights
    ...
                    "1": {
                        "state": {
                            "on": false,
                            "reachable": true,
                            "mode": "homeautomation"
                        },
                        "name": "My night light",
                        "uniqueid": "zigbee2mqtt_0x00124b002456de8b",
                        "swupdate": {
                            "state": "noupdates",
                            "lastinstall": "2024-10-19T17:39:45"
                        },
                        "config": {
                            "config": {
                                "archetype": "sultanbulb",
                                "direction": "omnidirectional",
                                "function": "mixed",
                                "startup": {
                                    "configured": true,
                                    "mode": "safety"
                                }
                            }
                        },
                        "capabilities": {},
                        "type": "On/off light",
                        "manufacturername": "SONOFF",
                        "productname": "Switch2",
                        "modelid": "Zigbee smart plug (US version) (S31ZB)",
                        "swversion": "1.0.7"
                    },
                
  • ✅ 2 custom lights from esphome which are actually a floor lamp with 433mhz rf remote.
    • Light A. Device Bridge433 (sonoff rf bridge), Entity light.my_floor_lamp_2, hass-emulated-hue "uniqueid": "00:cc:d8:c1:19:d1:f8:e0-c5"
    • Light B. Device Bridge433, Entity light.my_reading_lamp_2, hass-emulated-hue "uniqueid": "00:d7:50:fd:3e:47:4d:fa-99"
    json response from .../lights
    ...
                "6": {
                    "state": {
                        "on": true,
                        "reachable": true,
                        "mode": "homeautomation"
                    },
                    "name": "My floor lamp",
                    "uniqueid": "00:cc:d8:c1:19:d1:f8:e0-c5",
                    "swupdate": {
                        "state": "noupdates",
                        "lastinstall": "2024-10-19T17:39:45"
                    },
                    "config": {
                        "config": {
                            "archetype": "sultanbulb",
                            "direction": "omnidirectional",
                            "function": "mixed",
                            "startup": {
                                "configured": true,
                                "mode": "safety"
                            }
                        }
                    },
                    "capabilities": {},
                    "type": "On/off light",
                    "manufacturername": "espressif",
                    "productname": "Bridge433",
                    "modelid": "esp8285",
                    "swversion": "2022.9.1 (Sep 10 2024, 23:31:53)"
                },
                "7": {
                    "state": {
                        "on": false,
                        "reachable": true,
                        "mode": "homeautomation"
                    },
                    "name": "My reading lamp",
                    "uniqueid": "00:d7:50:fd:3e:47:4d:fa-99",
                    "swupdate": {
                        "state": "noupdates",
                        "lastinstall": "2024-10-19T17:39:45"
                    },
                    "config": {
                        "config": {
                            "archetype": "sultanbulb",
                            "direction": "omnidirectional",
                            "function": "mixed",
                            "startup": {
                                "configured": true,
                                "mode": "safety"
                            }
                        }
                    },
                    "capabilities": {},
                    "type": "On/off light",
                    "manufacturername": "espressif",
                    "productname": "Bridge433",
                    "modelid": "esp8285",
                    "swversion": "2022.9.1 (Sep 10 2024, 23:31:53)"
                },
            

my suspicions:

  • the 2 lights from z2m are devices themselves (with entities to power on/off) while the 2 from esphome are entities of my esphome device.
  • hass-emulated-hue generates a hue unique_id differently from the builtin/core emulated_hue. I don't know if Hue API requires a certain format.
  • the hass-emulated-hue unique_id is different in /homeassistant/hass-emulated-hue/emulated_hue.json than in the Hue bridge response. The JSON file stores a hash (e.g. 00:f6:9a:bd:ba:46:b1:46-bf), but API response is like zigbee2mqtt_0x00124b002456de8b.

Expected behavior

Alexa discovers all light exposed by hass-emulated-hue

Reproduction steps

  1. with zigbee2mqtt, link a zigbee light
  2. confirm the light does show up in emulated hue with something like Hue Essentials (android)
  3. try to add the light to Amazon Echo
    • in the Alexa app: Devices > Add > Philips Hue Light > Discover Devices

result: the light is not discovered

Relevant log output

# logs of my Echo discovering emulated-hue
2024-10-21 14:31:13,510 DEBUG emulated_hue.apiv1 -- [192.168.1.244] GET /description.xml
2024-10-21 14:31:13,526 DEBUG emulated_hue.apiv1 -- [192.168.1.244] GET /api/redacted/lights
2024-10-21 14:31:13,680 DEBUG emulated_hue.apiv1 -- [192.168.1.244] GET /api/redacted/lights/6
2024-10-21 14:31:13,699 DEBUG emulated_hue.apiv1 -- [192.168.1.244] GET /api/redacted/lights/7
2024-10-21 14:31:13,708 DEBUG emulated_hue.apiv1 -- [192.168.1.244] GET /api/redacted/lights
2024-10-21 14:39:14,089 DEBUG emulated_hue.apiv1 -- [192.168.1.244] GET /api/redacted/lights/6
2024-10-21 14:40:04,770 DEBUG emulated_hue.apiv1 -- [192.168.1.244] GET /api/redacted/lights/7

Operating system

HassOS

Install method

HassOS Addon

Version

0.3.0

Dev Version

No response

Any other information that may be helpful

Hardware

  • rpi3-64
  • slae.sh CC2652RB stick

Home-Assistant

  • Core 2024.10.2
  • Supervisor 2024.10.2
  • Operating System 10.3
  • Frontend 20241002.3
  • hass-emulated-hue (add-on) 0.3.0
  • zigbee2mqtt (add-on) 1.40.2-1
  • Mosquitto broker (add-on) 6.4.1
@joeashcraft joeashcraft added the bug Something isn't working label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant