Page 1 of 1

Mqtt adafruit.io

Posted: 22 Nov 2022, 13:29
by Simba
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

Re: Mqtt adafruit.io

Posted: 22 Nov 2022, 13:47
by TD-er
Can you define the text to be sent by adafruit.io?
If so, please try to change it to "event,feeds"

Re: Mqtt adafruit.io

Posted: 22 Nov 2022, 19:18
by Simba
Thank you for your reply.
I looked but I did not find how to change the sending of the adafruit

Re: Mqtt adafruit.io

Posted: 22 Nov 2022, 21:52
by TD-er
Can you setup the topic to which you want to send messages?

Re: Mqtt adafruit.io

Posted: 23 Nov 2022, 19:59
by Simba

Re: Mqtt adafruit.io

Posted: 23 Nov 2022, 20:07
by Ath
What have you configured to reach the ESP from Adafruit.io, at some point you must have configured the URL, or a MQTT Controller?

Re: Mqtt adafruit.io

Posted: 23 Nov 2022, 20:27
by TD-er
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

Re: Mqtt adafruit.io

Posted: 24 Nov 2022, 12:48
by Simba
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

Re: Mqtt adafruit.io

Posted: 25 Nov 2022, 09:49
by Simba
@TD-er,
Thanks you for your help.
I resolved the problème with the plugin Mqtt Import
Have a good day.

Re: Mqtt adafruit.io

Posted: 25 Nov 2022, 10:34
by TD-er
Great!
Good to know you got it worked out.
Have fun with it and also a good day to you too.