Closed DigiH closed 5 months ago
@riegelbrau
Could you check if this change from strstr to strcmp makes any difference to your TPMS Jansite-Solar fix at all.
It shouldn't really, but best to double check.
I copied the changed code into my platformio workspace with the actual development branch, compiled and tested the creation of my TPMS sensor. It's still working as expected!
{
"stat_t": "+/+/RTL_433toMQTT/TPMS/Jansite-Solar/5e512a",
"dev_cla": "temperature",
"unit_of_meas": "°C",
"name": "Temperature",
"uniq_id": "TPMS-Jansite-Solar-5e512a-temperature_C",
"val_tpl": "{{ value_json.temperature_C }}",
"state_class": "measurement",
"device": {
"ids": [
"TPMS-Jansite-Solar-5e512a"
],
"cns": [
[
"mac",
"TPMS-Jansite-Solar-5e512a"
]
],
"mdl": "Jansite-Solar",
"name": "TPMS-Jansite-Solar-5e512a",
"via_device": "OMG_lilygo_rtl_433_ESP_OOK_CBTEST"
}
}
Thanks for the testing and confirmation @riegelbrau
Thanks
To avoid auto-discovery issues due to substring comparison at https://github.com/1technophile/OpenMQTTGateway/blob/development/main/ZgatewayRTL_433.ino#L128
strcmp instead of substring only strstr
Checklist: