Mqtt adafruit.io

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Simba
New user
Posts: 9
Joined: 05 Feb 2021, 15:10

Mqtt adafruit.io

#1 Post by Simba » 22 Nov 2022, 13:29

Hello,

In adafriit.io i have a toogle button and when i active it i receive this in log:

Command: feeds
1341366564: Command unknown: feeds,2357554,1
Or
Command: feeds
1341366564: Command unknown: feeds,2357554,0

how can i make a rule to change gpio?

Example that doesn't work
On feeds do
If %eventvalue1%=2357554
gpio,2,%eventvalue2%
Endif
Endon

Binary Filename: ESP_Easy_mega_20220809_collection_B_ESP8266_4M1M
ESP Board Name: Espressif Generic 1 ESPEasy 4M Flash 1M FS

Thanks you for help

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

Re: Mqtt adafruit.io

#2 Post by TD-er » 22 Nov 2022, 13:47

Can you define the text to be sent by adafruit.io?
If so, please try to change it to "event,feeds"

Simba
New user
Posts: 9
Joined: 05 Feb 2021, 15:10

Re: Mqtt adafruit.io

#3 Post by Simba » 22 Nov 2022, 19:18

Thank you for your reply.
I looked but I did not find how to change the sending of the adafruit

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

Re: Mqtt adafruit.io

#4 Post by TD-er » 22 Nov 2022, 21:52

Can you setup the topic to which you want to send messages?

Simba
New user
Posts: 9
Joined: 05 Feb 2021, 15:10

Re: Mqtt adafruit.io

#5 Post by Simba » 23 Nov 2022, 19:59


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

Re: Mqtt adafruit.io

#6 Post by Ath » 23 Nov 2022, 20:07

What have you configured to reach the ESP from Adafruit.io, at some point you must have configured the URL, or a MQTT Controller?
/Ton (PayPal.me)

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

Re: Mqtt adafruit.io

#7 Post by TD-er » 23 Nov 2022, 20:27

The reasoning behind my question for MQTT topics is that you can also use some of the MQTT topic as part of the command structure.
See the documentation: https://espeasy.readthedocs.io/en/lates ... #c005-page

Simba
New user
Posts: 9
Joined: 05 Feb 2021, 15:10

Re: Mqtt adafruit.io

#8 Post by Simba » 24 Nov 2022, 12:48

configuration of my openhab mqtt:

Controller Subscribe: Username/feeds/#
Controller Publish: Username/feeds/%sysname%_%valname%

On adafruit i do not configure anythink

I changed Controller Subscribe with Username/feeds/cmd/#

But I lost the connection with adafruit and at the moment I can't find it

Simba
New user
Posts: 9
Joined: 05 Feb 2021, 15:10

Re: Mqtt adafruit.io

#9 Post by Simba » 25 Nov 2022, 09:49

@TD-er,
Thanks you for your help.
I resolved the problème with the plugin Mqtt Import
Have a good day.

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

Re: Mqtt adafruit.io

#10 Post by TD-er » 25 Nov 2022, 10:34

Great!
Good to know you got it worked out.
Have fun with it and also a good day to you too.

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests