Skip to content

Commit

Permalink
added w (writeable)
Browse files Browse the repository at this point in the history
  • Loading branch information
proddy committed Mar 27, 2022
1 parent fe3e02c commit 7a67577
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions interface/src/project/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export interface DeviceEntity {
n: string; // name
s: string; // shortname
m: number; // mask
w?: boolean; // writeable
i: number; // unique id
}

Expand Down
12 changes: 7 additions & 5 deletions mock-api/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
},
],
}
Expand Down Expand Up @@ -450,7 +450,7 @@ const status = {

// Dashboard data
const emsesp_devicedata_1 = {
label: 'RC20/Moduline 300',
label: 'Thermostat: RC20/Moduline 300',
data: [
{
v: '(0)',
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -610,6 +610,7 @@ const emsesp_deviceentities_1 = [
n: 'hc1 selected room temperature',
s: 'hc1/seltemp',
m: 0,
w: true,
i: 3,
},
{
Expand All @@ -624,6 +625,7 @@ const emsesp_deviceentities_1 = [
n: 'hc1 mode',
s: 'hc1/mode',
m: 0,
w: true,
i: 5,
},
]
Expand Down

0 comments on commit 7a67577

Please sign in to comment.