Initial commit.

This commit is contained in:
Thomas Lovén 2019-04-08 19:49:50 +02:00
commit 35f1656c24
2 changed files with 54 additions and 0 deletions

49
README.md Normal file
View 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: " "
```
![dummy-entity-row](https://user-images.githubusercontent.com/1299821/55743659-29a4aa00-5a33-11e9-81d7-4e094a372350.png)
---
<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
View 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);