Tasmota 8.1.0 ESP8266 setup for Cayenne

I am quite new in this area and would want to connect ESP8266 running Tasmota 8.1.0 to Cayenne.
Is that possible and this works?

When I setup MQTT in Tasmota and restart ESP8266 then in console I got:

20:40:55 MQT: Attempting connection…
20:40:55 MQT: Connected
20:40:55 MQT: tele/tasmota/LWT = Online (retained)
20:40:55 MQT: cmnd/tasmota/POWER =

But then after about 30sec then:

20:40:56 MQT: Attempting connection…
20:40:56 MQT: Connect failed to mqtt.mydevices.com:1883, rc 5. Retry in 10 sec
20:41:07 MQT: Attempting connection…
20:41:08 MQT: Connect failed to mqtt.mydevices.com:1883, rc 5. Retry in 10 sec
20:41:18 MQT: Attempting connection…

Can anyone explain me that?

Thak you for answer!

i am not much familiar with Tasmota but can you share the code you are running on your esp?

Tasmota is and small OS running on ESP8266 which also offer MQTT communication.

Brief information here:

It doesn’t offer programming directly in code but thru settings and scripts, rules to avoid directly programming in C or other language which would need additional compiling.

So when I get required data for connection

I add this to Tasmota MQTT settings

And after restart then I got that log from previous message.
As frim that log I understand This client connect to Cayenne for few minutes but is then later disconnected?


Okay. Got it. But from are you getting those topic?
Have a look at this https://developers.mydevices.com/cayenne/docs/cayenne-mqtt-api/#cayenne-mqtt-api-mqtt-messaging-topics