2.2.6 capability update cheat sheet

2.2.6 updates
//WindowShade capability.windowShade
add command startPositionChange(String "open" || "close")
add command stopPositionChange()

//Telnet capability.telnet
add command sendMsg(String message)
add attribute networkStatus ["online", "offline"]

//HoldableButton capability.holdableButton
add command hold(Integer buttonId)

//PushableButton capability.pushableButton
add command push(Integer buttonId)

//DoubleTapableButton capability.doubleTapableButton
add command doubleTap(Integer buttonId)

//ReleasableButton capability.releasableButton
add command release(Integer buttonId)

//FanControl capability.fanControl
add attribute supportedFanSpeeds JSON_OBJECT
add command cycleSpeed()

//ColorTemperature capability.colorTemperature
change command setColorTemperature(Integer colortemperature, Integer level = null, Integer transitionTime = null)

//SpeechSynthesis capability.speechSynthesis
change command speak(String text, Integer volume = null, String awsPollyVoiceName = null)

--2.2.6 new
add capability Flash, capability.flash
//Flash capability.flash
add command flash(Integer rateToFlashMS = null) //use device preference setting or some default value if null.

add capability MediaTransport, capability.mediaTransport
//MediaTransport, capability.mediaTransport
add command play
add command pause
add command stop
add attribute transportStatus ENUM - ["playing", "paused", "stopped"]

add capability MediaInputSource, capability.mediaInputSource
//MediaInputSource, capability.mediaInputSource
add command setInputSource(String inputName)
add add attribute supportedInputs JSON_OBJECT
add attribute mediaInputSource STRING

add capability WindowBlind capability.windowBlind
//WindowBlind capability.windowBlind
add command setTiltLevel(Integer tiltPercent)
add command open()
add command close()
add command setPosition(Integer positionPercent)
add command startPositionChange(String "open" || "close")
add command stopPositionChange()
add attribute tilt NUMBER, unit:%, range:0..100
add attribute position NUMBER, unit:%, range:0..100
add attribute windowShade ENUM ["opening", "partially open", "closed", "open", "closing", "unknown"]

add capability AirQuality capability.airQuality
//AirQuality capability.airQuality
add attribute airQualityIndex NUMBER, range 0..500

add capability GasDetector capability.gasDetector
//GasDetector capability.gasDetector
add attribute naturalGas ENUM ["detected", "tested", "clear"]

//VoltageMeasurement capability.voltageMeasurement
add attribute frequency NUMBER, unit:Hz

add capability CurrentMeter capability.currentMeter
//CurrentMeter capability.currentMeter
add attribute amperage NUMBER, unit:A

add capability LiquidFlowRate capability.liquidFlowRate
//LiquidFlowRate capability.liquidFlowRate
add attribute rate NUMBER, unit:LPM ||GPM

add capability LevelPreset capability.levelPreset
//LevelPreset capability.levelPreset
add command presetLevel(Integer level) 1..100
add attribute levelPreset NUMBER, unit:%

add capability Variable capability.variable
//Variable capability.variable
add command setVariable(String value)
add attribute variable STRING

2.2.6 removals
//Thermostat capability.thermostat
remove command setSchedule()
remove attribute schedule

21 Likes