Add contactor state to more battery info

This commit is contained in:
Daniel Öster 2025-09-11 23:27:15 +03:00
parent 29e6f52c4c
commit 0aad11d9bc
3 changed files with 13 additions and 2 deletions

View file

@ -384,7 +384,16 @@ class EcmpHtmlRenderer : public BatteryHtmlRenderer {
"</h4>";
if (datalayer_extended.stellantisECMP.MysteryVan) {
content += "<h4>MysteryVan platform detected!</h4>";
content += "<h3>MysteryVan platform detected!</h3>";
content += "<h4>Contactor State: ";
if (datalayer_extended.stellantisECMP.CONTACTORS_STATE == 0) {
content += "Open";
} else if (datalayer_extended.stellantisECMP.CONTACTORS_STATE == 1) {
content += "Precharge";
} else if (datalayer_extended.stellantisECMP.CONTACTORS_STATE == 2) {
content += "Closed";
}
content += "</h4>";
content += "<h4>Crash Memorized: ";
if (datalayer_extended.stellantisECMP.CrashMemorized) {
content += "Yes</h4>";