From 7a67577aa19a3c4482a2ada240d813c283e5ed09 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 27 Mar 2022 22:13:04 +0200 Subject: [PATCH] added w (writeable) --- interface/src/project/types.ts | 1 + mock-api/server.js | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/interface/src/project/types.ts b/interface/src/project/types.ts index 5bcf45dad..f9537f1d1 100644 --- a/interface/src/project/types.ts +++ b/interface/src/project/types.ts @@ -147,6 +147,7 @@ export interface DeviceEntity { n: string; // name s: string; // shortname m: number; // mask + w?: boolean; // writeable i: number; // unique id } diff --git a/mock-api/server.js b/mock-api/server.js index 5942773dd..2539f9a54 100644 --- a/mock-api/server.js +++ b/mock-api/server.js @@ -344,19 +344,19 @@ const emsesp_devices = { i: 1, d: 23, p: 77, - s: 'Thermostat1', + s: 'Thermostat1 (RC20/Moduline 300)', }, { i: 2, d: 8, p: 123, - s: 'Boiler', + s: 'Boiler (Nefit GBx72/Trendline/Cerapur/Greenstar Si/27i)', }, { i: 4, d: 16, p: 165, - s: 'Thermostat2', + s: 'Thermostat2 (RC100/Moduline 1000/1010)', }, ], } @@ -450,7 +450,7 @@ const status = { // Dashboard data const emsesp_devicedata_1 = { - label: 'RC20/Moduline 300', + label: 'Thermostat: RC20/Moduline 300', data: [ { v: '(0)', @@ -567,7 +567,7 @@ const emsesp_devicedata_2 = { } const emsesp_devicedata_4 = { - label: 'RC100/Moduline 1000/1010', + label: 'Thermostat: RC100/Moduline 1000/1010', data: [ { v: 16, @@ -610,6 +610,7 @@ const emsesp_deviceentities_1 = [ n: 'hc1 selected room temperature', s: 'hc1/seltemp', m: 0, + w: true, i: 3, }, { @@ -624,6 +625,7 @@ const emsesp_deviceentities_1 = [ n: 'hc1 mode', s: 'hc1/mode', m: 0, + w: true, i: 5, }, ]