Hivemq - Tasmota - Javascript

762 views
Skip to first unread message

Ydb

unread,
Jun 1, 2022, 11:33:36 AM6/1/22
to TasmotaUsers
I have read so many articles about it on the internet. But somehow I could not communicate between hivemq and tasmota.
I run the tests from https://websocketclient.hivemq.cloud/. If this place works, I will have taken care of the javascript part.
On hivemq:
Host: .......s1.eu.hivemq.cloud
Port: 8884
UserName, Password, Client ID are correct.
SSL : True
When I say connect, it connects successfully.
After that, the Publish and Subscriptions sections do not work.
In the Publish section:
I am using cmnd/tasmota_kotx/POWER.
In the sub section
I am using stat/kotx1/RESULT code.

If Tasmota is in MQTT
Host: broker.hivemq.com
Port: 1883
Other info like on hivemq.

However, when I click the Publish button on Hivemq, it does nothing.

Do you have an example that you can recommend on this subject? It's about hivemq cloud and tasmota.Ekran Alıntısı.PNG

Philip Knowles

unread,
Jun 1, 2022, 1:21:27 PM6/1/22
to Ydb, TasmotaUsers

You are using port 8884 on hive and 1883 on Tasmota. If you are using TLS/SSL I think the port is 8883.

 

Rather than taking a screenshot of the output it’s better to just cut and paste the text after a restart of the device because we can see the connection trail.

 

Regards

 

Phil K

 

Sent from Mail for Windows

 

From: Ydb
Sent: 01 June 2022 16:33
To: TasmotaUsers
Subject: Hivemq - Tasmota - Javascript

 

I have read so many articles about it on the internet. But somehow I could not communicate between hivemq and tasmota.
I run the tests from https://websocketclient.hivemq.cloud/. If this place works, I will have taken care of the javascript part.
On hivemq:

Host: ......s1.eu.hivemq.cloud


Port: 8884
UserName, Password, Client ID are correct.
SSL : True
When I say connect, it connects successfully.
After that, the Publish and Subscriptions sections do not work.
In the Publish section:
I am using cmnd/tasmota_kotx/POWER.
In the sub section
I am using stat/kotx1/RESULT code.

If Tasmota is in MQTT
Host: broker.hivemq.com
Port: 1883
Other info like on hivemq.

However, when I click the Publish button on Hivemq, it does nothing.

Do you have an example that you can recommend on this subject? It's about hivemq cloud and tasmota.

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/cef1f1d4-1bbd-4e69-ba8e-780a70717360n%40googlegroups.com.

 

Ydb

unread,
Jun 1, 2022, 1:48:14 PM6/1/22
to TasmotaUsers
Tasmota only connects when I type 1883. Tried all other port numbers, can't connect.Ekran Alıntısı.PNGEkran Alıntısı1.PNG

1 Haziran 2022 Çarşamba tarihinde saat 20:21:27 UTC+3 itibarıyla knowles...@gmail.com şunları yazdı:

Philip Knowles

unread,
Jun 1, 2022, 2:51:32 PM6/1/22
to Ydb, TasmotaUsers

Well TLS isn’t supported in the standard builds so either disable TLS in hive or compile with TLS

 

TLS Secured MQTT - Tasmota

 

Regards

 

Phil K

 

Sent from Mail for Windows

 

From: Ydb
Sent: 01 June 2022 18:48
To: TasmotaUsers
Subject: Re: Hivemq - Tasmota - Javascript

 

Tasmota only connects when I type 1883. Tried all other port numbers, can't connect.

--

You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/cef1f1d4-1bbd-4e69-ba8e-780a70717360n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.

Ydb

unread,
Jun 2, 2022, 5:38:00 AM6/2/22
to TasmotaUsers
I installed Tasmota TLS version. But again it didn't.
I'm making the connection from https://websocketclient.hivemq.cloud/ for testing. It says connection successful. However, I cannot send or receive messages. I'm watching from the Tasmota console, there is no movement.
Do you know a link on how to communicate between websocket and tasmota?

1 Haziran 2022 Çarşamba tarihinde saat 21:51:32 UTC+3 itibarıyla knowles...@gmail.com şunları yazdı:

Ydb

unread,
Jun 2, 2022, 5:44:23 AM6/2/22
to TasmotaUsers
Ekran Alıntısı.PNG

2 Haziran 2022 Perşembe tarihinde saat 12:38:00 UTC+3 itibarıyla Ydb şunları yazdı:

Philip Knowles

unread,
Jun 2, 2022, 8:50:55 AM6/2/22
to Ydb, TasmotaUsers

Reboot the device while in console (restart 1). Then cut and paste the console output from the restart until after it has connected to MQTT.

 

It doesn’t matter what hive thinks it’s what Tasmota thinks that’s important

 

Regards

 

Phil K

 

Sent from Mail for Windows

 

From: Ydb
Sent: 02 June 2022 10:38
To: TasmotaUsers
Subject: Re: Hivemq - Tasmota - Javascript

 

I installed Tasmota TLS version. But again it didn't.
I'm making the connection from https://websocketclient.hivemq.cloud/ for testing. It says connection successful. However, I cannot send or receive messages. I'm watching from the Tasmota console, there is no movement.
Do you know a link on how to communicate between websocket and tasmota?

1 Haziran 2022 Çarşamba tarihinde saat 21:51:32 UTC+3 itibarıyla knowles...@gmail.com şunları yazdı:

Well TLS isn’t supported in the standard builds so either disable TLS in hive or compile with TLS

 

TLS Secured MQTT - Tasmota

 

Regards

 

Phil K

 

Sent from Mail for Windows

 

From: Ydb
Sent: 01 June 2022 18:48
To: TasmotaUsers
Subject: Re: Hivemq - Tasmota - Javascript

 

Tasmota only connects when I type 1883. Tried all other port numbers, can't connect.

1 Haziran 2022 Çarşamba tarihinde saat 20:21:27 UTC+3 itibarıyla knowles...@gmail.com şunları yazdı:

Ydb

unread,
Jun 4, 2022, 4:04:00 PM6/4/22
to TasmotaUsers
I guess tasmotaya cannot be reached via websocket via browser. So I decided to communicate with the android operating system over TCP. Thank you...

2 Haziran 2022 Perşembe tarihinde saat 15:50:55 UTC+3 itibarıyla knowles...@gmail.com şunları yazdı:
Reply all
Reply to author
Forward
0 new messages