Skip to content

Commit 09df2aa

Browse files
authored
Initial Stable Release including Documentation
1 parent 7d1d016 commit 09df2aa

File tree

5 files changed

+445
-2
lines changed

5 files changed

+445
-2
lines changed

.eslintrc

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true
5+
},
6+
"extends": "eslint:recommended",
7+
"globals": {
8+
"Atomics": "readonly",
9+
"SharedArrayBuffer": "readonly"
10+
},
11+
"parserOptions": {
12+
"ecmaVersion": 2018,
13+
"sourceType": "module"
14+
},
15+
"rules": {
16+
}
17+
}

.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "all",
4+
"singleQuote": true,
5+
"printWidth": 120,
6+
"tabWidth": 2
7+
}

README.md

+45-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,45 @@
1-
# pvpc-hourly-pricing-card
2-
Home Assistant Lovelace custom card to use with Spain electricity hourly pricing (PVPC) integration
1+
# PVPC Hourly Pricing Card
2+
3+
Home Assistant Lovelace custom card to use with [Spain electricity hourly pricing (PVPC) integration](https://www.home-assistant.io/integrations/pvpc_hourly_pricing/).
4+
5+
![Card Example](docs/images/card-example.jpg)
6+
7+
> This card only works with a [previously configured Spain electricity hourly pricing (PVPC) integration](https://www.danielmartingonzalez.com/pvpc-tariff-prices-in-home-assistant/) in Home Assistant.
8+
9+
Based on [Lovelace Weather Card with Chart](https://github.com/sgttrs/lovelace-weather-card-chart) by [Yevgeniy Prokopenko](https://github.com/sgttrs).
10+
11+
## Features
12+
13+
- Compatible with all rates.
14+
- Actual price close-up.
15+
- Graph with the prices of the current day.
16+
- Graph with the prices of the next day when you are available.
17+
- Minimum and maximum of the current and next day.
18+
- Icon indicating the current pricing period.
19+
20+
## Installation
21+
22+
Follow this [guide](https://www.danielmartingonzalez.com/installing-lovelace-plugins).
23+
24+
```yaml
25+
resources:
26+
url: /local/pvpc-hourly-pricing-card.js?v=0.0.1
27+
type: module
28+
```
29+
30+
## Options
31+
32+
| Name | Type | Default | Description |
33+
|---|---|---|---|
34+
| type | string | **Required** | `custom:pvpc-hourly-pricing-card` |
35+
| entity_id | string | **Required** | Spain electricity hourly pricing (PVPC) entity |
36+
| title | string | Optional | Title of the card |
37+
38+
## Example
39+
40+
```yaml
41+
cards:
42+
- type: custom:pvpc-hourly-pricing-card
43+
title: "PVPC 2.0 DHA"
44+
entity_id: sensor.pvpc_2_0_dha
45+
```

docs/images/card-example.jpg

30.7 KB
Loading

0 commit comments

Comments
 (0)