Skip to content

Commit

Permalink
Remove navigation attribute (#404)
Browse files Browse the repository at this point in the history
Signed-off-by: jsetton <jeremy.setton@gmail.com>
  • Loading branch information
jsetton authored Nov 9, 2021
1 parent 7e61b09 commit d7a62cc
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 580 deletions.
46 changes: 5 additions & 41 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ The skill connects your openHAB setup through the [myopenHAB.org](http://myopenH
* New security [arm state](#armstate) errors handling.
* Support for [input](#input) custom mappings.
* Support for [playback stop](#playbackstop) requests.
* Support for [onscreen navigation](#navigation) requests.
* Support for [thermostat hold](#thermostathold) setting and [thermostat fan](#thermostatfan) mode.
* Added new [custom asset ids](#custom-asset-catalog).
* Added new [custom semantic extensions](#custom-semantic-catalog).
Expand Down Expand Up @@ -245,7 +244,7 @@ Switch Oscillate "Oscillate" (Fan) {alexa="FanOscillate"}
Switch Power "Power" (Fan) {alexa="PowerState"}
```

A stereo with volume, mute, input, channel, playback, navigation, equalizer and power on/off controls.
A stereo with volume, mute, input, channel, playback, equalizer and power on/off controls.

```xtend
Group Stereo "Stereo" {alexa="Speaker"}
Expand All @@ -256,7 +255,6 @@ String Input "Input" (Stereo) {alexa="Input" [supportedInputs="HDMI1,TV"]
String Channel "Channel" (Stereo) {alexa="Channel"}
Player Playback "Playback" (Stereo) {alexa="Playback"}
Switch Stop "Stop" (Stereo) {alexa="PlaybackStop"}
String Navigate "Navigate" (Stereo) {alexa="Navigation" [UP="up",DOWN="down",LEFT="left",RIGHT="right",SELECT="select"]}
Number Bass "Bass" (Stereo) {alexa="EqualizerBass" [range="-10:10"]}
Number Midrange "Mid" (Stereo) {alexa="EqualizerMidrange" [range="-10:10"]}
Number Treble "Treble" (Stereo) {alexa="EqualizerTreble" [range="-10:10"]}
Expand Down Expand Up @@ -503,7 +501,7 @@ Device Types | Supported Attributes | Description
`Automobile` | [`BatteryLevel`](#batterylevel), [`FanSpeed`](#fanspeed), [`LockState`](#lockstate), [`PowerState`](#powerstate), [`CurrentTemperature`](#currenttemperature) | A motor vehicle (automobile, car).
`AutomobileAccessory` | [`BatteryLevel`](#batterylevel), [`CameraStream`](#camerastream), [`FanSpeed`](#fanspeed), [`PowerState`](#powerstate) | A smart device in an automobile, such as a dash camera.
`Blind`, `Curtain`, `Shade` | _[`OpenState`](#openstate)_, _[`PositionState`](#positionstate)_, [`TiltAngle`](#tiltAngle), [`TargetOpenState`](#targetopenstate), [`CurrentOpenState`](#currentopenstate) | A window covering on the inside of a structure.
`BluetoothSpeaker` | _[`PowerState`](#powerstate)_, _[`VolumeLevel`](#volumelevel)_, [`MuteState`](#mutestate), [`EqualizerBass`](#equalizerbass), [`EqualizerMidrange`](#equalizermidrange), [`EqualizerTreble`](#equalizertreble), [`EqualizerMode`](#equalizermode), [`Channel`](#channel), [`Input`](#input), [`Playback`](#playback), [`PlaybackStop`](#playbackstop), [`Navigation`](#navigation), [`BatteryLevel`](#batterylevel) | A speaker that connects to an audio source over Bluetooth.
`BluetoothSpeaker` | _[`PowerState`](#powerstate)_, _[`VolumeLevel`](#volumelevel)_, [`MuteState`](#mutestate), [`EqualizerBass`](#equalizerbass), [`EqualizerMidrange`](#equalizermidrange), [`EqualizerTreble`](#equalizertreble), [`EqualizerMode`](#equalizermode), [`Channel`](#channel), [`Input`](#input), [`Playback`](#playback), [`PlaybackStop`](#playbackstop), [`BatteryLevel`](#batterylevel) | A speaker that connects to an audio source over Bluetooth.
`Camera` | _[`PowerState`](#powerstate)_, _[`CameraStream`](#camerastream)_, [`BatteryLevel`](#batterylevel) | A security device with video or photo functionality.
`ChristmasTree` | Same as `Light` | A religious holiday decoration that often contains lights.
`CoffeeMaker` | _[`PowerState`](#powerstate)_ | A device that makes coffee.
Expand Down Expand Up @@ -536,11 +534,11 @@ Device Types | Supported Attributes | Description
`SecuritySystem` | Same as `SecurityPanel` | A security system.
`Shutter`, `Awning` | Same as `Blind` | A window covering on the outside of a structure.
`SlowCooker` | _[`PowerState`](#powerstate)_ | An electric cooking device that sits on a countertop, cooks at low temperatures, and is often shaped like a cooking pot.
`Speaker` | _[`PowerState`](#powerstate)_, _[`VolumeLevel`](#volumelevel)_, [`MuteState`](#mutestate), [`EqualizerBass`](#equalizerbass), [`EqualizerMidrange`](#equalizermidrange), [`EqualizerTreble`](#equalizertreble), [`EqualizerMode`](#equalizermode), [`Channel`](#channel), [`Input`](#input), [`Playback`](#playback), [`PlaybackStop`](#playbackstop), [`Navigation`](#navigation) | A speaker or speaker system.
`StreamingDevice` | _[`PowerState`](#powerstate)_, _[`Playback`](#playback)_, [`PlaybackStop`](#playbackstop), [`Navigation`](#navigation), [`Channel`](#channel), [`Input`](#input), [`VolumeLevel`](#volumelevel), [`MuteState`](#mutestate), [`EqualizerBass`](#equalizerbass), [`EqualizerMidrange`](#equalizermidrange), [`EqualizerTreble`](#equalizertreble), [`EqualizerMode`](#equalizermode) | A streaming device such as Apple TV, Chromecast, or Roku.
`Speaker` | _[`PowerState`](#powerstate)_, _[`VolumeLevel`](#volumelevel)_, [`MuteState`](#mutestate), [`EqualizerBass`](#equalizerbass), [`EqualizerMidrange`](#equalizermidrange), [`EqualizerTreble`](#equalizertreble), [`EqualizerMode`](#equalizermode), [`Channel`](#channel), [`Input`](#input), [`Playback`](#playback), [`PlaybackStop`](#playbackstop) | A speaker or speaker system.
`StreamingDevice` | _[`PowerState`](#powerstate)_, _[`Playback`](#playback)_, [`PlaybackStop`](#playbackstop), [`Channel`](#channel), [`Input`](#input), [`VolumeLevel`](#volumelevel), [`MuteState`](#mutestate), [`EqualizerBass`](#equalizerbass), [`EqualizerMidrange`](#equalizermidrange), [`EqualizerTreble`](#equalizertreble), [`EqualizerMode`](#equalizermode) | A streaming device such as Apple TV, Chromecast, or Roku.
`Switch` | _[`PowerState`](#powerstate)_, _[`PowerLevel`](#powerlevel)_, _[`Percentage`](#percentage)_ | A switch wired directly to the electrical system. A switch can control a variety of devices. For lighting devices, use `Light` instead.
`Tablet` | _[`PowerState`](#powerstate)_, [`BatteryLevel`](#batterylevel), [`NetworkAccess`](#networkaccess) | A tablet computer.
`Television` | _[`PowerState`](#powerstate)_, _[`Channel`](#channel)_, [`Input`](#input), [`VolumeLevel`](#volumelevel), [`MuteState`](#mutestate), [`EqualizerBass`](#equalizerbass), [`EqualizerMidrange`](#equalizermidrange), [`EqualizerTreble`](#equalizertreble), [`EqualizerMode`](#equalizermode), [`Playback`](#playback), [`PlaybackStop`](#playbackstop), [`Navigation`](#navigation) | A television.
`Television` | _[`PowerState`](#powerstate)_, _[`Channel`](#channel)_, [`Input`](#input), [`VolumeLevel`](#volumelevel), [`MuteState`](#mutestate), [`EqualizerBass`](#equalizerbass), [`EqualizerMidrange`](#equalizermidrange), [`EqualizerTreble`](#equalizertreble), [`EqualizerMode`](#equalizermode), [`Playback`](#playback), [`PlaybackStop`](#playbackstop) | A television.
`TemperatureSensor` | _[`CurrentTemperature`](#currenttemperature)_, [`BatteryLevel`](#batterylevel) | An endpoint that reports temperature, but does not control it. The temperature data of the endpoint doesn't appear in the Alexa app. If your endpoint also controls temperature, use `Thermostat` instead.
`Thermostat` | _[`HeatingCoolingMode`](#heatingcoolingmode)_, [`TargetTemperature`](#targettemperature), [`CoolingSetpoint`](#coolingsetpoint), [`HeatingSetpoint`](#heatingsetpoint), [`EcoCoolingSetpoint`](#ecocoolingsetpoint), [`EcoHeatingSetpoint`](#ecoheatingsetpoint), [`ThermostatHold`](#thermostathold), [`ThermostatFan`](#thermostatfan), [`CurrentTemperature`](#currenttemperature), [`CurrentHumidity`](#currenthumidity), [`BatteryLevel`](#batterylevel) | An endpoint that controls temperature, stand-alone air conditioners, or heaters with direct temperature control. If your endpoint senses temperature but does not control it, use `TemperatureSensor` instead.
`VacuumCleaner` | _[`PowerState`](#powerstate)_, _[`VacuumMode`](#vacuummode)_, [`FanSpeed`](#fanspeed), [`BatteryLevel`](#batterylevel) | A vacuum cleaner.
Expand Down Expand Up @@ -921,39 +919,6 @@ Items that represent the playback stop command of a AV device. This needs to be
* Utterance examples:
* *Alexa, stop `<device name>`.*

#### `Navigation`

Items that represent the onscreen navigation of a AV device.

* Supported item types:
* String [UP="up", DOWN="down", LEFT="left", RIGHT="right", SELECT="select", PAGE_UP="pageup", PAGE_DOWN="pagedown", PAGE_LEFT="pageleft", PAGE_RIGHT="pageright", INFO="info", MORE="more", BACK="back"]
* Supported metadata parameters:
* UP=`<command>`
* DOWN=`<command>`
* LEFT=`<command>`
* RIGHT=`<command>`
* SELECT=`<command>`
* PAGE_UP=`<command>`
* PAGE_DOWN=`<command>`
* PAGE_LEFT=`<command>`
* PAGE_RIGHT=`<command>`
* INFO=`<command>`
* MORE=`<command>`
* BACK=`<command>`
* supportedKeys=`<keys>`
* comma delimited list (e.g. `supportedKeys="UP,DOWN,LEFT,RIGHT,SELECT"`)
* supported keys are UP, DOWN, LEFT, RIGHT, SELECT, PAGE_UP, PAGE_DOWN, PAGE_LEFT, PAGE_RIGHT, INFO, MORE, BACK
* defaults to, depending on the parameters provided, either user-based or item type-based default mappings.
* Utterance examples:
* *Alexa, go left on `<device name>`.*
* *Alexa, move down on `<device name>`.*
* *Alexa, scroll right on `<device name>`.*
* *Alexa, page up on `<device name>`.*
* *Alexa, select this on `<device name>`.*
* *Alexa, navigate back on `<device name>`.*
* *Alexa, show details on `<device name>`.*
* *Alexa, show info on `<device name>`.*

### Fan Attributes

#### `FanSpeed`
Expand Down Expand Up @@ -1923,7 +1888,6 @@ ColorController | [`Color`](#color) | `de-DE`, `en-AU`, `en-CA`, `en-GB`, `en-IN
ColorTemperatureController | [`ColorTemperature`](#colortemperature) | `de-DE`, `en-AU`, `en-CA`, `en-GB`, `en-IN`, `en-US`, `es-ES`, `fr-FR`, `hi-IN`, `it-IT`, `ja-JP`, `pt-BR`
ContactSensor | [`ContactDetectionState`](#contactdetectionstate) | `de-DE`, `en-AU`, `en-CA`, `en-IN`, `en-US`, `es-ES`, `it-IT`, `ja-JP`
EqualizerController | [`EqualizerBass`](#equalizerbass), [`EqualizerMidrange`](#equalizermidrange), [`EqualizerTreble`](#equalizertreble), [`EqualizerMode`](#equalizermode) | `de-DE`, `en-IN`, `en-US`, `es-ES`, `it-IT`, `ja-JP`, `pt-BR`
KeypadController | [`Navigation`](#navigation) | `en-GB`, `en-US`, `es-MX`
LockController | [`LockState`](#lockstate) | `de-DE`, `en-AU`, `en-CA`, `en-GB`, `en-IN`, `en-US`, `es-ES`, `es-MX`, `es-US`, `fr-CA`, `fr-FR`, `hi-IN`, `it-IT`, `ja-JP`, `pt_BR`
ModeController | [`Mode`](#mode), [`FanDirection`](#fandirection), [`FanSpeed`](#fanspeed), [`Input`](#input), [`OpenState`](#openstate), [`PositionState`](#positionstate), [`TiltAngle`](#tiltangle), [`ThermostatFan`](#thermostatfan), [`VacuumMode`](#vacuummode) | `de-DE`, `en-AU`, `en-CA`, `en-GB`, `en-IN`, `en-US`, `es-ES`, `es-MX`, `fr-CA`, `fr-FR`, `it-IT`, `ja-JP`
MotionSensor | [`MotionDetectionState`](#motiondetectionstate) | `de-DE`, `en-AU`, `en-CA`, `en-IN`, `en-US`, `es-ES`, `it-IT`, `ja-JP`, `pt-BR`
Expand Down
1 change: 0 additions & 1 deletion lambda/alexa/smarthome/capabilities/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ module.exports = {
[Capability.ENDPOINT_HEALTH]: require('./endpointHealth'),
[Capability.EQUALIZER_CONTROLLER]: require('./equalizerController'),
[Capability.INPUT_CONTROLLER]: require('./inputController'),
[Capability.KEYPAD_CONTROLLER]: require('./keypadController'),
[Capability.LOCK_CONTROLLER]: require('./lockController'),
[Capability.MODE_CONTROLLER]: require('./modeController'),
[Capability.MOTION_SENSOR]: require('./motionSensor'),
Expand Down
66 changes: 0 additions & 66 deletions lambda/alexa/smarthome/capabilities/keypadController.js

This file was deleted.

3 changes: 0 additions & 3 deletions lambda/alexa/smarthome/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const Capability = Object.freeze({
ENDPOINT_HEALTH: 'EndpointHealth',
EQUALIZER_CONTROLLER: 'EqualizerController',
INPUT_CONTROLLER: 'InputController',
KEYPAD_CONTROLLER: 'KeypadController',
LOCK_CONTROLLER: 'LockController',
MODE_CONTROLLER: 'ModeController',
MOTION_SENSOR: 'MotionSensor',
Expand Down Expand Up @@ -65,7 +64,6 @@ const Interface = Object.freeze({
ALEXA_ENDPOINT_HEALTH: 'Alexa.EndpointHealth',
ALEXA_EQUALIZER_CONTROLLER: 'Alexa.EqualizerController',
ALEXA_INPUT_CONTROLLER: 'Alexa.InputController',
ALEXA_KEYPAD_CONTROLLER: 'Alexa.KeypadController',
ALEXA_LOCK_CONTROLLER: 'Alexa.LockController',
ALEXA_MODE_CONTROLLER: 'Alexa.ModeController',
ALEXA_MOTION_SENSOR: 'Alexa.MotionSensor',
Expand Down Expand Up @@ -108,7 +106,6 @@ const Property = Object.freeze({
EQUALIZER_MODE: 'mode',
FIRE_ALARM: 'fireAlarm',
INPUT: 'input',
KEYSTROKE: 'keystroke',
LOCK_STATE: 'lockState',
LOWER_SETPOINT: 'lowerSetpoint',
MODE: 'mode',
Expand Down
1 change: 0 additions & 1 deletion lambda/alexa/smarthome/device/attributes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ module.exports = {
Mode: require('./mode'),
MotionDetectionState: require('./motionDetectionState'),
MuteState: require('./muteState'),
Navigation: require('./navigation'),
NetworkAccess: require('./networkAccess'),
ObstacleAlert: require('./obstacleAlert'),
OpenState: require('./openState'),
Expand Down
39 changes: 0 additions & 39 deletions lambda/alexa/smarthome/device/attributes/navigation.js

This file was deleted.

2 changes: 0 additions & 2 deletions lambda/alexa/smarthome/device/types/entertainment.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const {
Input,
Playback,
PlaybackStop,
Navigation,
EqualizerBass,
EqualizerMidrange,
EqualizerTreble,
Expand All @@ -43,7 +42,6 @@ class Entertainment extends GenericDevice {
Input,
Playback,
PlaybackStop,
Navigation,
EqualizerBass,
EqualizerMidrange,
EqualizerTreble,
Expand Down
1 change: 0 additions & 1 deletion lambda/alexa/smarthome/handlers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ module.exports = {
Discovery: require('./discovery'),
EqualizerController: require('./equalizerController'),
InputController: require('./inputController'),
KeypadController: require('./keypadController'),
LockController: require('./lockController'),
ModeController: require('./modeController'),
NetworkingAccessController: require('./networkingAccessController'),
Expand Down
75 changes: 0 additions & 75 deletions lambda/alexa/smarthome/handlers/keypadController.js

This file was deleted.

1 change: 0 additions & 1 deletion lambda/alexa/smarthome/properties/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ module.exports = {
EqualizerMode: require('./equalizerMode'),
Generic: require('./generic'),
Input: require('./input'),
Keystroke: require('./keystroke'),
LockState: require('./lockState'),
LowerSetpoint: require('./lowerSetpoint'),
Mode: require('./mode'),
Expand Down
Loading

0 comments on commit d7a62cc

Please sign in to comment.