Skip to content

Commit

Permalink
Merge pull request #41 from gurbyz/dev
Browse files Browse the repository at this point in the history
Release 0.1.0
  • Loading branch information
gurbyz authored Apr 3, 2020
2 parents d450c11 + b915925 commit e0424be
Show file tree
Hide file tree
Showing 46 changed files with 3,942 additions and 3,448 deletions.
3 changes: 0 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ assignees: ''
---
I have read the wiki about what to try first before creating a bug report.

**Which custom card does give you issues?**
power-wheel-card

**Which version of HA do you use?**

**Which version of the card do you use?**
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
Changelog
====
## 0.1.0
### New features
* **BETA.** Basic support for a battery in the *power view*.
* New card parameter `battery_power_entity`. Charging should have positive values.
* New card parameter `battery_soc_entity` to display the state of charge.
* New card parameter `battery_icon` to override the default icon.
### Improvements
* Total rebuild of the core functions.
* Moved from web-components-tester to Karma.
* **DEPRECATED.** Visual warning if still using card parameter `energy_price` which is deprecated since version 0.0.13.
Please replace `energy_price` by `energy_consumption_rate` in your setup.
* Log version to console also when not in debug mode.
### Fixes
* Number of decimals can be set to zero in *energy view* and *money view*. Issue #39.

## 0.0.16
### Fixes
* Prepare for future card config changes.
Expand Down
110 changes: 87 additions & 23 deletions README.md

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"test"
],
"devDependencies": {
"web-component-tester": "^6.5.0",
"webcomponentsjs": "^2.2.7"
}
}
12 changes: 9 additions & 3 deletions info.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,21 @@ 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 / README: Sourcecode, manual, requirements and examples are in the <a href="https://github.com/gurbyz/power-wheel-card">README</a> file of the repo on GitHub.

* 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.
* 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.
* CHANGELOG: <a href="https://github.com/gurbyz/power-wheel-card/blob/master/CHANGELOG.md">List of changes</a> per version of the card.
* TROUBLESHOOTING / ISSUES: There's also a troubleshooting <a href="https://github.com/gurbyz/power-wheel-card/wiki/Troubleshooting-guide">wiki</a> on GitHub. Read this please before filing an <a href="https://github.com/gurbyz/power-wheel-card/issues/new/choose">issue</a>.

## 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.
* BETA: Has support for a fourth value in 'the wheel': battery. In *power view* only.
> **What does BETA for battery support mean**: expect issues! There are known and unknown issues to be solved. The values and arrows don't show correctly all the time. The layout isn't even worked on yet. It's just the same layout as before and the battery icon(s) have been placed (split up) in available space for now. More info in the <a href="https://github.com/gurbyz/power-wheel-card">README</a> file.
* 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.
Expand All @@ -38,3 +42,5 @@ Features of the custom power-wheel-card:
* 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.

More in the <a href="https://github.com/gurbyz/power-wheel-card">README</a> file: requirements, installation & configuration instructions and examples.
24 changes: 24 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const { createDefaultConfig } = require('@open-wc/testing-karma');
const merge = require('deepmerge');

module.exports = config => {
config.set(
merge(createDefaultConfig(config), {
files: [
// runs all files ending with .test in the test folder,
// can be overwritten by passing a --grep flag. examples:
//
// npm run test -- --grep test/foo/bar.test.js
// npm run test -- --grep test/bar/*
{ pattern: config.grep ? config.grep : 'test/**/*.test.js', type: 'module' },
],

// see the karma-esm docs for all options
esm: {
// if you are using 'bare module imports' you will need this option
nodeResolve: true,
},
}),
);
return config;
};
16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "power-wheel-card",
"version": "0.0.16",
"version": "0.1.0",
"description": "An intuitive way to represent the power and energy that your home is consuming or producing.",
"directories": {
"test": "test"
},
"scripts": {
"test": "wct"
"test": "karma start --coverage"
},
"husky": {
"hooks": {
"pre-commit": "wct"
"pre-commit": "karma start --coverage"
}
},
"repository": {
Expand All @@ -31,8 +31,12 @@
},
"homepage": "https://github.com/gurbyz/power-wheel-card#readme",
"devDependencies": {
"husky": "^1.3.1",
"lit-element": "^2.0.0",
"wct-istanbub": "^0.2.9"
"@open-wc/testing": "^2.5.8",
"@open-wc/testing-karma": "^3.3.10",
"deepmerge": "^4.2.2",
"husky": "^3.0.8",
"lit-element": "^2.2.1",
"mocha": "^7.1.1",
"sinon": "^9.0.1"
}
}
Loading

0 comments on commit e0424be

Please sign in to comment.