Skip to content

Commit

Permalink
"event" property discovery fix
Browse files Browse the repository at this point in the history
"event" property discovery fix, only for Giovee-Water to have moisture device class
  • Loading branch information
DigiH committed May 29, 2024
1 parent 99731b0 commit 76f7352
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main/ZgatewayRTL_433.ino
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ void launchRTL_433Discovery(bool overrideDiscovery) {
} else if (strcmp(parameters[i][0], "event") == 0 && strcmp(pdevice->modelName, "Govee-Water") == 0) { //the entity will detect Water Leak Event and go back to Off state after 60seconds
createDiscovery("binary_sensor", //set Type
(char*)topic.c_str(), parameters[i][1], pdevice->uniqueId, //set state_topic,name,uniqueId
"", parameters[i][3], (char*)value_template.c_str(), //set availability_topic,device_class,value_template,
"", "moisture", (char*)value_template.c_str(), //set availability_topic,device_class,value_template,
"Water Leak", "", parameters[i][2], //set,payload_on,payload_off,unit_of_meas,
60, //set off_delay
"", "", false, "", //set,payload_available,payload_not available ,is a gateway entity, command topic
Expand Down
2 changes: 1 addition & 1 deletion main/config_RF.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const char parameters[53][4][24] = {
{"co2_ppm", "Carbon Dioxide", "ppm", "carbon_dioxide"},
{"depth_cm", "depth", "cm", "distance"},
{"estimated_pm10_0_ug_m3", "estimated PM10", "μg/m³", "pm10"},
{"event", "Status", "", "moisture"},
{"event", "Status", "", ""},
{"group", "Group", "", ""},
{"gust_speed_km_h", "gust speed", "km/h", "wind_speed"},
{"gust_speed_m_s", "gust speed", "m/s", "wind_speed"},
Expand Down

0 comments on commit 76f7352

Please sign in to comment.