aboutsummaryrefslogtreecommitdiff
path: root/tests_schema/daemon/testdevice/standard_traits.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests_schema/daemon/testdevice/standard_traits.h')
-rw-r--r--tests_schema/daemon/testdevice/standard_traits.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests_schema/daemon/testdevice/standard_traits.h b/tests_schema/daemon/testdevice/standard_traits.h
index c63c5fe..27586f8 100644
--- a/tests_schema/daemon/testdevice/standard_traits.h
+++ b/tests_schema/daemon/testdevice/standard_traits.h
@@ -196,6 +196,35 @@ const char kTraits[] = R"({
}
}
}
+ },
+ "volume": {
+ "commands": {
+ "setConfig": {
+ "minimalRole": "user",
+ "parameters": {
+ "volume": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "isMuted": {
+ "type": "boolean"
+ }
+ }
+ }
+ },
+ "state": {
+ "volume": {
+ "isRequired": true,
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "isMuted": {
+ "isRequired": true,
+ "type": "boolean"
+ }
+ }
}
})";
@@ -203,6 +232,7 @@ const char kDefaultState[] = R"({
"lock":{"isLockingSupported": true},
"onOff":{"state": "on"},
"brightness":{"brightness": 0.0},
+ "volume":{"isMuted": true},
"colorTemp":{"colorTemp": 0},
"colorXy": {
"colorSetting": {"colorX": 0.0, "colorY": 0.0},