Skip to content

Commit

Permalink
Merge branch 'discoveryUpdates'
Browse files Browse the repository at this point in the history
  • Loading branch information
1mckenna committed Aug 24, 2023
2 parents a8fdfd9 + a092085 commit 45c5f1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ESP32 BLE Client for the Weber iGrill mini, iGrill mini v2, iGrillv2, iGrillv202
This will connect to an iGrill deivce and then publish the temperatures of the probes and the iGrill Device battery level to MQTT for use in Home Automation systems.

**Lastest Changes:**
- Update MQTT Autodiscovery to resolve [Home Assistant deprication warnings](https://github.com/1mckenna/esp32_iGrill/issues/32)
- If using the default temperature retain configuration temperature probes now are added/removed from MQTT as they are connected/disconnected.
- We now create sensors for iGrill device connectivity and the esp32 iGrill device
- The esp32 iGrill device's attributes are now easily viewable in the esp32 iGrill sensor
Expand Down
10 changes: 5 additions & 5 deletions esp32_iGrill.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ void publishSystemInfo()

DynamicJsonDocument infoSensorJSON(1024);
infoSensorJSON["device"] = deviceObj;
infoSensorJSON["name"] = "igrill_"+ iGrillMac + " Sensor";
infoSensorJSON["name"] = "System Info";
infoSensorJSON["icon"] = "mdi:chip";
infoSensorJSON["device_class"] = "connectivity";
infoSensorJSON["unique_id"] = "igrill_"+ iGrillMac +"_info";
Expand All @@ -1123,7 +1123,7 @@ void publishSystemInfo()

DynamicJsonDocument connectivitySensorJSON(1024);
connectivitySensorJSON["device"] = deviceObj;
connectivitySensorJSON["name"] = "igrill_"+ iGrillMac + " Connectivity";
connectivitySensorJSON["name"] = "Connectivity";
connectivitySensorJSON["icon"] = "mdi:grill";
connectivitySensorJSON["device_class"] = "connectivity";
connectivitySensorJSON["payload_on"] = "online";
Expand Down Expand Up @@ -1185,7 +1185,7 @@ void publishProbeTemp(int probeNum, int temp)
String probePayload = "";
DynamicJsonDocument probeJSON(1024);
probeJSON["device"] = deviceObj;
probeJSON["name"] = "igrill_"+iGrillMac+" Probe "+String(probeNum);
probeJSON["name"] = "Probe "+String(probeNum);
probeJSON["device_class"] = "temperature";
probeJSON["unique_id"] = "igrill_"+iGrillMac+"_probe"+String(probeNum);
probeJSON["state_topic"] = (String)custom_MQTT_BASETOPIC + "/sensor/igrill_"+ iGrillMac+"/probe_"+String(probeNum);
Expand Down Expand Up @@ -1254,7 +1254,7 @@ void mqttAnnounce()

DynamicJsonDocument battJSON(1024);
battJSON["device"] = deviceObj;
battJSON["name"] = "igrill_"+iGrillMac+" Battery Level";
battJSON["name"] = "Battery Level";
battJSON["device_class"] = "battery";
battJSON["unique_id"] = "igrill_"+iGrillMac+"_batt";
battJSON["state_topic"] = (String)custom_MQTT_BASETOPIC + "/sensor/igrill_"+iGrillMac+"/battery_level";
Expand All @@ -1265,7 +1265,7 @@ void mqttAnnounce()
{
DynamicJsonDocument proplvlJSON(1024);
proplvlJSON["device"] = deviceObj;
proplvlJSON["name"] = "igrill_"+iGrillMac+" Propane Level";
proplvlJSON["name"] = "Propane Level";
proplvlJSON["unique_id"] = "igrill_"+iGrillMac+"_prop";
proplvlJSON["state_topic"] = (String)custom_MQTT_BASETOPIC + "/sensor/igrill_"+iGrillMac+"/propane_level";
proplvlJSON["unit_of_measurement"] = "%";
Expand Down

0 comments on commit 45c5f1d

Please sign in to comment.