Skip to content

Commit

Permalink
Merge pull request #26 from gurbyz/dev
Browse files Browse the repository at this point in the history
Release 0.0.15
  • Loading branch information
gurbyz authored Aug 25, 2019
2 parents 148bf51 + daf0d8e commit c9603a4
Show file tree
Hide file tree
Showing 31 changed files with 420 additions and 386 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
._.DS_Store
*/.*
/bower_components
/node_modules
package-lock.json
Expand Down
5 changes: 5 additions & 0 deletions power-wheel-card/CHANGELOG.md → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Changelog
====
## 0.0.15
### Improvements
* Removal of support for Customer Updater.
* Preparations to support HACS. Repo file tree restructuring and repo name change from `custom-cards-lovelace` to `power-wheel-card`.

## 0.0.14
### Improvements
* Update for HA Cast. LitElement is taken from `hui-view`.
Expand Down
295 changes: 290 additions & 5 deletions README.md

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"name": "custom-cards-lovelace",
"homepage": "https://github.com/gurbyz/custom-cards-lovelace",
"name": "power-wheel-card",
"homepage": "https://github.com/gurbyz/power-wheel-card",
"authors": [
"Gerben ten Hove"
],
"description": "Custom cards for the Lovelace UI of Home Assistant",
"description": "An intuitive way to represent the power and energy that your home is consuming or producing.",
"main": "",
"keywords": [
"energy",
"solar panels",
"home assistant",
"lovelace",
"custom card"
Expand All @@ -16,8 +18,7 @@
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
"test"
],
"devDependencies": {
"web-component-tester": "^6.5.0",
Expand Down
8 changes: 0 additions & 8 deletions custom_updater.json

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 3 additions & 0 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "Power wheel card"
}
40 changes: 40 additions & 0 deletions info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
power-wheel-card
====

An intuitive way to represent the power and energy that your home is consuming or producing.

* FORUM: This component is discussed <a href="https://community.home-assistant.io/t/lovelace-power-wheel-card/82374">here</a> on the Home Assistant forum.

* MANUAL: Sourcecode, manual, requirements and examples are in the readme of the <a href="https://github.com/gurbyz/power-wheel-card">repo on GitHub</a>.
* TROUBLESHOOTING: There's also a troubleshooting <a href="https://github.com/gurbyz/power-wheel-card/wiki/Troubleshooting-guide">wiki</a> on GitHub. Read this before filing an issue.

## Features
Features of the custom power-wheel-card:
* Displays the three values (solar, grid and home) in 'a wheel'.

* Has different views for showing power values, showing energy values and showing costs/savings: the *power view*, the *energy view* resp. the *money view*.
The initial view can be set. Click the unit to switch between views.
* Has options for a different card title per view.
* Can auto-toggle between views.
Click the recycle icon to turn on or off the auto-toggle.
You can choose the initial state of the auto-toggle.
You can choose a custom period (in seconds) between views.
* Calculates the current power that you nett consume from the grid: grid power.
Input for the calculation is the power that you consume from the grid and the power that you produce to the grid.
* Calculates the current power that your home is consuming: home power.
Input for the calculation is the power that your solar panels produce and the power consumed from and produced to the grid.
* Calculates the energy that you nett consumed from the grid: grid energy.
Input for the calculation is the energy that you consumed from the grid and the energy that you produced to the grid.
* Calculates the energy that your home is consuming: home energy.
Input for the calculation is the energy that your solar panels produced and the energy that you consumed from and produced to the grid.
* Calculates the costs/savings for all the energy values. Takes into account different rates for consuming and producing energy from and to the grid.
* Displays the transition between these power, energy and money values as arrows.
E.g. if your solar power panels produce power, the arrow from solar to home turns active.
And if your solar power panels produce enough power to deliver some back to the grid, the arrow from solar to grid turns active.
* Arrows can have values next to them. Zero values are suppressed. And values on the arrows are visible only when relevant. E.g. on a sunny day when part of your produced solar panel energy was returned to the grid and the other part was consumed by your home.
* Has support for setups that don't have separated grid sensors for consuming and producing.
In these setups arrow values and arrow coloring are not available in *energy view* and *money view* due to lack of input details.
* Optionally uses icons of your own choice, which can be set by card parameters or taken from your `customize:` sensor settings.
* Optionally colors the consuming icons yellow and the producing icons green. You can choose your own colors for consuming and producing.
* Works for default theme and custom themes that use standard CSS vars.
* Has support for HACS to check for a new release and upgrade to newer versions.
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "custom-cards-lovelace",
"version": "0.0.0",
"description": "Custom cards for the Lovelace UI of Home Assistant",
"name": "power-wheel-card",
"version": "0.0.15",
"description": "An intuitive way to represent the power and energy that your home is consuming or producing.",
"directories": {
"test": "test"
},
Expand All @@ -15,19 +15,21 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/gurbyz/custom-cards-lovelace.git"
"url": "git+https://github.com/gurbyz/power-wheel-card.git"
},
"keywords": [
"energy",
"solar panels",
"home assistant",
"lovelace",
"custom card"
],
"author": "Gerben ten Hove",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/gurbyz/custom-cards-lovelace/issues"
"url": "https://github.com/gurbyz/power-wheel-card/issues"
},
"homepage": "https://github.com/gurbyz/custom-cards-lovelace#readme",
"homepage": "https://github.com/gurbyz/power-wheel-card#readme",
"devDependencies": {
"husky": "^1.3.1",
"lit-element": "^2.0.0",
Expand Down
6 changes: 3 additions & 3 deletions power-wheel-card/power-wheel-card.js → power-wheel-card.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
*
* power-wheel-card by Gerben ten Hove
* https://github.com/gurbyz/custom-cards-lovelace/tree/master/power-wheel-card
* https://github.com/gurbyz/power-wheel-card
*
*/

const __VERSION = "0.0.14";
const __VERSION = "0.0.15";

const LitElement = Object.getPrototypeOf(customElements.get("hui-view"));
const html = LitElement.prototype.html;
Expand Down Expand Up @@ -317,7 +317,7 @@ class PowerWheelCard extends LitElement {
if (this.config.debug) {
let line = `Version: ${__VERSION}\nLovelace resource: ${this._lovelaceResource()}\nHA version: ${this.hass.config.version}`;
line += `\nAgent: ${navigator.userAgent}`;
line += `\nReport issues here: https://github.com/gurbyz/custom-cards-lovelace/issues`;
line += `\nReport issues here: https://github.com/gurbyz/power-wheel-card/issues`;
line += `\nProcessed config: ${JSON.stringify(this.config, null, ' ')}\nRegistered sensors: ${JSON.stringify(this.sensors, null, ' ')}`;
line += `\nViews object: ${JSON.stringify(this.views, null, ' ')}`;
PowerWheelCard._logConsole(line);
Expand Down
Loading

0 comments on commit c9603a4

Please sign in to comment.