-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Custom device with two endpoints #3432
Comments
You can only use endpoint names listed in https://github.com/Koenkk/zigbee2mqtt/blob/df0543d4b7d04578c5000a889090259d3abcb32f/lib/util/utils.ts#L30 |
Works, thanks a lot! Is there any reason why endpoint names cannot be any text? And even if it absolutely needs to be limited to this set maybe there should be a (more visible?) warning? |
Because these endpoint names cannot be used in the friendly name, e.g. a friendly_name of
Agree, would you mind implementing such check? |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days |
I am trying to make my own device based on ptvo.info, Z1 Mini, Arduino and connect it to Home Assistant using Z2M. I created an external converter that is half working and need help with the other part. The part that works is the part concerned with reading - whenever my device changes state, arduino sends packet through UART, Z1 Mini sends that over zigbee to z2m and HA presents it nicely as device with two lights ('salon' and 'kuchnia'). Here is how it looks like:
However, when trying to turn on/off/toggle the light in HA it says "Entity '0x122137861872/kuchnia' is unknown". Log says:
How do I actually convince HA/Z2M to do something when I try to switch the light on in HA UI? What I don't like with the log message is that endpoint name is twice (topic name + payload json), but don't know how to fix. My bet would be that exposes definition needs some tweaking so that HA sends to 'zigbee2mqtt/0x122137861872/set' and not 'zigbee2mqtt/0x122137861872/kuchnia/set' - but don't know how to have that.
The text was updated successfully, but these errors were encountered: