Skip to content

Commit

Permalink
Add COP
Browse files Browse the repository at this point in the history
  • Loading branch information
wrfz committed Nov 19, 2024
1 parent ede7089 commit c78b812
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
4 changes: 3 additions & 1 deletion dist/hpsu-dashboard-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ const entities_configuration = [
{ id: "speicher_soll", label: "Speicher Soll", type: "select", rectId: "speicher_soll_value", offset: 6, unit: "°C" },
{ id: "mischer", label: "Mischer", type: "sensor", rectId: "dhw_mixer_value", offset: 6, unit: "%", fontSize: "40px" },
{ id: "bypass", label: "Bypass", type: "sensor", rectId: "bypass_value", offset: 6, unit: "%", fontSize: "40px" },
{ id: "fehlercode", label: "Fehlercode", type: "text_sensor", rectId: "fehlercode_value", offset: 6, fontSize: "40px", align: "left", "suffix": "Fehlercode: " },
{ id: "betriebsmodus", label: "Betriebsmodus", type: "select", rectId: "betriebsmodus_value", offset: 6, fontSize: "40px", align: "left", "suffix": "Modus: " },
{ id: "betriebsart", label: "Betriebsart", type: "text_sensor", rectId: "betriebsart_value", offset: 6, fontSize: "40px", align: "left", "suffix": "Betriebsart: " },
{ id: "thermische_leistung", label: "Thermische Leistung", type: "sensor", rectId: "therm_leistung_value", offset: 6, fontSize: "40px", align: "left", "suffix": "Therm. Leistung: " },
{ id: "fehlercode", label: "Fehlercode", type: "text_sensor", rectId: "fehlercode_value", offset: 6, fontSize: "40px", align: "left", "suffix": "Fehlercode: " }
{ id: "cop", label: "COP", type: "sensor", rectId: "cop_value", offset: 6, fontSize: "40px", align: "left", "suffix": "COP: ", required: false }
];

//////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -231,6 +232,7 @@ class HPSUDashboardCard extends HTMLElement {
state.labelElement.textContent = "N/D";
state.labelElement.setAttribute("fill", "orange");
state.labelElement.setAttribute("font-size", "30px");
state.labelElement.setAttribute("display", state.required === false ? "none" : "block");
} else if (newState.state == "unknown" || newState.state == "unavailable") {
state.labelElement.textContent = "N/A";
state.labelElement.setAttribute("fill", "orange");
Expand Down
24 changes: 15 additions & 9 deletions dist/hpsu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c78b812

Please sign in to comment.