mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
parent
a08884fed6
commit
2cc196e3fb
@ -37,7 +37,7 @@ class HuiPlantStatusCard extends LitElement implements LovelaceCard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static getStubConfig(): object {
|
public static getStubConfig(): object {
|
||||||
return {};
|
return { entity: "" };
|
||||||
}
|
}
|
||||||
|
|
||||||
@property() public hass?: HomeAssistant;
|
@property() public hass?: HomeAssistant;
|
||||||
|
@ -22,13 +22,25 @@ export class HuiEntityEditor extends LitElement {
|
|||||||
|
|
||||||
@property() protected entities?: EntityConfig[];
|
@property() protected entities?: EntityConfig[];
|
||||||
|
|
||||||
|
@property() protected label?: string;
|
||||||
|
|
||||||
protected render(): TemplateResult | void {
|
protected render(): TemplateResult | void {
|
||||||
if (!this.entities) {
|
if (!this.entities) {
|
||||||
return html``;
|
return html``;
|
||||||
}
|
}
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<h3>Entities</h3>
|
<h3>
|
||||||
|
${this.label ||
|
||||||
|
this.hass!.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.entities"
|
||||||
|
) +
|
||||||
|
" (" +
|
||||||
|
this.hass!.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.required"
|
||||||
|
) +
|
||||||
|
")"}
|
||||||
|
</h3>
|
||||||
<div class="entities">
|
<div class="entities">
|
||||||
${this.entities.map((entityConf, index) => {
|
${this.entities.map((entityConf, index) => {
|
||||||
return html`
|
return html`
|
||||||
|
@ -37,7 +37,12 @@ export class HuiThemeSelectEditor extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<paper-dropdown-menu
|
<paper-dropdown-menu
|
||||||
.label=${this.label ||
|
.label=${this.label ||
|
||||||
this.hass!.localize("ui.panel.lovelace.editor.theme_select.theme")}
|
this.hass!.localize("ui.panel.lovelace.editor.card.generic.theme") +
|
||||||
|
" (" +
|
||||||
|
this.hass!.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
) +
|
||||||
|
")"}
|
||||||
dynamic-align
|
dynamic-align
|
||||||
@value-changed="${this._changed}"
|
@value-changed="${this._changed}"
|
||||||
>
|
>
|
||||||
|
@ -63,22 +63,29 @@ export class HuiAlarmPanelCardEditor extends LitElement
|
|||||||
return html`
|
return html`
|
||||||
${configElementStyle}
|
${configElementStyle}
|
||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
<div class="side-by-side">
|
<ha-entity-picker
|
||||||
<paper-input
|
.label="${this.hass.localize(
|
||||||
label="Name"
|
"ui.panel.lovelace.editor.card.generic.entity"
|
||||||
.value="${this._name}"
|
)} (${this.hass.localize(
|
||||||
.configValue="${"name"}"
|
"ui.panel.lovelace.editor.card.config.required"
|
||||||
@value-changed="${this._valueChanged}"
|
)})"
|
||||||
></paper-input>
|
.hass="${this.hass}"
|
||||||
<ha-entity-picker
|
.value="${this._entity}"
|
||||||
.hass="${this.hass}"
|
.configValue=${"entity"}
|
||||||
.value="${this._entity}"
|
domain-filter="alarm_control_panel"
|
||||||
.configValue=${"entity"}
|
@change="${this._valueChanged}"
|
||||||
domain-filter="alarm_control_panel"
|
allow-custom-entity
|
||||||
@change="${this._valueChanged}"
|
></ha-entity-picker>
|
||||||
allow-custom-entity
|
<paper-input
|
||||||
></ha-entity-picker>
|
.label="${this.hass.localize(
|
||||||
</div>
|
"ui.panel.lovelace.editor.card.generic.name"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
|
.value="${this._name}"
|
||||||
|
.configValue="${"name"}"
|
||||||
|
@value-changed="${this._valueChanged}"
|
||||||
|
></paper-input>
|
||||||
<span>Used States</span> ${this._states.map((state, index) => {
|
<span>Used States</span> ${this._states.map((state, index) => {
|
||||||
return html`
|
return html`
|
||||||
<div class="states">
|
<div class="states">
|
||||||
@ -93,7 +100,9 @@ export class HuiAlarmPanelCardEditor extends LitElement
|
|||||||
`;
|
`;
|
||||||
})}
|
})}
|
||||||
<paper-dropdown-menu
|
<paper-dropdown-menu
|
||||||
label="Available States"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.alarm_panel.available_states"
|
||||||
|
)}"
|
||||||
@value-changed="${this._stateAdded}"
|
@value-changed="${this._stateAdded}"
|
||||||
>
|
>
|
||||||
<paper-listbox slot="dropdown-content">
|
<paper-listbox slot="dropdown-content">
|
||||||
|
@ -77,7 +77,11 @@ export class HuiEntitiesCardEditor extends LitElement
|
|||||||
${configElementStyle}
|
${configElementStyle}
|
||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Title"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.title"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.value="${this._title}"
|
.value="${this._title}"
|
||||||
.configValue="${"title"}"
|
.configValue="${"title"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
@ -92,7 +96,9 @@ export class HuiEntitiesCardEditor extends LitElement
|
|||||||
?checked="${this._config!.show_header_toggle !== false}"
|
?checked="${this._config!.show_header_toggle !== false}"
|
||||||
.configValue="${"show_header_toggle"}"
|
.configValue="${"show_header_toggle"}"
|
||||||
@change="${this._valueChanged}"
|
@change="${this._valueChanged}"
|
||||||
>Show Header Toggle?</ha-switch
|
>${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.entities.show_header_toggle"
|
||||||
|
)}</ha-switch
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<hui-entity-editor
|
<hui-entity-editor
|
||||||
|
@ -105,6 +105,11 @@ export class HuiEntityButtonCardEditor extends LitElement
|
|||||||
${configElementStyle}
|
${configElementStyle}
|
||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
<ha-entity-picker
|
<ha-entity-picker
|
||||||
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.entity"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.required"
|
||||||
|
)})"
|
||||||
.hass="${this.hass}"
|
.hass="${this.hass}"
|
||||||
.value="${this._entity}"
|
.value="${this._entity}"
|
||||||
.configValue=${"entity"}
|
.configValue=${"entity"}
|
||||||
@ -113,13 +118,21 @@ export class HuiEntityButtonCardEditor extends LitElement
|
|||||||
></ha-entity-picker>
|
></ha-entity-picker>
|
||||||
<div class="side-by-side">
|
<div class="side-by-side">
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Name (Optional)"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.name"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.value="${this._name}"
|
.value="${this._name}"
|
||||||
.configValue="${"name"}"
|
.configValue="${"name"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
></paper-input>
|
></paper-input>
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Icon (Optional)"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.icon"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.value="${this._icon}"
|
.value="${this._icon}"
|
||||||
.configValue="${"icon"}"
|
.configValue="${"icon"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
@ -130,18 +143,26 @@ export class HuiEntityButtonCardEditor extends LitElement
|
|||||||
?checked="${this._config!.show_name !== false}"
|
?checked="${this._config!.show_name !== false}"
|
||||||
.configValue="${"show_name"}"
|
.configValue="${"show_name"}"
|
||||||
@change="${this._valueChanged}"
|
@change="${this._valueChanged}"
|
||||||
>Show Name?</ha-switch
|
>${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.show_name"
|
||||||
|
)}</ha-switch
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
?checked="${this._config!.show_icon !== false}"
|
?checked="${this._config!.show_icon !== false}"
|
||||||
.configValue="${"show_icon"}"
|
.configValue="${"show_icon"}"
|
||||||
@change="${this._valueChanged}"
|
@change="${this._valueChanged}"
|
||||||
>Show Icon?</ha-switch
|
>${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.show_icon"
|
||||||
|
)}</ha-switch
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="side-by-side">
|
<div class="side-by-side">
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Icon Height (Optional)"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.icon_height"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.value="${this._icon_height}"
|
.value="${this._icon_height}"
|
||||||
.configValue="${"icon_height"}"
|
.configValue="${"icon_height"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
@ -159,7 +180,11 @@ export class HuiEntityButtonCardEditor extends LitElement
|
|||||||
</div>
|
</div>
|
||||||
<div class="side-by-side">
|
<div class="side-by-side">
|
||||||
<hui-action-editor
|
<hui-action-editor
|
||||||
label="Tap Action"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.tap_action"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.hass="${this.hass}"
|
.hass="${this.hass}"
|
||||||
.config="${this._tap_action}"
|
.config="${this._tap_action}"
|
||||||
.actions="${actions}"
|
.actions="${actions}"
|
||||||
@ -167,7 +192,11 @@ export class HuiEntityButtonCardEditor extends LitElement
|
|||||||
@action-changed="${this._valueChanged}"
|
@action-changed="${this._valueChanged}"
|
||||||
></hui-action-editor>
|
></hui-action-editor>
|
||||||
<hui-action-editor
|
<hui-action-editor
|
||||||
label="Hold Action"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.hold_action"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.hass="${this.hass}"
|
.hass="${this.hass}"
|
||||||
.config="${this._hold_action}"
|
.config="${this._hold_action}"
|
||||||
.actions="${actions}"
|
.actions="${actions}"
|
||||||
|
@ -83,25 +83,36 @@ export class HuiGaugeCardEditor extends LitElement
|
|||||||
return html`
|
return html`
|
||||||
${configElementStyle}
|
${configElementStyle}
|
||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
|
<ha-entity-picker
|
||||||
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.entity"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.required"
|
||||||
|
)})"
|
||||||
|
.hass="${this.hass}"
|
||||||
|
.value="${this._entity}"
|
||||||
|
.configValue=${"entity"}
|
||||||
|
domain-filter="sensor"
|
||||||
|
@change="${this._valueChanged}"
|
||||||
|
allow-custom-entity
|
||||||
|
></ha-entity-picker>
|
||||||
|
<paper-input
|
||||||
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.name"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
|
.value="${this._name}"
|
||||||
|
.configValue=${"name"}
|
||||||
|
@value-changed="${this._valueChanged}"
|
||||||
|
></paper-input>
|
||||||
<div class="side-by-side">
|
<div class="side-by-side">
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Name"
|
.label="${this.hass.localize(
|
||||||
.value="${this._name}"
|
"ui.panel.lovelace.editor.card.generic.unit"
|
||||||
.configValue=${"name"}
|
)} (${this.hass.localize(
|
||||||
@value-changed="${this._valueChanged}"
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
></paper-input>
|
)})"
|
||||||
<ha-entity-picker
|
|
||||||
.hass="${this.hass}"
|
|
||||||
.value="${this._entity}"
|
|
||||||
.configValue=${"entity"}
|
|
||||||
domain-filter="sensor"
|
|
||||||
@change="${this._valueChanged}"
|
|
||||||
allow-custom-entity
|
|
||||||
></ha-entity-picker>
|
|
||||||
</div>
|
|
||||||
<div class="side-by-side">
|
|
||||||
<paper-input
|
|
||||||
label="Unit"
|
|
||||||
.value="${this._unit}"
|
.value="${this._unit}"
|
||||||
.configValue=${"unit"}
|
.configValue=${"unit"}
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
@ -116,49 +127,74 @@ export class HuiGaugeCardEditor extends LitElement
|
|||||||
<div class="side-by-side">
|
<div class="side-by-side">
|
||||||
<paper-input
|
<paper-input
|
||||||
type="number"
|
type="number"
|
||||||
label="Minimum"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.minimum"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.value="${this._min}"
|
.value="${this._min}"
|
||||||
.configValue=${"min"}
|
.configValue=${"min"}
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
></paper-input>
|
></paper-input>
|
||||||
<paper-input
|
<paper-input
|
||||||
type="number"
|
type="number"
|
||||||
label="Maximum"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.maximum"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.value="${this._max}"
|
.value="${this._max}"
|
||||||
.configValue=${"max"}
|
.configValue=${"max"}
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
></paper-input>
|
></paper-input>
|
||||||
</div>
|
</div>
|
||||||
<div class="side-by-side">
|
<ha-switch
|
||||||
<ha-switch
|
?checked="${this._useSeverity !== false}"
|
||||||
?checked="${this._useSeverity !== false}"
|
@change="${this._toggleSeverity}"
|
||||||
@change="${this._toggleSeverity}"
|
>${this.hass.localize(
|
||||||
>Define Severity?</ha-switch
|
"ui.panel.lovelace.editor.card.gauge.severity.define"
|
||||||
>
|
)}</ha-switch
|
||||||
<div class="severity">
|
>
|
||||||
<paper-input
|
${this._useSeverity
|
||||||
type="number"
|
? html`
|
||||||
label="Green"
|
<div class="severity side-by-side">
|
||||||
.value="${this._severity ? this._severity.green : 0}"
|
<paper-input
|
||||||
.configValue=${"green"}
|
type="number"
|
||||||
@value-changed="${this._severityChanged}"
|
.label="${this.hass.localize(
|
||||||
></paper-input>
|
"ui.panel.lovelace.editor.card.gauge.severity.green"
|
||||||
<paper-input
|
)} (${this.hass.localize(
|
||||||
type="number"
|
"ui.panel.lovelace.editor.card.config.required"
|
||||||
label="Yellow"
|
)})"
|
||||||
.value="${this._severity ? this._severity.yellow : 0}"
|
.value="${this._severity ? this._severity.green : 0}"
|
||||||
.configValue=${"yellow"}
|
.configValue=${"green"}
|
||||||
@value-changed="${this._severityChanged}"
|
@value-changed="${this._severityChanged}"
|
||||||
></paper-input>
|
></paper-input>
|
||||||
<paper-input
|
<paper-input
|
||||||
type="number"
|
type="number"
|
||||||
label="Red"
|
.label="${this.hass.localize(
|
||||||
.value="${this._severity ? this._severity.red : 0}"
|
"ui.panel.lovelace.editor.card.gauge.severity.yellow"
|
||||||
.configValue=${"red"}
|
)} (${this.hass.localize(
|
||||||
@value-changed="${this._severityChanged}"
|
"ui.panel.lovelace.editor.card.config.required"
|
||||||
></paper-input>
|
)})"
|
||||||
|
.value="${this._severity ? this._severity.yellow : 0}"
|
||||||
|
.configValue=${"yellow"}
|
||||||
|
@value-changed="${this._severityChanged}"
|
||||||
|
></paper-input>
|
||||||
|
<paper-input
|
||||||
|
type="number"
|
||||||
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.gauge.severity.red"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.required"
|
||||||
|
)})"
|
||||||
|
.value="${this._severity ? this._severity.red : 0}"
|
||||||
|
.configValue=${"red"}
|
||||||
|
@value-changed="${this._severityChanged}"
|
||||||
|
></paper-input>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
`
|
||||||
|
: ""}
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,11 @@ export class HuiGlanceCardEditor extends LitElement
|
|||||||
${configElementStyle}
|
${configElementStyle}
|
||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Title"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.title"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.value="${this._title}"
|
.value="${this._title}"
|
||||||
.configValue="${"title"}"
|
.configValue="${"title"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
@ -106,7 +110,11 @@ export class HuiGlanceCardEditor extends LitElement
|
|||||||
@theme-changed="${this._valueChanged}"
|
@theme-changed="${this._valueChanged}"
|
||||||
></hui-theme-select-editor>
|
></hui-theme-select-editor>
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Columns"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.glance.columns"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
type="number"
|
type="number"
|
||||||
.value="${this._columns}"
|
.value="${this._columns}"
|
||||||
.configValue="${"columns"}"
|
.configValue="${"columns"}"
|
||||||
@ -118,19 +126,25 @@ export class HuiGlanceCardEditor extends LitElement
|
|||||||
?checked="${this._show_name !== false}"
|
?checked="${this._show_name !== false}"
|
||||||
.configValue="${"show_name"}"
|
.configValue="${"show_name"}"
|
||||||
@change="${this._valueChanged}"
|
@change="${this._valueChanged}"
|
||||||
>Show Name?</ha-switch
|
>${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.show_name"
|
||||||
|
)}</ha-switch
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
?checked="${this._show_icon !== false}"
|
?checked="${this._show_icon !== false}"
|
||||||
.configValue="${"show_icon"}"
|
.configValue="${"show_icon"}"
|
||||||
@change="${this._valueChanged}"
|
@change="${this._valueChanged}"
|
||||||
>Show Icon?</ha-switch
|
>${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.show_icon"
|
||||||
|
)}</ha-switch
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
?checked="${this._show_state !== false}"
|
?checked="${this._show_state !== false}"
|
||||||
.configValue="${"show_state"}"
|
.configValue="${"show_state"}"
|
||||||
@change="${this._valueChanged}"
|
@change="${this._valueChanged}"
|
||||||
>Show State?</ha-switch
|
>${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.show_state"
|
||||||
|
)}</ha-switch
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -54,27 +54,39 @@ export class HuiIframeCardEditor extends LitElement
|
|||||||
return html`
|
return html`
|
||||||
${configElementStyle}
|
${configElementStyle}
|
||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
|
<paper-input
|
||||||
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.url"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.required"
|
||||||
|
)})"
|
||||||
|
.value="${this._url}"
|
||||||
|
.configValue="${"url"}"
|
||||||
|
@value-changed="${this._valueChanged}"
|
||||||
|
></paper-input>
|
||||||
<div class="side-by-side">
|
<div class="side-by-side">
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Title"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.title"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.value="${this._title}"
|
.value="${this._title}"
|
||||||
.configValue="${"title"}"
|
.configValue="${"title"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
></paper-input>
|
></paper-input>
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Aspect Ratio"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.aspect_ratio"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
type="number"
|
type="number"
|
||||||
.value="${Number(this._aspect_ratio.replace("%", ""))}"
|
.value="${Number(this._aspect_ratio.replace("%", ""))}"
|
||||||
.configValue="${"aspect_ratio"}"
|
.configValue="${"aspect_ratio"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
></paper-input>
|
></paper-input>
|
||||||
</div>
|
</div>
|
||||||
<paper-input
|
|
||||||
label="Url"
|
|
||||||
.value="${this._url}"
|
|
||||||
.configValue="${"url"}"
|
|
||||||
@value-changed="${this._valueChanged}"
|
|
||||||
></paper-input>
|
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,11 @@ export class HuiLightCardEditor extends LitElement
|
|||||||
${configElementStyle}
|
${configElementStyle}
|
||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
<ha-entity-picker
|
<ha-entity-picker
|
||||||
label="Light Entity (Required)"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.entity"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.required"
|
||||||
|
)})"
|
||||||
.hass="${this.hass}"
|
.hass="${this.hass}"
|
||||||
.value="${this._entity}"
|
.value="${this._entity}"
|
||||||
.configValue=${"entity"}
|
.configValue=${"entity"}
|
||||||
@ -73,13 +77,21 @@ export class HuiLightCardEditor extends LitElement
|
|||||||
></ha-entity-picker>
|
></ha-entity-picker>
|
||||||
<div class="side-by-side">
|
<div class="side-by-side">
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Name (Optional)"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.name"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.value="${this._name}"
|
.value="${this._name}"
|
||||||
.configValue="${"name"}"
|
.configValue="${"name"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
></paper-input>
|
></paper-input>
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Icon (Optional)"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.icon"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.value="${this._icon}"
|
.value="${this._icon}"
|
||||||
.configValue="${"icon"}"
|
.configValue="${"icon"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
@ -87,7 +99,6 @@ export class HuiLightCardEditor extends LitElement
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hui-theme-select-editor
|
<hui-theme-select-editor
|
||||||
label="Theme (Optional)"
|
|
||||||
.hass="${this.hass}"
|
.hass="${this.hass}"
|
||||||
.value="${this._theme}"
|
.value="${this._theme}"
|
||||||
.configValue="${"theme"}"
|
.configValue="${"theme"}"
|
||||||
|
@ -85,20 +85,32 @@ export class HuiMapCardEditor extends LitElement implements LovelaceCardEditor {
|
|||||||
${configElementStyle}
|
${configElementStyle}
|
||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Title"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.title"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.value="${this._title}"
|
.value="${this._title}"
|
||||||
.configValue="${"title"}"
|
.configValue="${"title"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
></paper-input>
|
></paper-input>
|
||||||
<div class="side-by-side">
|
<div class="side-by-side">
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Aspect Ratio"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.aspect_ratio"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.value="${this._aspect_ratio}"
|
.value="${this._aspect_ratio}"
|
||||||
.configValue="${"aspect_ratio"}"
|
.configValue="${"aspect_ratio"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
></paper-input>
|
></paper-input>
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Default Zoom"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.map.default_zoom"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
type="number"
|
type="number"
|
||||||
.value="${this._default_zoom}"
|
.value="${this._default_zoom}"
|
||||||
.configValue="${"default_zoom"}"
|
.configValue="${"default_zoom"}"
|
||||||
@ -109,17 +121,25 @@ export class HuiMapCardEditor extends LitElement implements LovelaceCardEditor {
|
|||||||
?checked="${this._dark_mode !== false}"
|
?checked="${this._dark_mode !== false}"
|
||||||
.configValue="${"dark_mode"}"
|
.configValue="${"dark_mode"}"
|
||||||
@change="${this._valueChanged}"
|
@change="${this._valueChanged}"
|
||||||
>Dark Mode?</ha-switch
|
>${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.map.dark_mode"
|
||||||
|
)}</ha-switch
|
||||||
>
|
>
|
||||||
<hui-entity-editor
|
<hui-entity-editor
|
||||||
.hass="${this.hass}"
|
.hass="${this.hass}"
|
||||||
.entities="${this._configEntities}"
|
.entities="${this._configEntities}"
|
||||||
@entities-changed="${this._entitiesValueChanged}"
|
@entities-changed="${this._entitiesValueChanged}"
|
||||||
></hui-entity-editor>
|
></hui-entity-editor>
|
||||||
<h3>Geolocation Sources</h3>
|
<h3>
|
||||||
|
${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.map.geo_location_sources"
|
||||||
|
)}
|
||||||
|
</h3>
|
||||||
<div class="geo_location_sources">
|
<div class="geo_location_sources">
|
||||||
<hui-input-list-editor
|
<hui-input-list-editor
|
||||||
inputLabel="Source"
|
inputLabel=${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.map.source"
|
||||||
|
)}
|
||||||
.hass="${this.hass}"
|
.hass="${this.hass}"
|
||||||
.value="${this._geo_location_sources}"
|
.value="${this._geo_location_sources}"
|
||||||
.configValue="${"geo_location_sources"}"
|
.configValue="${"geo_location_sources"}"
|
||||||
|
@ -51,13 +51,21 @@ export class HuiMarkdownCardEditor extends LitElement
|
|||||||
${configElementStyle}
|
${configElementStyle}
|
||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Title"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.title"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.value="${this._title}"
|
.value="${this._title}"
|
||||||
.configValue="${"title"}"
|
.configValue="${"title"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
></paper-input>
|
></paper-input>
|
||||||
<paper-textarea
|
<paper-textarea
|
||||||
label="Content"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.markdown.content"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.required"
|
||||||
|
)})"
|
||||||
.value="${this._content}"
|
.value="${this._content}"
|
||||||
.configValue="${"content"}"
|
.configValue="${"content"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
|
@ -44,6 +44,11 @@ export class HuiMediaControlCardEditor extends LitElement
|
|||||||
return html`
|
return html`
|
||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
<ha-entity-picker
|
<ha-entity-picker
|
||||||
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.entity"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.required"
|
||||||
|
)})"
|
||||||
.hass="${this.hass}"
|
.hass="${this.hass}"
|
||||||
.value="${this._entity}"
|
.value="${this._entity}"
|
||||||
.configValue=${"entity"}
|
.configValue=${"entity"}
|
||||||
|
@ -64,14 +64,22 @@ export class HuiPictureCardEditor extends LitElement
|
|||||||
${configElementStyle}
|
${configElementStyle}
|
||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Image Url"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.image"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.required"
|
||||||
|
)})"
|
||||||
.value="${this._image}"
|
.value="${this._image}"
|
||||||
.configValue="${"image"}"
|
.configValue="${"image"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
></paper-input>
|
></paper-input>
|
||||||
<div class="side-by-side">
|
<div class="side-by-side">
|
||||||
<hui-action-editor
|
<hui-action-editor
|
||||||
label="Tap Action"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.tap_action"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.hass="${this.hass}"
|
.hass="${this.hass}"
|
||||||
.config="${this._tap_action}"
|
.config="${this._tap_action}"
|
||||||
.actions="${actions}"
|
.actions="${actions}"
|
||||||
@ -79,7 +87,11 @@ export class HuiPictureCardEditor extends LitElement
|
|||||||
@action-changed="${this._valueChanged}"
|
@action-changed="${this._valueChanged}"
|
||||||
></hui-action-editor>
|
></hui-action-editor>
|
||||||
<hui-action-editor
|
<hui-action-editor
|
||||||
label="Hold Action"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.hold_action"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.hass="${this.hass}"
|
.hass="${this.hass}"
|
||||||
.config="${this._hold_action}"
|
.config="${this._hold_action}"
|
||||||
.actions="${actions}"
|
.actions="${actions}"
|
||||||
|
@ -105,8 +105,10 @@ export class HuiPictureEntityCardEditor extends LitElement
|
|||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
<ha-entity-picker
|
<ha-entity-picker
|
||||||
.label="${this.hass.localize(
|
.label="${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.entity"
|
"ui.panel.lovelace.editor.card.generic.entity"
|
||||||
)} (${this.hass.localize("ui.panel.lovelace.editor.card.required")})"
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.required"
|
||||||
|
)})"
|
||||||
.hass="${this.hass}"
|
.hass="${this.hass}"
|
||||||
.value="${this._entity}"
|
.value="${this._entity}"
|
||||||
.configValue=${"entity"}
|
.configValue=${"entity"}
|
||||||
@ -115,24 +117,30 @@ export class HuiPictureEntityCardEditor extends LitElement
|
|||||||
></ha-entity-picker>
|
></ha-entity-picker>
|
||||||
<paper-input
|
<paper-input
|
||||||
.label="${this.hass.localize(
|
.label="${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.name"
|
"ui.panel.lovelace.editor.card.generic.name"
|
||||||
)} (${this.hass.localize("ui.panel.lovelace.editor.card.optional")})"
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.value="${this._name}"
|
.value="${this._name}"
|
||||||
.configValue="${"name"}"
|
.configValue="${"name"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
></paper-input>
|
></paper-input>
|
||||||
<paper-input
|
<paper-input
|
||||||
.label="${this.hass.localize(
|
.label="${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.image"
|
"ui.panel.lovelace.editor.card.generic.image"
|
||||||
)} (${this.hass.localize("ui.panel.lovelace.editor.card.optional")})"
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.value="${this._image}"
|
.value="${this._image}"
|
||||||
.configValue="${"image"}"
|
.configValue="${"image"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
></paper-input>
|
></paper-input>
|
||||||
<ha-entity-picker
|
<ha-entity-picker
|
||||||
.label="${this.hass.localize(
|
.label="${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.camera_image"
|
"ui.panel.lovelace.editor.card.generic.camera_image"
|
||||||
)} (${this.hass.localize("ui.panel.lovelace.editor.card.optional")})"
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.hass="${this.hass}"
|
.hass="${this.hass}"
|
||||||
.value="${this._camera_image}"
|
.value="${this._camera_image}"
|
||||||
.configValue=${"camera_image"}
|
.configValue=${"camera_image"}
|
||||||
@ -143,9 +151,9 @@ export class HuiPictureEntityCardEditor extends LitElement
|
|||||||
<div class="side-by-side">
|
<div class="side-by-side">
|
||||||
<paper-dropdown-menu
|
<paper-dropdown-menu
|
||||||
.label="${this.hass.localize(
|
.label="${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.camera_view"
|
"ui.panel.lovelace.editor.card.generic.camera_view"
|
||||||
)} (${this.hass.localize(
|
)} (${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.optional"
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
)})"
|
)})"
|
||||||
.configValue="${"camera_view"}"
|
.configValue="${"camera_view"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
@ -163,9 +171,9 @@ export class HuiPictureEntityCardEditor extends LitElement
|
|||||||
</paper-dropdown-menu>
|
</paper-dropdown-menu>
|
||||||
<paper-input
|
<paper-input
|
||||||
.label="${this.hass.localize(
|
.label="${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.aspect_ratio"
|
"ui.panel.lovelace.editor.card.generic.aspect_ratio"
|
||||||
)} (${this.hass.localize(
|
)} (${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.optional"
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
)})"
|
)})"
|
||||||
type="number"
|
type="number"
|
||||||
.value="${Number(this._aspect_ratio.replace("%", ""))}"
|
.value="${Number(this._aspect_ratio.replace("%", ""))}"
|
||||||
@ -179,7 +187,7 @@ export class HuiPictureEntityCardEditor extends LitElement
|
|||||||
.configValue="${"show_name"}"
|
.configValue="${"show_name"}"
|
||||||
@change="${this._valueChanged}"
|
@change="${this._valueChanged}"
|
||||||
>${this.hass.localize(
|
>${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.show_name"
|
"ui.panel.lovelace.editor.card.generic.show_name"
|
||||||
)}</ha-switch
|
)}</ha-switch
|
||||||
>
|
>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
@ -187,16 +195,16 @@ export class HuiPictureEntityCardEditor extends LitElement
|
|||||||
.configValue="${"show_state"}"
|
.configValue="${"show_state"}"
|
||||||
@change="${this._valueChanged}"
|
@change="${this._valueChanged}"
|
||||||
>${this.hass.localize(
|
>${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.show_state"
|
"ui.panel.lovelace.editor.card.generic.show_state"
|
||||||
)}</ha-switch
|
)}</ha-switch
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="side-by-side">
|
<div class="side-by-side">
|
||||||
<hui-action-editor
|
<hui-action-editor
|
||||||
.label="${this.hass.localize(
|
.label="${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.tap_action"
|
"ui.panel.lovelace.editor.card.generic.tap_action"
|
||||||
)} (${this.hass.localize(
|
)} (${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.optional"
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
)})"
|
)})"
|
||||||
.hass="${this.hass}"
|
.hass="${this.hass}"
|
||||||
.config="${this._tap_action}"
|
.config="${this._tap_action}"
|
||||||
@ -206,9 +214,9 @@ export class HuiPictureEntityCardEditor extends LitElement
|
|||||||
></hui-action-editor>
|
></hui-action-editor>
|
||||||
<hui-action-editor
|
<hui-action-editor
|
||||||
.label="${this.hass.localize(
|
.label="${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.hold_action"
|
"ui.panel.lovelace.editor.card.generic.hold_action"
|
||||||
)} (${this.hass.localize(
|
)} (${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.optional"
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
)})"
|
)})"
|
||||||
.hass="${this.hass}"
|
.hass="${this.hass}"
|
||||||
.config="${this._hold_action}"
|
.config="${this._hold_action}"
|
||||||
|
@ -52,22 +52,29 @@ export class HuiPlantStatusCardEditor extends LitElement
|
|||||||
return html`
|
return html`
|
||||||
${configElementStyle}
|
${configElementStyle}
|
||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
<div class="side-by-side">
|
<ha-entity-picker
|
||||||
<paper-input
|
.label="${this.hass.localize(
|
||||||
label="Name"
|
"ui.panel.lovelace.editor.card.generic.entity"
|
||||||
.value="${this._name}"
|
)} (${this.hass.localize(
|
||||||
.configValue="${"name"}"
|
"ui.panel.lovelace.editor.card.config.required"
|
||||||
@value-changed="${this._valueChanged}"
|
)})"
|
||||||
></paper-input>
|
.hass="${this.hass}"
|
||||||
<ha-entity-picker
|
.value="${this._entity}"
|
||||||
.hass="${this.hass}"
|
.configValue=${"entity"}
|
||||||
.value="${this._entity}"
|
domain-filter="plant"
|
||||||
.configValue=${"entity"}
|
@change="${this._valueChanged}"
|
||||||
domain-filter="plant"
|
allow-custom-entity
|
||||||
@change="${this._valueChanged}"
|
></ha-entity-picker>
|
||||||
allow-custom-entity
|
<paper-input
|
||||||
></ha-entity-picker>
|
.label="${this.hass.localize(
|
||||||
</div>
|
"ui.panel.lovelace.editor.card.generic.name"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
|
.value="${this._name}"
|
||||||
|
.configValue="${"name"}"
|
||||||
|
@value-changed="${this._valueChanged}"
|
||||||
|
></paper-input>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -87,31 +87,46 @@ export class HuiSensorCardEditor extends LitElement
|
|||||||
return html`
|
return html`
|
||||||
${configElementStyle}
|
${configElementStyle}
|
||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
|
<ha-entity-picker
|
||||||
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.entity"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.required"
|
||||||
|
)})"
|
||||||
|
.hass="${this.hass}"
|
||||||
|
.value="${this._entity}"
|
||||||
|
.configValue=${"entity"}
|
||||||
|
domain-filter="sensor"
|
||||||
|
@change="${this._valueChanged}"
|
||||||
|
allow-custom-entity
|
||||||
|
></ha-entity-picker>
|
||||||
|
<paper-input
|
||||||
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.name"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
|
.value="${this._name}"
|
||||||
|
.configValue="${"name"}"
|
||||||
|
@value-changed="${this._valueChanged}"
|
||||||
|
></paper-input>
|
||||||
<div class="side-by-side">
|
<div class="side-by-side">
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Name"
|
.label="${this.hass.localize(
|
||||||
.value="${this._name}"
|
"ui.panel.lovelace.editor.card.generic.icon"
|
||||||
.configValue="${"name"}"
|
)} (${this.hass.localize(
|
||||||
@value-changed="${this._valueChanged}"
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
></paper-input>
|
)})"
|
||||||
<ha-entity-picker
|
|
||||||
.hass="${this.hass}"
|
|
||||||
.value="${this._entity}"
|
|
||||||
.configValue=${"entity"}
|
|
||||||
domain-filter="sensor"
|
|
||||||
@change="${this._valueChanged}"
|
|
||||||
allow-custom-entity
|
|
||||||
></ha-entity-picker>
|
|
||||||
</div>
|
|
||||||
<div class="side-by-side">
|
|
||||||
<paper-input
|
|
||||||
label="Icon"
|
|
||||||
.value="${this._icon}"
|
.value="${this._icon}"
|
||||||
.configValue="${"icon"}"
|
.configValue="${"icon"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
></paper-input>
|
></paper-input>
|
||||||
<paper-dropdown-menu
|
<paper-dropdown-menu
|
||||||
label="Graph Type"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.sensor.graph_type"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.configValue="${"graph"}"
|
.configValue="${"graph"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
>
|
>
|
||||||
@ -129,13 +144,21 @@ export class HuiSensorCardEditor extends LitElement
|
|||||||
</div>
|
</div>
|
||||||
<div class="side-by-side">
|
<div class="side-by-side">
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Units"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.unit"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.value="${this._unit}"
|
.value="${this._unit}"
|
||||||
.configValue="${"unit"}"
|
.configValue="${"unit"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
></paper-input>
|
></paper-input>
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Graph Detail"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.sensor.graph_detail"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
type="number"
|
type="number"
|
||||||
.value="${this._detail}"
|
.value="${this._detail}"
|
||||||
.configValue="${"detail"}"
|
.configValue="${"detail"}"
|
||||||
@ -150,7 +173,11 @@ export class HuiSensorCardEditor extends LitElement
|
|||||||
@theme-changed="${this._valueChanged}"
|
@theme-changed="${this._valueChanged}"
|
||||||
></hui-theme-select-editor>
|
></hui-theme-select-editor>
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Hours To Show"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.sensor.hours_to_show"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
type="number"
|
type="number"
|
||||||
.value="${this._hours_to_show}"
|
.value="${this._hours_to_show}"
|
||||||
.configValue="${"hours_to_show"}"
|
.configValue="${"hours_to_show"}"
|
||||||
|
@ -43,7 +43,11 @@ export class HuiShoppingListEditor extends LitElement
|
|||||||
return html`
|
return html`
|
||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Title"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.title"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.value="${this._title}"
|
.value="${this._title}"
|
||||||
.configValue="${"title"}"
|
.configValue="${"title"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
|
@ -57,28 +57,35 @@ export class HuiThermostatCardEditor extends LitElement
|
|||||||
return html`
|
return html`
|
||||||
${configElementStyle}
|
${configElementStyle}
|
||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
|
<ha-entity-picker
|
||||||
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.entity"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.required"
|
||||||
|
)})"
|
||||||
|
.hass="${this.hass}"
|
||||||
|
.value="${this._entity}"
|
||||||
|
.configValue=${"entity"}
|
||||||
|
domain-filter="climate"
|
||||||
|
@change="${this._valueChanged}"
|
||||||
|
allow-custom-entity
|
||||||
|
></ha-entity-picker>
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Name"
|
.label="${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.generic.name"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
.value="${this._name}"
|
.value="${this._name}"
|
||||||
.configValue="${"name"}"
|
.configValue="${"name"}"
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
></paper-input>
|
></paper-input>
|
||||||
<div class="side-by-side">
|
<hui-theme-select-editor
|
||||||
<ha-entity-picker
|
.hass="${this.hass}"
|
||||||
.hass="${this.hass}"
|
.value="${this._theme}"
|
||||||
.value="${this._entity}"
|
.configValue="${"theme"}"
|
||||||
.configValue=${"entity"}
|
@theme-changed="${this._valueChanged}"
|
||||||
domain-filter="climate"
|
></hui-theme-select-editor>
|
||||||
@change="${this._valueChanged}"
|
|
||||||
allow-custom-entity
|
|
||||||
></ha-entity-picker>
|
|
||||||
<hui-theme-select-editor
|
|
||||||
.hass="${this.hass}"
|
|
||||||
.value="${this._theme}"
|
|
||||||
.configValue="${"theme"}"
|
|
||||||
@theme-changed="${this._valueChanged}"
|
|
||||||
></hui-theme-select-editor>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -50,22 +50,29 @@ export class HuiWeatherForecastCardEditor extends LitElement
|
|||||||
return html`
|
return html`
|
||||||
${configElementStyle}
|
${configElementStyle}
|
||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
<div class="side-by-side">
|
<ha-entity-picker
|
||||||
<paper-input
|
.label="${this.hass.localize(
|
||||||
label="Name"
|
"ui.panel.lovelace.editor.card.generic.entity"
|
||||||
.value="${this._name}"
|
)} (${this.hass.localize(
|
||||||
.configValue="${"name"}"
|
"ui.panel.lovelace.editor.card.config.required"
|
||||||
@value-changed="${this._valueChanged}"
|
)})"
|
||||||
></paper-input>
|
.hass="${this.hass}"
|
||||||
<ha-entity-picker
|
.value="${this._entity}"
|
||||||
.hass="${this.hass}"
|
.configValue=${"entity"}
|
||||||
.value="${this._entity}"
|
domain-filter="weather"
|
||||||
.configValue=${"entity"}
|
@change="${this._valueChanged}"
|
||||||
domain-filter="weather"
|
allow-custom-entity
|
||||||
@change="${this._valueChanged}"
|
></ha-entity-picker>
|
||||||
allow-custom-entity
|
<paper-input
|
||||||
></ha-entity-picker>
|
.label="${this.hass.localize(
|
||||||
</div>
|
"ui.panel.lovelace.editor.card.generic.name"
|
||||||
|
)} (${this.hass.localize(
|
||||||
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
|
)})"
|
||||||
|
.value="${this._name}"
|
||||||
|
.configValue="${"name"}"
|
||||||
|
@value-changed="${this._valueChanged}"
|
||||||
|
></paper-input>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -1130,19 +1130,63 @@
|
|||||||
"migrate": "Migrate config"
|
"migrate": "Migrate config"
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"required": "Required",
|
"alarm_panel": {
|
||||||
"optional": "Optional",
|
"available_states": "Available States"
|
||||||
"aspect_ratio": "Aspect Ratio",
|
},
|
||||||
"camera_image": "Camera Entity",
|
"config": {
|
||||||
"camera_view": "Camera View",
|
"required": "Required",
|
||||||
"entity": "Entity",
|
"optional": "Optional"
|
||||||
"hold_action": "Hold Action",
|
},
|
||||||
"image": "Image Path",
|
"entities": {
|
||||||
"name": "Name",
|
"show_header_toggle": "Show Header Toggle?"
|
||||||
"show_name": "Show Name?",
|
},
|
||||||
"show_state": "Show State?",
|
"gauge": {
|
||||||
"tap_action": "Tap Action",
|
"severity": {
|
||||||
"theme": "Theme"
|
"define": "Define Severity?",
|
||||||
|
"green": "Green",
|
||||||
|
"red": "Red",
|
||||||
|
"yellow": "Yellow"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"glance": {
|
||||||
|
"columns": "Columns"
|
||||||
|
},
|
||||||
|
"generic": {
|
||||||
|
"aspect_ratio": "Aspect Ratio",
|
||||||
|
"camera_image": "Camera Entity",
|
||||||
|
"camera_view": "Camera View",
|
||||||
|
"entities": "Entities",
|
||||||
|
"entity": "Entity",
|
||||||
|
"hold_action": "Hold Action",
|
||||||
|
"icon": "Icon",
|
||||||
|
"icon_height": "Icon Height",
|
||||||
|
"image": "Image Path",
|
||||||
|
"maximum": "Maximum",
|
||||||
|
"minimum": "Minimum",
|
||||||
|
"name": "Name",
|
||||||
|
"show_icon": "Show Icon?",
|
||||||
|
"show_name": "Show Name?",
|
||||||
|
"show_state": "Show State?",
|
||||||
|
"tap_action": "Tap Action",
|
||||||
|
"title": "Title",
|
||||||
|
"theme": "Theme",
|
||||||
|
"unit": "Unit",
|
||||||
|
"url": "Url"
|
||||||
|
},
|
||||||
|
"map": {
|
||||||
|
"geo_location_sources": "Geolocation Sources",
|
||||||
|
"dark_mode": "Dark Mode?",
|
||||||
|
"default_zoom": "Default Zoom",
|
||||||
|
"source": "Source"
|
||||||
|
},
|
||||||
|
"markdown": {
|
||||||
|
"content": "Content"
|
||||||
|
},
|
||||||
|
"sensor": {
|
||||||
|
"graph_detail": "Graph Detail",
|
||||||
|
"graph_type": "Graph Type",
|
||||||
|
"hours_to_show": "Hours to Show"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"warning": {
|
"warning": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user