From 22e24f867a339304d71bea34b9342d51a2a2c8c6 Mon Sep 17 00:00:00 2001 From: Jesse Ostrander Date: Mon, 10 Jan 2022 12:00:11 -0500 Subject: [PATCH 1/2] Add Coolant Temperature for ICE vehicles --- src/mqtt.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mqtt.js b/src/mqtt.js index 4bf529c..8e43f6d 100644 --- a/src/mqtt.js +++ b/src/mqtt.js @@ -205,6 +205,8 @@ class MQTT { case 'HYBRID BATTERY MINIMUM TEMPERATURE': case 'AMBIENT AIR TEMPERATURE': case 'AMBIENT AIR TEMPERATURE F': + case 'ENGINE COOLANT TEMP': + case 'ENGINE COOLANT TEMP F': return this.mapSensorConfigPayload(diag, diagEl, 'temperature'); case 'EV BATTERY LEVEL': return this.mapSensorConfigPayload(diag, diagEl, 'battery'); From dede5b833b444f2562f4cb6db1ada03a58777e80 Mon Sep 17 00:00:00 2001 From: Jesse Ostrander Date: Mon, 10 Jan 2022 12:15:35 -0500 Subject: [PATCH 2/2] Fix Tire Pressure PSI Placard. Closes #85 --- src/mqtt.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mqtt.js b/src/mqtt.js index 8e43f6d..2643f3f 100644 --- a/src/mqtt.js +++ b/src/mqtt.js @@ -213,19 +213,19 @@ class MQTT { case 'TIRE PRESSURE LF': return this.mapSensorConfigPayload(diag, diagEl, 'pressure', 'Tire Pressure: Left Front', `{{ {'recommendation': value_json.${MQTT.convertName('TIRE_PRESSURE_PLACARD_FRONT')}} | tojson }}`); case 'TIRE PRESSURE LF PSI': - return this.mapSensorConfigPayload(diag, diagEl, 'pressure', 'Tire Pressure: Left Front PSI', `{{ {'recommendation': value_json.${MQTT.convertName('TIRE_PRESSURE_PLACARD_FRONT')}} | tojson }}`); + return this.mapSensorConfigPayload(diag, diagEl, 'pressure', 'Tire Pressure: Left Front PSI', `{{ {'recommendation': value_json.${MQTT.convertName('TIRE_PRESSURE_PLACARD_FRONT_PSI')}} | tojson }}`); case 'TIRE PRESSURE LR': return this.mapSensorConfigPayload(diag, diagEl, 'pressure', 'Tire Pressure: Left Rear', `{{ {'recommendation': value_json.${MQTT.convertName('TIRE_PRESSURE_PLACARD_REAR')}} | tojson }}`); case 'TIRE PRESSURE LR PSI': - return this.mapSensorConfigPayload(diag, diagEl, 'pressure', 'Tire Pressure: Left Rear PSI', `{{ {'recommendation': value_json.${MQTT.convertName('TIRE_PRESSURE_PLACARD_REAR')}} | tojson }}`); + return this.mapSensorConfigPayload(diag, diagEl, 'pressure', 'Tire Pressure: Left Rear PSI', `{{ {'recommendation': value_json.${MQTT.convertName('TIRE_PRESSURE_PLACARD_REAR_PSI')}} | tojson }}`); case 'TIRE PRESSURE RF': return this.mapSensorConfigPayload(diag, diagEl, 'pressure', 'Tire Pressure: Right Front', `{{ {'recommendation': value_json.${MQTT.convertName('TIRE_PRESSURE_PLACARD_FRONT')}} | tojson }}`); case 'TIRE PRESSURE RF PSI': - return this.mapSensorConfigPayload(diag, diagEl, 'pressure', 'Tire Pressure: Right Front PSI', `{{ {'recommendation': value_json.${MQTT.convertName('TIRE_PRESSURE_PLACARD_FRONT')}} | tojson }}`); + return this.mapSensorConfigPayload(diag, diagEl, 'pressure', 'Tire Pressure: Right Front PSI', `{{ {'recommendation': value_json.${MQTT.convertName('TIRE_PRESSURE_PLACARD_FRONT_PSI')}} | tojson }}`); case 'TIRE PRESSURE RR': return this.mapSensorConfigPayload(diag, diagEl, 'pressure', 'Tire Pressure: Right Rear', `{{ {'recommendation': value_json.${MQTT.convertName('TIRE_PRESSURE_PLACARD_REAR')}} | tojson }}`); case 'TIRE PRESSURE RR PSI': - return this.mapSensorConfigPayload(diag, diagEl, 'pressure', 'Tire Pressure: Right Rear PSI', `{{ {'recommendation': value_json.${MQTT.convertName('TIRE_PRESSURE_PLACARD_REAR')}} | tojson }}`); + return this.mapSensorConfigPayload(diag, diagEl, 'pressure', 'Tire Pressure: Right Rear PSI', `{{ {'recommendation': value_json.${MQTT.convertName('TIRE_PRESSURE_PLACARD_REAR_PSI')}} | tojson }}`); // binary sensor case 'EV PLUG STATE': // unplugged/plugged return this.mapBinarySensorConfigPayload(diag, diagEl, 'plug');