[RF] rtl_433_ESP to version 0.3.0 (#1668)
Update to rtl_433_ESP 0.3.0 Resolves issue with sx127x chipset and receiving higher frequencies Includes support for receiving FSK signals, requires compiler directive OOK_MODULATION=false to switch to FSK mode Adds unit of measure for rtl_433/battery_ok devices RTL_433_ESP Battery Auto Discovery Missing Unit of Measurement #1644 Updates value template for rtl_433/battery_ok in openHab mode Resolves out of stack space crash lilygo-rtl_433 crash after chacon remote control button pressed #1655
This commit is contained in:
1 parent
d3a53cef93
commit
7f7eed8812
4 files changed
+14
-3
No files matched your search
@@ -129,7 +129,11 @@ void launchRTL_433Discovery(bool overrideDiscovery) {
|
||||
DISCOVERY_TRACE_LOG(F("idWoKey %s" CR), idWoKey.c_str());
|
||||
String value_template = "{{ value_json." + String(parameters[i][0]) + " | is_defined }}";
|
||||
if (strcmp(parameters[i][0], "battery_ok") == 0) {
|
||||
value_template = "{{ float(value_json." + String(parameters[i][0]) + ") * 99 + 1 | is_defined }}"; // https://github.com/merbanan/rtl_433/blob/93f0f30c28cfb6b82b8cc3753415b01a85bee91d/examples/rtl_433_mqtt_hass.py#L187
|
||||
if (OpenHABDisc) {
|
||||
value_template = "{{ value_json." + String(parameters[i][0]) + " * 99 + 1 }}"; // https://github.com/merbanan/rtl_433/blob/93f0f30c28cfb6b82b8cc3753415b01a85bee91d/examples/rtl_433_mqtt_hass.py#L187
|
||||
} else {
|
||||
value_template = "{{ float(value_json." + String(parameters[i][0]) + ") * 99 + 1 | is_defined }}"; // https://github.com/merbanan/rtl_433/blob/93f0f30c28cfb6b82b8cc3753415b01a85bee91d/examples/rtl_433_mqtt_hass.py#L187
|
||||
}
|
||||
}
|
||||
String topic = subjectRTL_433toMQTT;
|
||||
# if valueAsATopic
|
||||
|
||||
Reference in new issue
Block a user