Skip to content

Commit

Permalink
Expose type as variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Matze2 committed Sep 28, 2024
1 parent 9172b44 commit 0582e4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions daikin.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const SpecialMode = {
'12/13': 'ECONO/STREAMER'
};

const DemandControlType = {'0': 'UNSUPPORTED', '1': 'SUPPORTED'};
const DemandControlMode = {'0': 'MANUAL', '1': 'TIMER', '2': 'AUTO'};

const channelDef = {
Expand Down Expand Up @@ -196,6 +197,7 @@ const fieldDef = {
},
'demandControl': {
'enabled': {'role': 'switch', 'read': true, 'write': false, 'type': 'boolean'}, // can be writable later
'type': {'role': 'level', 'read': true, 'write': false, 'type': 'number', 'states': DemandControlType},
'mode': {'role': 'level', 'read': true, 'write': false, 'type': 'number', 'states': DemandControlMode}, // can be writable later
'maxPower': {
'role': 'level.power',
Expand Down

0 comments on commit 0582e4f

Please sign in to comment.