Skip to content

Commit

Permalink
#18 Fixed state roles
Browse files Browse the repository at this point in the history
  • Loading branch information
a-i-ks committed May 19, 2024
1 parent a3ab8f7 commit 1cf1640
Showing 1 changed file with 17 additions and 28 deletions.
45 changes: 17 additions & 28 deletions io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
"_id": "info.id",
"type": "state",
"common": {
"role": "value",
"role": "info.serial",
"name": "Volumio Id",
"type": "string",
"read": true,
Expand All @@ -165,7 +165,7 @@
"_id": "info.host",
"type": "state",
"common": {
"role": "value",
"role": "info.address",
"name": "Volumio host address",
"type": "string",
"read": true,
Expand All @@ -176,7 +176,7 @@
"_id": "info.name",
"type": "state",
"common": {
"role": "value",
"role": "info.name",
"name": "Volumio instance name",
"type": "string",
"read": true,
Expand All @@ -187,7 +187,7 @@
"_id": "info.type",
"type": "state",
"common": {
"role": "value",
"role": "text",
"name": "Volumio instance type",
"type": "string",
"read": true,
Expand All @@ -198,7 +198,7 @@
"_id": "info.serviceName",
"type": "state",
"common": {
"role": "value",
"role": "text",
"name": "Volumio service name",
"type": "string",
"read": true,
Expand All @@ -209,7 +209,7 @@
"_id": "info.systemversion",
"type": "state",
"common": {
"role": "value",
"role": "info.firmware",
"name": "Volumio system version",
"type": "string",
"read": true,
Expand All @@ -220,7 +220,7 @@
"_id": "info.builddate",
"type": "state",
"common": {
"role": "value",
"role": "info.firmware",
"name": "Volumio system version build date",
"type": "string",
"read": true,
Expand All @@ -231,7 +231,7 @@
"_id": "info.variant",
"type": "state",
"common": {
"role": "value",
"role": "text",
"name": "Volumio system variant",
"type": "string",
"read": true,
Expand All @@ -242,7 +242,7 @@
"_id": "info.hardware",
"type": "state",
"common": {
"role": "value",
"role": "info.hardware",
"name": "Volumio system hardware",
"type": "string",
"read": true,
Expand All @@ -253,7 +253,7 @@
"_id": "info.isPremiumDevice",
"type": "state",
"common": {
"role": "value",
"role": "state",
"name": "Volumio Premium Device",
"type": "boolean",
"read": true,
Expand All @@ -264,7 +264,7 @@
"_id": "info.isVolumioProduct",
"type": "state",
"common": {
"role": "value",
"role": "state",
"name": "Volumio Product",
"type": "boolean",
"read": true,
Expand Down Expand Up @@ -309,7 +309,7 @@
"_id": "player.playN",
"type": "state",
"common": {
"role": "value",
"role": "state",
"name": "Play n-th track on queue",
"type": "number",
"read": true,
Expand Down Expand Up @@ -458,19 +458,7 @@
"_id": "queue.clearQueue",
"type": "state",
"common": {
"role": "button",
"name": "Clear the queue",
"type": "boolean",
"read": false,
"write": true
},
"native": {}
},
{
"_id": "queue.clearQueue",
"type": "state",
"common": {
"role": "button",
"role": "media.clear",
"name": "Clear the queue",
"type": "boolean",
"read": false,
Expand Down Expand Up @@ -540,7 +528,7 @@
"common": {
"role": "media.track",
"name": "Position in playlist of current track",
"type": "number",
"type": "string",
"read": true,
"write": false
},
Expand Down Expand Up @@ -658,7 +646,7 @@
"_id": "playbackInfo.samplerate",
"type": "state",
"common": {
"role": "text",
"role": "media.bitrate",
"name": "Samplerate of current track",
"type": "string",
"read": true,
Expand All @@ -682,7 +670,7 @@
"_id": "playbackInfo.channels",
"type": "state",
"common": {
"role": "value",
"role": "state",
"name": "Number of channels of current track",
"type": "number",
"read": true,
Expand Down Expand Up @@ -767,6 +755,7 @@
"_id": "playbackInfo.dbVolume",
"type": "state",
"common": {
"role": "state",
"name": "Volume in dB",
"type": "number",
"read": true,
Expand Down

0 comments on commit 1cf1640

Please sign in to comment.