-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Can't use friendly names for ikea traadfri outlets #2645
Comments
Just set the payload to 'on' or 'off' instead of '{"state": "on"}' $ mosquitto_pub -h xxxxx -p 1883 -u xxxxx -P xxxxx -t zigbee2mqtt/study/outlet/set -m on z2m log: |
Hmm.. it doesn't cut it for me..
I get an error in the log
If I send to the device ID instead:
I get the following in the log
And yes, I have changed the root topic to zigbee, instead of zigbee2mqtt |
Tried changing the friendly name to Now it works, so it seems that zigbee2mqtt doesn't like number only parts in it's topic "path" |
OK, I can confirm this issue. I renamed an outlet: '0x000d6ffffedab29c': Send a set command: In the log I see this: However, I use a digit suffix on many of my devices without any issue, but I don't send set commands to these, they are sensor data source only: '0x00158d000314a645': |
You cannot control devices when the friendly name ends with /NUMBER. However currently this is not clear, zigbee2mqtt should refuse to start when this is set. |
@Koenkk is this a limitation of mqtt protocol, or an implementation issue in zigbee2mqtt? |
|
Bumped into the same issue. This configuration shall throw an error on startup. |
@Boldie implemented, zigbee2mqtt will refuse to start when a friendly_name ends with /DIGIT. |
Bug Report
What happened
I can not control ikea outlets using frinedly name
What did you expect to happen
That I can control my ikea outlets using their friendly name
How to reproduce it (minimal and precise)
I have given my outlet a friendly name of 'outlet/1' and 'outlet/2' (the ikea bulbs have similair naming conventions with slashes like 'light/diningtable')
if I try to control the outlets by publishing
{"state":"on"}
tozigbee2mqtt/outlet/1/set
nothing happens.If I use the deviceId directly, that is f.ex.
zigbee2mqtt/0x000d6ffffe9c0d6c/set
as topic, then the outlet responds correctly, and zigbee2mqtt reports back on the topiczigbee2mqtt/outlet/1
If I do the same with my lights, that is publishing
{"state": "on"}
tozigbee2mqtt/light/diningtable/set
then it works as expected.Debug Info
zigbee2mqtt version: 1.8.0
CC253X firmware version: 20190608 (I think this is the firmware version, it is noted as revision under coordinator meta data)
The text was updated successfully, but these errors were encountered: