${friendlyNameStr} is currently ${stateStr}.
+ `;
+ if (stateStr == 'on') {
+ conthtml += `
+
The ${courseNameStr} progress is ${stageNameStr}.
+
There's ${remainTimeStr} remaining out of ${totalTimeStr} total.
+ `;
+ if (worked) {
+ conthtml += `
+
+
+
+ `;
+ conthtml = conthtml.replace("8px 9px 12px 5px", "16px 9px 12px 5px");
+ } else {
+ conthtml += "";
+ }
+ } else {
+ conthtml += "";
+ }
+ this.content.innerHTML = conthtml;
+ }
+ setConfig(config) {
+ if (!config.entity) {
+ throw new Error('You need to define a laundry entity');
+ }
+ this.config = config;
+ }
+ getCardSize() {
+ return 3;
+ }
+ static getStubConfig() {
+ return { entity: "sensor.my_washing_machine" };
+ }
+}
+
+customElements.define('lg-laundry-card', LgLaundryCard);
+window.customCards.push({type: "lg-laundry-card", name: "LG laundry card", description: "Card for LG laundry machines."});
+```
+
+Lovelace:
+```yaml
+type: 'custom:lg-laundry-card'
+entity: 'sensor.the_dryer_dryer' # Washers work too!
+```
+
+