Page 1 of 1

Can I control my device by its name?

Posted: 23 Dec 2020, 23:45
by thalesmaoa
I'm using mqtt with gpio/17 topic to change my relay state.
I just follow some examples over the internet. However, I was wondering, and couldn't find an appropriate answer.

Why I can't set it by device name?
SW01/Value
I need to implement a Rule for it?

Re: Can I control my device by its name?

Posted: 24 Dec 2020, 01:03
by TD-er
What application is using the MQTT topics?
Domoticz/OpenHAB/etc. (there are many)

Re: Can I control my device by its name?

Posted: 24 Dec 2020, 02:20
by thalesmaoa
I use NodeRed with Mosca Aedes server. For ESPEasy I just selected Home Assistant (openHAB) MQTT.

Re: Can I control my device by its name?

Posted: 28 Dec 2020, 20:32
by thalesmaoa
Hi there, I'm still looking for some help. thanks

Re: Can I control my device by its name?

Posted: 28 Dec 2020, 21:20
by Ath
You can use the MQTT Import plugin and subscribe to the topic that should change the state, currently there is only 'old' documentation on the Wiki, here. That should get you going, I hope.

I've worked on a PR #3424 to improve and extend that plugin, (and includes updated ReadTheDocs documentation), but that's not merged yet.

Re: Can I control my device by its name?

Posted: 06 Jan 2021, 21:27
by thalesmaoa
Thanks