update
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -87,10 +87,12 @@ export class RoomGlanceCard extends LitElement {
|
||||
return html`
|
||||
<ha-icon-button
|
||||
icon="${buttonCfg.icon || "mdi:checkbox-blank"}"
|
||||
style="color: ${buttonCfg.color || ""};"
|
||||
title="${buttonCfg.name}"
|
||||
@click=${this.serviceHandler("scene", "turn_on", {entity_id: buttonCfg.scene})}
|
||||
></ha-icon-button>
|
||||
>
|
||||
<ha-icon style="color: ${buttonCfg.color || ""};"
|
||||
icon="${buttonCfg.icon || "mdi:checkbox-blank"}"></ha-icon>
|
||||
</ha-icon-button>
|
||||
`;
|
||||
}
|
||||
|
||||
@@ -99,18 +101,24 @@ export class RoomGlanceCard extends LitElement {
|
||||
<ha-icon-button
|
||||
icon="mdi:close-circle"
|
||||
@click=${this.serviceHandler("light", "turn_off")}
|
||||
></ha-icon-button>
|
||||
>
|
||||
<ha-icon icon="mdi:close-circle"></ha-icon>
|
||||
</ha-icon-button>
|
||||
|
||||
<ha-icon-button
|
||||
icon="mdi:chevron-up"
|
||||
title="Heller"
|
||||
@click=${this.serviceHandler("dimmer", "dim", {offset: 30})}
|
||||
></ha-icon-button>
|
||||
>
|
||||
<ha-icon icon="mdi:chevron-up"></ha-icon>
|
||||
</ha-icon-button>
|
||||
<ha-icon-button
|
||||
icon="mdi:chevron-down"
|
||||
title="Dunkler"
|
||||
@click=${this.serviceHandler("dimmer", "dim", {offset: -30})}
|
||||
></ha-icon-button>`;
|
||||
>
|
||||
<ha-icon icon="mdi:chevron-down"></ha-icon>
|
||||
</ha-icon-button>`;
|
||||
}
|
||||
|
||||
private renderCoverControl() {
|
||||
@@ -118,19 +126,27 @@ export class RoomGlanceCard extends LitElement {
|
||||
<ha-icon-button
|
||||
icon="hass:menu"
|
||||
@click=${this.serviceHandler("cover_half", "set_half")}
|
||||
></ha-icon-button>
|
||||
>
|
||||
<ha-icon icon="hass:menu"></ha-icon>
|
||||
</ha-icon-button>
|
||||
<ha-icon-button
|
||||
icon="hass:arrow-up"
|
||||
@click=${this.serviceHandler("cover", "open_cover")}
|
||||
></ha-icon-button>
|
||||
>
|
||||
<ha-icon icon="hass:arrow-up"></ha-icon>
|
||||
</ha-icon-button>
|
||||
<ha-icon-button
|
||||
icon="hass:stop"
|
||||
@click=${this.serviceHandler("cover", "stop_cover")}
|
||||
></ha-icon-button>
|
||||
>
|
||||
<ha-icon icon="hass:stop"></ha-icon>
|
||||
</ha-icon-button>
|
||||
<ha-icon-button
|
||||
icon="hass:arrow-down"
|
||||
@click=${this.serviceHandler("cover", "close_cover")}
|
||||
></ha-icon-button>
|
||||
>
|
||||
<ha-icon icon="hass:arrow-down"></ha-icon>
|
||||
</ha-icon-button>
|
||||
`;
|
||||
}
|
||||
|
||||
@@ -227,9 +243,7 @@ export class RoomGlanceCard extends LitElement {
|
||||
}
|
||||
|
||||
ha-icon {
|
||||
cursor: pointer;
|
||||
padding: 8px;
|
||||
color: #a9a9a9;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
ha-icon.state-on {
|
||||
|
||||
Reference in New Issue
Block a user