Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bessarabov/animated-consumption-card
Card with animated home consumption for Home Assistant Lovelace UI
https://github.com/bessarabov/animated-consumption-card
home-assistant home-assistant-frontend lovelace lovelace-ui
Last synced: 6 days ago
JSON representation
Card with animated home consumption for Home Assistant Lovelace UI
- Host: GitHub
- URL: https://github.com/bessarabov/animated-consumption-card
- Owner: bessarabov
- Created: 2020-04-07T09:48:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-02T11:08:12.000Z (almost 4 years ago)
- Last Synced: 2024-08-02T15:52:33.860Z (3 months ago)
- Topics: home-assistant, home-assistant-frontend, lovelace, lovelace-ui
- Language: JavaScript
- Homepage:
- Size: 34.2 KB
- Stars: 37
- Watchers: 4
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# animated-consumption-card
This is a repo with Home Assistant custom ui card `animated-consumption-card`.
This card shows a simple animation how much resources your house is consuming:
![](https://user-images.githubusercontent.com/47263/80096346-18f9a000-8572-11ea-816b-c07a2871ddd6.gif)
To use it you need to have a sensor in Home Assistant with your consumtion and pass it
to this UI card. The sensor must have `unit_of_measurement` `W` or `kW`.## Installation
There are several ways, you can add this card to your Home Assistant.
### Manual installation
* Copy file `animated-consumption-card.js` to `/config/www/animated-consumption-card.js`
* Check that you can see this file as http://hassio.local:8123/local/animated-consumption-card.js (restart HA if you can't)
* Add `/local/animated-consumption-card.js` as `JavaScript Module` in HA config http://hassio.local:8123/config/lovelace/resources### Installation with HACS
If you use HACS, you can install this card with HACS (but HACS is not required,
if you don't use HACS you can install this card using the steps described in the previous section)To install this card with HACS just use the standart HACS way to install
cards from the custom GitHub repository.## Configuration
When you have this card installed in your Home Assistant you can use it. Add to your
lovelace ui:```yaml
- type: 'custom:animated-consumption-card'
entity: sensor.total_power_consumption
```The field `entity` is required. The `unit_of_measurement` of this entity must be `W` or `kW`.
There are also several configuration parameters. Thery are not required,
but you can use it to customize the card.| Name | Default value | Description |
| --- | --- | --- |
| **left_icon** | [`mdi:electron-framework`](https://mdi.bessarabov.com/icon/electron-framework) | Left icon in the card |
| **right_icon** | [`mdi:home`](https://mdi.bessarabov.com/icon/home) | Right icon in the card |
| **show_line** | `false` | Showing a line between icons |
| **circle_color** | `var(--primary-color)` | Color of the moving circle |