diff --git a/README.md b/README.md index 2c747a40..50a2ceaf 100755 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ This is a generic node that supports the following Google [devices](https://deve * Fireplace * Freezer * Fryer +* Game console * Garage * Gate * Grill diff --git a/devices/device.html b/devices/device.html index f69e0d2d..2e391744 100644 --- a/devices/device.html +++ b/devices/device.html @@ -118,6 +118,7 @@ + @@ -3325,6 +3326,10 @@ recommended_traits = ["cook", "startstop", "timer"]; required_traits = ["onoff"]; break; + case "GAME_CONSOLE": // Game console + recommended_traits = ["volume"]; + required_traits = ["appselector", "mediastate", "onoff", "transportcontrol"]; + break; case "GARAGE": // Garage recommended_traits = []; required_traits = ["openclose"]; diff --git a/devices/device.js b/devices/device.js index 0171a104..0e882acb 100644 --- a/devices/device.js +++ b/devices/device.js @@ -195,6 +195,12 @@ module.exports = function (RED) { case "FRYER": // Fryer this.trait.onoff = true; break; + case "GAME_CONSOLE": // Game console + this.trait.appselector = true; + this.trait.mediastate = true; + this.trait.onoff = true; + this.trait.transportcontrol = true; + break; case "GARAGE": // Garage this.trait.openclose = true; break; diff --git a/devices/locales/en-US/device.json b/devices/locales/en-US/device.json index 9ce3fc08..a65d06ae 100644 --- a/devices/locales/en-US/device.json +++ b/devices/locales/en-US/device.json @@ -348,6 +348,7 @@ "FIREPLACE": "Fireplace", "FREEZER": "Freezer", "FRYER": "Fryer", + "GAME_CONSOLE": "Game console", "GARAGE": "Garage", "GATE": "Gate", "GRILL": "Grill",