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

%hostname% as topic not working #238

Open
jeroenst opened this issue Mar 31, 2023 · 3 comments
Open

%hostname% as topic not working #238

jeroenst opened this issue Mar 31, 2023 · 3 comments

Comments

@jeroenst
Copy link

In my tasmota configuration I use %hostname% as topic. TDM tries to access 0002/%HOSTNAME%/cmnd/status 0 instead.

How can I solve this while still using the %hostname% variable in my topic?

@barbudor
Copy link
Contributor

You can't
There is no %hostname% variable that can be used to define %topic%
You must set them independently to the same value

@jeroenst
Copy link
Author

jeroenst commented Mar 31, 2023

Using %hostname% in topic of Tasmota works prefectly, only not with tdm.

@jziolkowski
Copy link
Owner

this is because Tasmota knows its hostname when operating. TDM doesn't know the hostname until it receives this information from the device, after establishing its proper topic/fulltopic. It's a race condtion.

The issue will be gone when I implement native autodiscovery, but I don't have time again.

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

No branches or pull requests

3 participants