Can I control my device by its name?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
thalesmaoa
Normal user
Posts: 10
Joined: 07 Dec 2020, 15:33

Can I control my device by its name?

#1 Post by thalesmaoa » 23 Dec 2020, 23:45

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?

TD-er
Core team member
Posts: 4270
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Can I control my device by its name?

#2 Post by TD-er » 24 Dec 2020, 01:03

What application is using the MQTT topics?
Domoticz/OpenHAB/etc. (there are many)

thalesmaoa
Normal user
Posts: 10
Joined: 07 Dec 2020, 15:33

Re: Can I control my device by its name?

#3 Post by thalesmaoa » 24 Dec 2020, 02:20

I use NodeRed with Mosca Aedes server. For ESPEasy I just selected Home Assistant (openHAB) MQTT.

thalesmaoa
Normal user
Posts: 10
Joined: 07 Dec 2020, 15:33

Re: Can I control my device by its name?

#4 Post by thalesmaoa » 28 Dec 2020, 20:32

Hi there, I'm still looking for some help. thanks

User avatar
Ath
Normal user
Posts: 565
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Can I control my device by its name?

#5 Post by Ath » 28 Dec 2020, 21:20

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.
/Ton

thalesmaoa
Normal user
Posts: 10
Joined: 07 Dec 2020, 15:33

Re: Can I control my device by its name?

#6 Post by thalesmaoa » 06 Jan 2021, 21:27

Thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests