Skip to content

Commit

Permalink
Initial Stable Release including Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
danimart1991 authored Apr 9, 2020
1 parent 7d1d016 commit 09df2aa
Show file tree
Hide file tree
Showing 5 changed files with 445 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
}
}
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 120,
"tabWidth": 2
}
47 changes: 45 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,45 @@
# pvpc-hourly-pricing-card
Home Assistant Lovelace custom card to use with Spain electricity hourly pricing (PVPC) integration
# PVPC Hourly Pricing Card

Home Assistant Lovelace custom card to use with [Spain electricity hourly pricing (PVPC) integration](https://www.home-assistant.io/integrations/pvpc_hourly_pricing/).

![Card Example](docs/images/card-example.jpg)

> 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.
Based on [Lovelace Weather Card with Chart](https://github.com/sgttrs/lovelace-weather-card-chart) by [Yevgeniy Prokopenko](https://github.com/sgttrs).

## Features

- Compatible with all rates.
- Actual price close-up.
- Graph with the prices of the current day.
- Graph with the prices of the next day when you are available.
- Minimum and maximum of the current and next day.
- Icon indicating the current pricing period.

## Installation

Follow this [guide](https://www.danielmartingonzalez.com/installing-lovelace-plugins).

```yaml
resources:
url: /local/pvpc-hourly-pricing-card.js?v=0.0.1
type: module
```
## Options
| Name | Type | Default | Description |
|---|---|---|---|
| type | string | **Required** | `custom:pvpc-hourly-pricing-card` |
| entity_id | string | **Required** | Spain electricity hourly pricing (PVPC) entity |
| title | string | Optional | Title of the card |

## Example

```yaml
cards:
- type: custom:pvpc-hourly-pricing-card
title: "PVPC 2.0 DHA"
entity_id: sensor.pvpc_2_0_dha
```
Binary file added docs/images/card-example.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 09df2aa

Please sign in to comment.