mirror of https://github.com/nymea/nymea.git
29 lines
849 B
JSON
29 lines
849 B
JSON
{
|
|
"desciption": "A volume controller allows to control volume and mute. At the very least, increaseVolume and decreaseVolume are to be implemented for devices that don't have a way to fetch the current volume. For devices allowing to set an absolute volume value, the volume and mute states should be implemented as well.",
|
|
"extends": "media",
|
|
"states": [
|
|
{
|
|
"name": "mute",
|
|
"type": "bool",
|
|
"writable": true,
|
|
"optional": true
|
|
},
|
|
{
|
|
"name": "volume",
|
|
"type": "int",
|
|
"minValue": "any",
|
|
"maxValue": "any",
|
|
"writable": true,
|
|
"optional": true
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"name": "increaseVolume"
|
|
},
|
|
{
|
|
"name": "decreaseVolume"
|
|
}
|
|
]
|
|
}
|