From c1353e28a33afe9b14d50c426508d4fab7cc47e2 Mon Sep 17 00:00:00 2001 From: Rob Sonke Date: Sat, 17 Sep 2022 13:14:52 +0200 Subject: [PATCH] Added a hacs.json file and added info to the readme (#17) --- README.md | 11 ++++++++++- hacs.json | 4 ++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 hacs.json diff --git a/README.md b/README.md index 2714df7..59b9400 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,15 @@ because expensive peaks are produced by dirtier energy sources. Also helps solvi ## Installation +### Option 1: HACS +1. Go to HACS -> Integrations +2. Click the three dots on the top right and select `Custom Repositories` +3. Enter `https://github.com/jpulakka/nordpool_diff` as repository, select the category `Integration` and click Add +4. A new custom integration shows up for installation (Nordpool Diff) - install it +5. Restart Home Assistant + +### Option 2: Manual + 1. Install and configure https://github.com/custom-components/nordpool first. 2. Copy the `nordpool_diff` folder to HA `/custom_components/nordpool_diff/` 3. Restart HA. (Skipping restarting before modifying configuration would give "Integration 'nordpool_diff' not found" @@ -96,7 +105,7 @@ To compensate for that, `normalize` was introduced. Current options include `nor ## Rank and interval With `filter_type: rank`, the current price is ranked amongst the next `filter_length` prices. The lowest price is given -a value of `1`, the highest price is given the value of `-1`, and the other prices are equally distributed in this +a value of `1`, the highest price is given the value of `-1`, and the other prices are equally distributed in this interval. With `filter_type: interval`, the current price is placed inside the interval of the next `filter_length` prices. The diff --git a/hacs.json b/hacs.json new file mode 100644 index 0000000..e35e3ac --- /dev/null +++ b/hacs.json @@ -0,0 +1,4 @@ +{ + "name": "nordpool_diff", + "render_readme": true +} \ No newline at end of file