tuyagateway icon indicating copy to clipboard operation
tuyagateway copied to clipboard

wrond device name and device id in mqtt brocker

Open Shaman2 opened this issue 5 years ago • 2 comments

I make one gismo model for all my switch 2gang "switch_2gang"

1

next I add two gismo with gismo model "switch_2gang"

2

But mqtt discovery device name as second gang name, not gismo name

3

and object discovery as dp name, dot gismo gang name.

4

what I make wrong?

Shaman2 avatar Aug 24 '20 12:08 Shaman2

Yeah that is a bit of a problem. Not sure why that happens. It seems it has to do in which order the data is received in HA. Perhaps the name is reset when you restart HA.

TradeFace avatar Aug 24 '20 14:08 TradeFace

Yeah that is a bit of a problem. Not sure why that happens. It seems it has to do in which order the data is received in HA. Perhaps the name is reset when you restart HA.

I found it. When I (after add gismo) edit gismo, nothing to change and press "Save" information in mqtt is changing, Object name is right, but device name is not right. See picture, gismo name "switch_child", but in mqtt device name is "swith_child_2", its wrong. Object names "switch_child_1" and "switch_child_2" is right. So first error only when send information to mqtt after add gismo. After edit gismo object name send right, but device name send wrong. 5 .

Shaman2 avatar Aug 24 '20 15:08 Shaman2