Skip to content

Commit

Permalink
[BT] Bump Theengs Decoder to 1.6.3 (#1811)
Browse files Browse the repository at this point in the history
  • Loading branch information
1technophile authored Nov 20, 2023
1 parent 2fcfc0f commit 87b26c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions main/ZgatewayBT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1029,14 +1029,6 @@ void launchBTDiscovery(bool overrideDiscovery) {
0, "", "", false, "",
model.c_str(), brand.c_str(), model_id.c_str(), macWOdots.c_str(), false,
stateClassMeasurement, nullptr, nullptr, "[\"lb\",\"kg\",\"jin\"]");
} else if (strcmp(prop.key().c_str(), "pres") == 0 || strcmp(prop.key().c_str(), "movement") == 0) {
createDiscovery("binary_sensor",
discovery_topic.c_str(), entity_name.c_str(), unique_id.c_str(),
will_Topic, "motion", value_template.c_str(), // Idealy we should have the decoder give the name here as "motion" but for now it gives "presence"
"True", "False", "",
BTConfig.presenceAwayTimer, "", "", false, "",
model.c_str(), brand.c_str(), model_id.c_str(), macWOdots.c_str(), false,
stateClassNone);
} else if (strcmp(prop.value()["unit"], "string") == 0 && strcmp(prop.key().c_str(), "mac") != 0) {
createDiscovery("sensor",
discovery_topic.c_str(), entity_name.c_str(), unique_id.c_str(),
Expand Down
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ [email protected]
rtl_433_ESP = https://github.com/NorthernMan54/rtl_433_ESP.git#v0.3.0
emodbus = miq19/[email protected]
gfSunInverter = https://github.com/BlackSmith/GFSunInverter.git#v1.0.1
decoder = https://github.com/theengs/decoder.git#v1.6.2
decoder = https://github.com/theengs/decoder.git#v1.6.3
ssd1306 = https://github.com/ThingPulse/esp8266-oled-ssd1306.git#f96fd6a
lm75 = jeremycole/I2C Temperature Sensors derived from the LM75@^1.0.3
rn8209 = https://github.com/theengs/RN8209C-SDK.git#arduino
Expand Down

0 comments on commit 87b26c8

Please sign in to comment.