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

feature request: option to publish under device ID if name is set #14

Open
maddhin opened this issue Nov 5, 2023 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@maddhin
Copy link

maddhin commented Nov 5, 2023

Hi,

I prefer if my device is published under the device ID e.g. tuya/bf61234567mpo/Dp20 as the topics are "hardcoded" into my home automation server. In my home automation server I then name the device e.g. "kitchen light". If I move the device to the bathroom, I just have to change the name to "bathroom light" and there is no need to change the topics and commands.

Currently, tuya_mqtt.net only allows to sent the MQTT publishing topic. But if i change this topic to the device ID, it is very hard to identify the device in the GUI as only the device ID is shown. E.g. it would be good to be able to set "device name" = name that is shown in tuya_mqtt.net GUI = name coming from Tuya API. And be able to set the MQTT topic under which the devices publishes = currently existing "Given name for MQTT".

Technically this could be realized with either adding a new field "device name" or adding a switch which sets the published topic to the device ID.

Cheers for considering!

@volker76
Copy link
Owner

volker76 commented Nov 5, 2023

do you mean like tuya/ceiling_lamp/Dp20 ? or even tuya/ceiling_lamp/Intensity ?

@volker76 volker76 added the enhancement New feature or request label Nov 5, 2023
@maddhin
Copy link
Author

maddhin commented Nov 5, 2023

no, in this regard, I would not change anything. I.e. the topic should stay like tuya/bf61234567mpo/Dp20

But the GUI should have the option to name the device. I.e. the device is shown as "Ceiling Lamp" in the GUI but the MQTT topics are still e.g. tuya/bf61234567mpo/Dp2 while bf61234567mpo is the device ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants