From a3782acf4e41fcbddad920e2962b3126868d59d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Dr=C3=A4s?= Date: Thu, 27 Jun 2024 08:33:29 +0200 Subject: [PATCH] Update --- .github/workflows/test_and_release.yml | 2 +- io-package.json | 6 ++- lib/constants.js | 51 ++++++++++++++++++++++++++ package.json | 2 +- 4 files changed, 58 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_and_release.yml b/.github/workflows/test_and_release.yml index 37b5e81..c95f948 100644 --- a/.github/workflows/test_and_release.yml +++ b/.github/workflows/test_and_release.yml @@ -35,7 +35,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [16.x, 18.x] + node-version: [18.x] os: [ubuntu-latest, windows-latest, macos-latest] steps: diff --git a/io-package.json b/io-package.json index daea3f2..050250d 100644 --- a/io-package.json +++ b/io-package.json @@ -1,8 +1,12 @@ { "common": { "name": "sainlogic", - "version": "0.11.1", + "version": "0.11.2", "news": { + "0.11.2": { + "en": "Bump libraries, add new sensors, remove node.js 16", + "de": "Update von Abhängigkeiten, neue Sensoren und node.js 16 entfernt" + }, "0.11.1": { "en": "Removed unneccessary state creation at startup, will create states dynamically as data comes in", "de": "Unnötiges Anlegen von Sates beim Start entfernt, States werden nur noch generiert wenn Daten ankommen" diff --git a/lib/constants.js b/lib/constants.js index 4810498..00301af 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -1210,6 +1210,23 @@ const DATAFIELDS = [ listener_conversion: null, scheduler_conversion: null }, + { + id: 'wh57batt', + channels: [{ + channel: 'weather.info', + name: 'WH57 Battery Voltage' + }], + type: 'number', + unit: 'V', + role: 'value.voltage', + min: 0, + max: 24, + wunderground: '^wh57batt([0-9])*', + ecowitt: '^wh57batt([0-9])*', + scheduler: null, + listener_conversion: null, + scheduler_conversion: null + }, { id: 'wh40batt', channels: [{ @@ -1584,6 +1601,40 @@ const DATAFIELDS = [ main_unit_conversion: null } ] + }, + { + id: 'leak_ch', + channels: [{ + channel: 'weather.current', + name: 'Leak' + }], + type: 'number', + unit: '', + role: 'value', + min: 0, + max: 10, + wunderground: '^leak_ch([0-9])*', + ecowitt: '^leak_ch([0-9])*', + scheduler: null, + listener_conversion: null, + scheduler_conversion: null + }, + { + id: 'leakbatt', + channels: [{ + channel: 'weather.info', + name: 'Leak Battery Voltage' + }], + type: 'number', + unit: '', + role: 'value.voltage', + min: 0, + max: 5, + wunderground: '^leakbatt([0-9])*', + ecowitt: '^leakbatt([0-9])*', + scheduler: null, + listener_conversion: null, + scheduler_conversion: null } ]; diff --git a/package.json b/package.json index 751c9a2..dce95a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.sainlogic", - "version": "0.11.1", + "version": "0.11.2", "description": "Read data from a sainlogic based weather station", "author": { "name": "Daniel Draes",