-
Notifications
You must be signed in to change notification settings - Fork 792
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
Wrong state topic (stat_t) in homeassistant config payload for TPMS-Jansite-Solar #1909
Comments
Ther is another mismatch. The state topic in the config message should include TPMS like this: |
Any comments or findings regarding this issue? |
I tried to figure out, where in the code the wrong stat_t payload is created, but without success, because I am not familiar with this kind of cpp development. May be someone can do this? |
Hello, Thanks for the detailled issue. I would advise to take a look at: OpenMQTTGateway/main/ZgatewayRTL_433.ino Line 145 in 417d28f
This is where the magic happens |
I found the reason for the wrong state topic. |
When I use a sensor, that is not already present in openHAB, the corresponding Thing appears in the Inbox. So this case is now working for me. |
I checked the source code of rtl_433_esp and figured out, that the type is published only for the TPMS sensors. So all these sensors will run into this bug. I was a programmer in Assembler, Cobol, LotusScript and some scripting languages, but I'm not familiar with the frameworks used here. Please advise, what to do or where to read how to proceed. Regards Christoph |
You can start by downloading GitHub desktop, create a branch, push it and submit a PR from it. |
This issue is stale because it has been open for 90 days with no activity. |
This issue should be solved by #1960. |
The TPMS-Jansite-Solar is supported by OMG since FSK can be enabled. With OMG 1.60 and 1.70 I face the following behaviour running OMG on a LilyGo. The sensor data is sent with the mqtt topic
OMG/OMG_lilygo_rtl_433_ESP/RTL_433toMQTT/TPMS/Jansite-Solar/5e512a
and this payloadWhen ohdisc=true is set, the HASS config message for openHAB is created under this topic:
homeassistant/sensor/TPMS-Jansite-Solar-5e512a-pressure_kPa/config
(example for pressure).The payload is
As you can see, the json value for stat_t contains the wrong topic
+/+/RTL_433toMQTT/Jansite-SolarSolar/5e512a
. The type partTPMS
is missing and the two consecutive stringsSolarSolar
look like a typo, where only one should be.Steps to reproduce the behavior:
Expected behavior:
The config message should contain
"stat_t": "+/+/RTL_433toMQTT/Jansite-Solar/5e512a"
Screenshots
MQTT explorer shows this config message:
Environment (please complete the following information):
Where do I see the version of RCSwitch library?
Additional context
OMG Information:
```
I posted this in the community earlier without getting any comments: https://community.openmqttgateway.com/t/still-mismatch-between-ha-config-message-and-real-topic-from-rtl-433-esp/2964
Regards, Christoph
The text was updated successfully, but these errors were encountered: