diff --git a/src/devices/sonoff.ts b/src/devices/sonoff.ts index 9393165e462e2..48cccebcaf265 100644 --- a/src/devices/sonoff.ts +++ b/src/devices/sonoff.ts @@ -622,6 +622,34 @@ const definitions: Definition[] = [ unit: 'mV', access: 'STATE_GET', }), + numeric({ + name: 'valve_opening_degree', + cluster: 0xFC11, + attribute: {ID: 0x600B, type: 0x20}, + description: 'Valve open position (percentage) control. ' + + 'If the opening degree is set to 100%, the valve is fully open when it is opened. ' + + 'If the opening degree is set to 0%, the valve is fully closed when it is opened, ' + + 'and the default value is 100%. ' + + 'Note: only version v1.1.4 or higher is supported.', + valueMin: 0.0, + valueMax: 100.0, + valueStep: 1.0, + unit: '%', + }), + numeric({ + name: 'valve_closing_degree', + cluster: 0xFC11, + attribute: {ID: 0x600C, type: 0x20}, + description: 'Valve closed position (percentage) control. ' + + 'If the closing degree is set to 100%, the valve is fully closed when it is closed. ' + + 'If the closing degree is set to 0%, the valve is fully opened when it is closed, ' + + 'and the default value is 100%. ' + + 'Note: Only version v1.1.4 or higher is supported.', + valueMin: 0.0, + valueMax: 100.0, + valueStep: 1.0, + unit: '%', + }), sonoffExtend.weeklySchedule(), customTimeResponse('1970_UTC'), ],