Initial commit.
This commit is contained in:
commit
35f1656c24
49
README.md
Normal file
49
README.md
Normal file
@ -0,0 +1,49 @@
|
||||
dummy-entity-row
|
||||
================
|
||||
|
||||
An entity row that displays only an icon and the name of an entity. No controls.
|
||||
|
||||
# Installation instructions
|
||||
|
||||
This card requires [card-tools](https://github.com/thomasloven/lovelace-card-tools) to be installed.
|
||||
|
||||
For installation instructions [see this guide](https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins).
|
||||
|
||||
The recommended type of this plugin is: `js`
|
||||
|
||||
### If you are using [custom\_updater](https://github.com/custom-components/custom_updater):
|
||||
```yaml
|
||||
resources:
|
||||
- url: /customcards/github/thomasloven/dummy-entity-row.js?track=true
|
||||
type: js
|
||||
```
|
||||
|
||||
|
||||
# Usage instructions
|
||||
|
||||
This is probably most useful as a header for [fold-entity-row](https://github.com/thomasloven/lovelace-fold-entity-row).
|
||||
|
||||
```
|
||||
type: entities
|
||||
entities:
|
||||
- type: custom:dummy-entity-row
|
||||
entity: light.bed_light
|
||||
- type: custom:dummy-entity-row
|
||||
entity: sun.sun
|
||||
icon: mdi:home-assistant
|
||||
name: Home Assistant
|
||||
- type: custom:dummy-entity-row
|
||||
entity: sun.sun
|
||||
icon: mdi:this-icon-does-not-exist
|
||||
name: No icon
|
||||
- type: custom:dummy-entity-row
|
||||
entity: sun.sun
|
||||
icon: mdi:home-assistant
|
||||
name: " "
|
||||
```
|
||||
|
||||

|
||||
|
||||
|
||||
---
|
||||
<a href="https://www.buymeacoffee.com/uqD6KHCdJ" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/white_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>
|
5
dummy-entity-row.js
Normal file
5
dummy-entity-row.js
Normal file
@ -0,0 +1,5 @@
|
||||
let HuiGenericEntityRow = customElements.get('hui-generic-entity-row')
|
||||
class DummyEntityRow extends HuiGenericEntityRow {
|
||||
setConfig(config) {this.config = config;}
|
||||
}
|
||||
customElements.define('dummy-entity-row', DummyEntityRow);
|
Loading…
x
Reference in New Issue
Block a user