From c9260aeafa6f4d9a9dfd6daeb2e63a25f6e59bb3 Mon Sep 17 00:00:00 2001 From: jafrka <47077689+jafrka@users.noreply.github.com> Date: Sun, 24 Mar 2024 21:57:20 +0100 Subject: [PATCH] Update createSolarFlowStates.js --- build/helpers/createSolarFlowStates.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/build/helpers/createSolarFlowStates.js b/build/helpers/createSolarFlowStates.js index 8120d3e..a501f29 100644 --- a/build/helpers/createSolarFlowStates.js +++ b/build/helpers/createSolarFlowStates.js @@ -206,6 +206,19 @@ const createSolarFlowStates = async (adapter, productKey, deviceKey) => { }, native: {} })); + + await (adapter == null ? void 0 : adapter.extendObjectAsync(`${productKey}.${deviceKey}.hubState`, { + type: "state", + common: { + name: { de: "Hub Status", en: "hub output state" }, + type: "string", + desc: "hubState", + role: "value", + read: true, + write: false + }, + native: {} + })); await (adapter == null ? void 0 : adapter.extendObjectAsync(`${productKey}.${deviceKey}.electricLevel`, { type: "state", common: {