Skip to content

Commit

Permalink
fixed temperature on a.0.1 conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Tihomir Heidelberg committed Jun 20, 2024
1 parent 59088d9 commit b1e8cff
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 24 deletions.
6 changes: 3 additions & 3 deletions dist/BioTec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import {
html,
} from "https://unpkg.com/[email protected]/lit-element.js?module";

import { DisplaySubArea } from "./DisplaySubArea.js?v=0.0.26"
import { Display } from "./Display.js?v=0.0.26"
import { DisplaySubArea } from "./DisplaySubArea.js?v=0.0.27"
import { Display } from "./Display.js?v=0.0.27"

export class BioTecDisplay extends Display {

Expand Down Expand Up @@ -256,7 +256,7 @@ export class BioTecDisplay extends Display {
${this.conditional(
this.values["boiler_state"] === "OFF",
this.createText("", 32,
"display:block; background-repeat: no-repeat; background-image: url('" + this.images_folder + "img/start_stop.png?v=0.0.26'); background-position: 0px 0px;",
"display:block; background-repeat: no-repeat; background-image: url('" + this.images_folder + "img/start_stop.png?v=0.0.27'); background-position: 0px 0px;",
945, 480, 36, 36, 2, -1))}
${this.conditional(
this.values["command_active"] == 0 && this.values["boiler_state"] !== "OFF",
Expand Down
6 changes: 3 additions & 3 deletions dist/BioTecPlus.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import {
html,
} from "https://unpkg.com/[email protected]/lit-element.js?module";

import { DisplaySubArea } from "./DisplaySubArea.js?v=0.0.26"
import { DisplayWithPowerButton } from "./DisplayWithPowerButton.js?v=0.0.26"
import { DisplaySubArea } from "./DisplaySubArea.js?v=0.0.27"
import { DisplayWithPowerButton } from "./DisplayWithPowerButton.js?v=0.0.27"

export class BioTecPlusDisplay extends DisplayWithPowerButton {

Expand Down Expand Up @@ -171,7 +171,7 @@ export class BioTecPlusDisplay extends DisplayWithPowerButton {
${this.conditional(this.values["boiler_state"] != "OFF",
this.createImage("peltec/playradi.gif", 942, 390, 40, null, 4, "boiler_state"),
this.createText("", 32,
"display:block; background-repeat: no-repeat; background-image: url('" + this.images_folder + "img/start_stop.png?v=0.0.26'); background-position: 0px 0px;",
"display:block; background-repeat: no-repeat; background-image: url('" + this.images_folder + "img/start_stop.png?v=0.0.27'); background-position: 0px 0px;",
945, 390, 36, 36, 4, null, "boiler_state"))}
<!-- Buffers -->
Expand Down
13 changes: 7 additions & 6 deletions dist/CmPelet.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import {
html,
} from "https://unpkg.com/[email protected]/lit-element.js?module";

import { DisplaySubArea } from "./DisplaySubArea.js?v=0.0.26"
import { DisplayWithPowerButton } from "./DisplayWithPowerButton.js?v=0.0.26"
import { DisplaySubArea } from "./DisplaySubArea.js?v=0.0.27"
import { DisplayWithPowerButton } from "./DisplayWithPowerButton.js?v=0.0.27"

export class CmPeletDisplay extends DisplayWithPowerButton {

Expand Down Expand Up @@ -33,11 +33,12 @@ export class CmPeletDisplay extends DisplayWithPowerButton {
this.configureParameter("sensor.cm_pelet", "operation_mode|b_zlj", "optional")
this.configureParameter("sensor.cm_pelet", "boiler_operational", "optional")
this.configureParameter("sensor.cm_pelet", "additional_features", "optional")
this.configureParameter("sensor.cm_pelet", "centroplus", "optional") // "b_cp"
this.configureParameter("sensor.cm_pelet", "centroplus|b_cp", "optional")
this.configureParameter("sensor.cm_pelet", "b_smd", "optional", 0)
this.configureParameter("sensor.cm_pelet", "freeze_guard", "optional")
this.configureParameter("sensor.cm_pelet", "freeze_monitor", "optional")
this.configureParameter("sensor.cm_pelet", "b_tpov1", "optional")
this.configureParameter("sensor.cm_pelet", "circuit_1_flow_measured_temperature|c1b_tpol1", "optional")

// Service
this.configureParameter("switch.cm_pelet", "boiler_switch")
Expand Down Expand Up @@ -101,7 +102,7 @@ export class CmPeletDisplay extends DisplayWithPowerButton {
${this.conditional(
(this.values['b_smd'] == 0 || this.values["firmware_version"] < 'v1.25') && this.values["boiler_state"] === "OFF",
this.createText("", 32,
"display:block; background-repeat: no-repeat; background-image: url('" + this.images_folder + "peltec/start_stop.png?v=0.0.26'); background-position: 0px 0px;",
"display:block; background-repeat: no-repeat; background-image: url('" + this.images_folder + "peltec/start_stop.png?v=0.0.27'); background-position: 0px 0px;",
945, 390, 36, 36, 2, -1))}
${this.conditional(
(this.values['b_smd'] == 0 || this.values["firmware_version"] < 'v1.25') &&
Expand Down Expand Up @@ -269,8 +270,8 @@ export class CmPeletDisplay extends DisplayWithPowerButton {
${this.a02area.createImage("cmpelet/krug_grijanja.png", 100, -10, 80, "auto", 3)}
${this.a02area.createImage("cmpelet/senzor_vodoravni_2.png", 80, 60, 45, null, 3)}
${this.a02area.createText("M", 28, "color: #ffffff; text-align: center;", 140, 65)}
${this.a02area.createText(this.formatTemperature("circuit_1_flow_temperature", "-.-") + " °C", 20, "color: #ffffff; text-align: right;",
40, 87, null, null, 3, null, "circuit_1_flow_temperature")}
${this.a02area.createText(this.formatTemperature("circuit_1_flow_measured_temperature", "-.-") + " °C", 20, "color: #ffffff; text-align: right;",
40, 87, null, null, 3, null, "circuit_1_flow_measured_temperature")}
${this.conditional(
"circuit_1_pump" in this.values && this.values["circuit_1_pump"] == 1,
this.a02area.createImage("cmpelet/pumpaokrece.gif", 100, 11, 53, null, 4, "circuit_1_pump"),
Expand Down
2 changes: 1 addition & 1 deletion dist/Display.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DisplayArea } from "./DisplayArea.js?v=0.0.26"
import { DisplayArea } from "./DisplayArea.js?v=0.0.27"

export class Display extends DisplayArea {

Expand Down
4 changes: 2 additions & 2 deletions dist/DisplayArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class DisplayArea {
image = image.substring(0, image.length - 1);
style += " pointer-events: none;"
}
image = this.images_folder + image + "?v=0.0.26";
image = this.images_folder + image + "?v=0.0.27";
return html`<img src="${image}" style="${style}" @click=${onClickFunction} />`;
}

Expand Down Expand Up @@ -136,7 +136,7 @@ export class DisplayArea {
this.updateGeometryFromParent()
return html`
<div class="card-content" style="position: relative; top: 0; left: 0; padding: 0px; width: auto; height: auto; line-height: ${26 * this.scale_factor}px;">
<img src="${this.images_folder}${background_image}?v=0.0.26" style="width: 100%; top: 0; left: 0; position: relative; border-radius: var(--ha-card-border-radius, 4px); display: block;" />
<img src="${this.images_folder}${background_image}?v=0.0.27" style="width: 100%; top: 0; left: 0; position: relative; border-radius: var(--ha-card-border-radius, 4px); display: block;" />
${content}
</div>`;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/DisplaySubArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
html,
} from "https://unpkg.com/[email protected]/lit-element.js?module";

import { DisplayArea } from "./DisplayArea.js?v=0.0.26"
import { DisplayArea } from "./DisplayArea.js?v=0.0.27"

export class DisplaySubArea extends DisplayArea {

Expand Down
2 changes: 1 addition & 1 deletion dist/DisplayWithPowerButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
html,
} from "https://unpkg.com/[email protected]/lit-element.js?module";

import { Display } from "./Display.js?v=0.0.26"
import { Display } from "./Display.js?v=0.0.27"

export class DisplayWithPowerButton extends Display {

Expand Down
6 changes: 3 additions & 3 deletions dist/PelTec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import {
html,
} from "https://unpkg.com/[email protected]/lit-element.js?module";

import { DisplaySubArea } from "./DisplaySubArea.js?v=0.0.26"
import { DisplayWithPowerButton } from "./DisplayWithPowerButton.js?v=0.0.26"
import { DisplaySubArea } from "./DisplaySubArea.js?v=0.0.27"
import { DisplayWithPowerButton } from "./DisplayWithPowerButton.js?v=0.0.27"

export class PelTecDisplay extends DisplayWithPowerButton {

Expand Down Expand Up @@ -196,7 +196,7 @@ export class PelTecDisplay extends DisplayWithPowerButton {
${this.conditional(
this.values["boiler_state"] === "OFF",
this.createText("", 32,
"display:block; background-repeat: no-repeat; background-image: url('" + this.images_folder + "peltec/start_stop.png?v=0.0.26'); background-position: 0px 0px;",
"display:block; background-repeat: no-repeat; background-image: url('" + this.images_folder + "peltec/start_stop.png?v=0.0.27'); background-position: 0px 0px;",
945, 390, 36, 36, 2, -1))}
${this.conditional(
this.values["command_active"] == 0 && this.values["boiler_state"] !== "OFF",
Expand Down
8 changes: 4 additions & 4 deletions dist/centrometal-boiler-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import {
LitElement,
} from "https://unpkg.com/[email protected]/lit-element.js?module";

import { PelTecDisplay } from "./PelTec.js?v=0.0.26"
import { CmPeletDisplay } from "./CmPelet.js?v=0.0.26"
import { BioTecDisplay } from "./BioTec.js?v=0.0.26"
import { BioTecPlusDisplay } from "./BioTecPlus.js?v=0.0.26"
import { PelTecDisplay } from "./PelTec.js?v=0.0.27"
import { CmPeletDisplay } from "./CmPelet.js?v=0.0.27"
import { BioTecDisplay } from "./BioTec.js?v=0.0.27"
import { BioTecPlusDisplay } from "./BioTecPlus.js?v=0.0.27"

class LovelaceCentrometalBoilerCard extends LitElement {

Expand Down

0 comments on commit b1e8cff

Please sign in to comment.