New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No STATE or SENSOR via MQTT - RSL instead of MQT #3386
Comments
Have you checked mqtt connection? |
MQTT is working absolutely fine, i can send commands via mqtt to power on/off and also receive the results via mqtt if i press the button on the SP1. Just pressed the button to show the console-results:
|
I think you have somewhere a mistake in your mqtt topic definition. |
I had the SP1 on tasmota stock-settings yesterday, changing the topics to my standard was just another try to get it running somehow and i also saw the order xxx/%topic%/%prefix%/ in some official tasmota documents, so it should be valid :( |
@hofismp Your full topic look strange. let try to use the TASMOTA default full topic first, if any thing is ok then you can change them to your favorite.
|
If the log say RSL instead of MQT, it doesn't believe everything is fine. Having * in the topic is probably a very bad idea. Most likely, your environment is one that doesn't do well with core 2.4.1. switch to core 2.3.0 and it will probably work better. |
@Frogmore42 the * is from "add bold text" in this forum tool bar that I want to highlight it. i don't why it does not show as Bold. |
Thanks so far, i'm still confused that almost all topics always work and two others dont, where is the crucial difference... |
Maybe i found at least the difference beween the working and non working topics. |
I flashed again with PlatformIO and core 2.3.0 and it's working! It even kept all my setttings.
Thanks for all your suggestions :) |
Hi hofismp, Arduino 1.8.5 |
The information is in the wiki and a few other issues, search for core 2.3.0 and I am sure you will find it. |
See #3427 and the other previous issue that it links to. |
VSCode+PlatformIO made my day too! |
@ggoelles thank you for your replay i try it out tomorrow. :-) |
@ggoelles Thank you for your help. |
With MQTT_LIBRARY_TYPE=MQTT_PUBSUBCLIENT I have similar troubles after update to the latest version. Some messages go to MQT, but the state - only to RSL:
with MQTT_LIBRARY_TYPE=MQTT_ARDUINOMQTT - it seems problem gone: |
Guys, do you have directive MQTT_LIBRARY_TYPE in "my_user_config.h" at all? I do not think it is even used. In ver 6.2.1 it was present in user_config.h /-------------------------------------------------------------------------------------------\
|
OK, so leaving code in: |
Yen IT helped me too. But After a while IT will Come again. |
I have the same issue but in tasmota 6.5. Anyone can help me ? 23:28:43 MQT: Attempting connection... |
same problem here: 00:00:00 CFG: Loaded from flash at F4, Count 8 I've graded down to version 5.12, mqtt is working well. |
:)
|
Great that you found your issue. If you use platformio, this change is already there in the lib folder. If you use arduino ide, you must copy all the libraries provided in the lib folder, because those are adapted or optimized for Tasmota. These steps of compiler usage are explained in the docs. |
Make sure these boxes are checked [x] before submitting your issue - Thank you!
status 0
:Hi there,
i flashed a gosund SP1 yesterday and everything is working fine except one thing.
Telemetry (STATE/SENSOR) gets displayed fine in the console but not transmitted via MQTT.
Every Console-Message containing "MQT:" in front gets delivered fine.
Even if i publish STATUS 10 via MQTT i get the Output only on the console, beginning with RSL instead of MQT.
I think it's not a telemetry-problem in general, because i receive the telemetry-topics LWT, INFO1, INFO2, INFO3 on every reboot of the SP1.
Here is a short snippet showing the STATE and SENSOR working in general but not to mqtt
Any ideas?
Thanks in advance and best regards
Hofi
The text was updated successfully, but these errors were encountered: