Skip to content

Commit

Permalink
Version 1.5.5 (tibber#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstaro authored Dec 16, 2021
1 parent 3cac98d commit 704a548
Show file tree
Hide file tree
Showing 4,696 changed files with 6,039 additions and 614,209 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build/
./app.json
44 changes: 44 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// eslint-disable-next-line no-undef
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier'],
extends: [
'airbnb-base',
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended',
'prettier',
],
parserOptions: {
project: './tsconfig.json',
},
rules: {
'prettier/prettier': 'error',

// airbnb overrides ------------------------------------
curly: ['error', 'multi-or-nest', 'consistent'],
'no-console': 'off',
'no-continue': 'off',
// let's not disallow for...of loops :/
'no-restricted-syntax': [
'error',
'ForInStatement',
'LabeledStatement',
'WithStatement',
],

// import (part of airbnb) overrides ------------------
'import/no-import-module-exports': 'off',
'import/prefer-default-export': 'off',

// @typescript-eslint/recommended overrides -----------
'@typescript-eslint/lines-between-class-members': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ varsIgnorePattern: '^_', argsIgnorePattern: '^_' },
],
'@typescript-eslint/no-floating-promises': 'error',
},
};
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.idea
/test.js
env.json
/build
node_modules/
build/
/test.js
12 changes: 12 additions & 0 deletions .homeychangelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,17 @@
},
"1.4.13": {
"en": "Bug fix for price fetch scheduling"
},
"1.5.0": {
"en": "Support for Homey Bridge. Add trigger and condition for top/bottom X hours today. Outdoor temperature for Home removed. Fix parsing high prices."
},
"1.5.1": {
"en": "Fix for showing both old and new price capabilities at the same time"
},
"1.5.2": {
"en": "Using updated price information from the Tibber API"
},
"1.5.5": {
"en": "Support Homey Bridge. Add trigger and condition for top/bottom X hours today. Outdoor temperature for Home removed. Using updated price information from the Tibber API. Fix parsing high prices."
}
}
10 changes: 7 additions & 3 deletions .homeycompose/app.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
{
"id": "com.tibber",
"version": "1.4.13",
"compatibility": ">=1.5.0",
"version": "1.5.5",
"compatibility": ">=5.0.0",
"platforms": [
"local",
"cloud"
],
"sdk": 3,
"author": {
"name": "Tibber AS",
"email": "[email protected]"
},
"sdk": 2,
"brandColor": "#23B8CC",
"name": {
"en": "Tibber"
Expand Down
29 changes: 29 additions & 0 deletions .homeycompose/capabilities/measure_price_level.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"type": "enum",
"title": {
"en": "Price level"
},
"getable": true,
"setable": false,
"values": [
{
"id": "LOW",
"title": {
"en": "Low"
}
},
{
"id": "NORMAL",
"title": {
"en": "Normal"
}
},
{
"id": "HIGH",
"title": {
"en": "High"
}
}
],
"icon": "/drivers/home/assets/dollar.svg"
}
12 changes: 12 additions & 0 deletions .homeycompose/capabilities/measure_price_total.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type": "number",
"title": {
"en": "Current price"
},
"getable": true,
"setable": false,
"units": {
"en": "kr"
},
"icon": "/drivers/home/assets/dollar.svg"
}
3 changes: 2 additions & 1 deletion .homeycompose/capabilities/price_level.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
}
}
],
"icon": "/drivers/home/assets/dollar.svg"
"icon": "/drivers/home/assets/dollar.svg",
"uiComponent": null
}
3 changes: 2 additions & 1 deletion .homeycompose/capabilities/price_total.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"units": {
"en": "kr"
},
"icon": "/drivers/home/assets/dollar.svg"
"icon": "/drivers/home/assets/dollar.svg",
"uiComponent": null
}
23 changes: 23 additions & 0 deletions .homeycompose/flow/triggers/current.L1_changed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"id": "current.L1_changed",
"title": {
"en": "Current phase 1 changed"
},
"tokens": [
{
"name": "currentL1",
"type": "number",
"title": {
"en": "Current phase 1"
}
}
],
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=pulse|watty"
}
],
"platforms": ["local", "cloud"]
}
23 changes: 23 additions & 0 deletions .homeycompose/flow/triggers/current.L2_changed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"id": "current.L2_changed",
"title": {
"en": "Current phase 2 changed"
},
"tokens": [
{
"name": "currentL2",
"type": "number",
"title": {
"en": "Current phase 2"
}
}
],
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=pulse|watty"
}
],
"platforms": ["local", "cloud"]
}
23 changes: 23 additions & 0 deletions .homeycompose/flow/triggers/current.L3_changed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"id": "current.L3_changed",
"title": {
"en": "Current phase 3 changed"
},
"tokens": [
{
"name": "currentL3",
"type": "number",
"title": {
"en": "Current phase 3"
}
}
],
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=pulse|watty"
}
],
"platforms": ["local", "cloud"]
}
5 changes: 0 additions & 5 deletions .homeyplugins.json

This file was deleted.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12.22.6
1 change: 1 addition & 0 deletions @types/http.min/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module 'http.min';
2 changes: 0 additions & 2 deletions CREDITS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Original implementation by [Espen Ljosland](https://github.com/slasktrat/com.tibber)

Dollar icon made by [Dave Gandy](https://www.flaticon.com/authors/dave-gandy) from www.flaticon.com

Outdoor temperature by [MET Norway](https://api.met.no/weatherapi/documentation)
Loading

0 comments on commit 704a548

Please sign in to comment.