Skip to content

Commit

Permalink
Add Valve controls
Browse files Browse the repository at this point in the history
  • Loading branch information
kbickar committed Nov 4, 2024
1 parent 029029c commit 2cfe679
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/v2/src/esp-entity-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,4 +549,9 @@ class ActionRenderer {
${target_temp_slider} ${modes}
`;
}
render_valve() {
if (!this.entity) return;
return html`${this._actionButton(this.entity, "| |", "open")}
${this._actionButton(this.entity, "|-|", "close")}`;
}
}
1 change: 1 addition & 0 deletions packages/v2/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export default defineConfig({
"/text": proxy_target,
"/date": proxy_target,
"/time": proxy_target,
"/valve": proxy_target,
},
},
});
5 changes: 5 additions & 0 deletions packages/v3/src/esp-entity-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -735,4 +735,9 @@ class ActionRenderer {
</div>
`;
}
render_valve() {
if (!this.entity) return;
return html`${this._actionButton(this.entity, "OPEN", "open")}
${this._actionButton(this.entity, "CLOSE", "close")}`;
}
}
1 change: 1 addition & 0 deletions packages/v3/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export default defineConfig({
"/text": proxy_target,
"/date": proxy_target,
"/time": proxy_target,
"/valve": proxy_target,
},
},
});

0 comments on commit 2cfe679

Please sign in to comment.