From 7933bd7f91030a6640c6f6f82a74e90913b969df Mon Sep 17 00:00:00 2001 From: Matthew Parlane Date: Wed, 7 Nov 2018 02:17:56 +1300 Subject: [PATCH] Allow alexa to simply turn on and off climate components. (#16989) --- homeassistant/components/alexa/smart_home.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/alexa/smart_home.py b/homeassistant/components/alexa/smart_home.py index 80e584a4a75..99d2a50bee0 100644 --- a/homeassistant/components/alexa/smart_home.py +++ b/homeassistant/components/alexa/smart_home.py @@ -717,6 +717,9 @@ class _ClimateCapabilities(_AlexaEntity): return [_DisplayCategory.THERMOSTAT] def interfaces(self): + supported = self.entity.attributes.get(ATTR_SUPPORTED_FEATURES, 0) + if supported & climate.SUPPORT_ON_OFF: + yield _AlexaPowerController(self.entity) yield _AlexaThermostatController(self.hass, self.entity) yield _AlexaTemperatureSensor(self.hass, self.entity)