Skip to content

Devices Managment Devices

Fabio Gollinucci edited this page Feb 16, 2020 · 2 revisions

Supported Devices

Google Home and Alexa supports different devices types, this depends from their API system. Here a list of device type that can be set in type device property and the related Shadow document reported/desired property.

In case the device type in not supported by home assistant it will not present in discovery/sync response.

AirFreshener

Supported by: Google Home

Shadow:

{
  "state" : {
    "reported" : {
      "on": false
    }
  }
}

on: boolean, true if on, false if is off.

ContactSensor

Supported by: Alexa

Shadow:

{
  "state" : {
    "reported" : {
      "open": false
    }
  }
}

open: boolean, false if the contact is detected, true otherwise.

MotionSensor

Supported by: Alexa

Shadow:

{
  "state" : {
    "reported" : {
      "detected": false
    }
  }
}

detected: boolean, true if the motion is detected, false otherwise.

Lock

Supported by: Alexa

Shadow:

{
  "state" : {
    "reported" : {
      "locked": false
    }
  }
}

locked: boolean, true if locked, false otherwise.

Switch

Supported by: Google Home and Alexa

Shadow:

{
  "state" : {
    "reported" : {
      "on": false
    }
  }
}

on: boolean, true if on, false otherwise.

Light

Supported by: Google Home and Alexa

Shadow:

{
  "state" : {
    "reported" : {
      "on": false
    }
  }
}

on: boolean, true if the light is on, false otherwise.

DimmableLight

Supported by: Google Home and Alexa

Shadow:

{
  "state" : {
    "reported" : {
      "on": false,
      "brightness": 20
    }
  }
}

on: boolean, true if the light is on, false otherwise. brightness: integer, the light's brightness level, from 0 to 100.

DimmableColoredLight

Supported by: Google Home and Alexa

Shadow:

{
  "state" : {
    "reported" : {
      "on": false,
      "brightness": 20,
      "color": {
        "r": 255,
        "g": 0,
        "b": 0
      }
    }
  }
}

on: boolean, true if the light is on, false otherwise. brightness: integer, the light's brightness level, from 0 to 100. color: object, an object that represent the color in RBG format.

Plug

Supported by: Google Home and Alexa

Shadow:

{
  "state" : {
    "reported" : {
      "on": false
    }
  }
}

on: boolean, true if the power is on, false otherwise.

TemperatureSensor

Supported by: Google Home and Alexa

Shadow:

{
  "state" : {
    "reported" : {
      "temperature": 20,
      "humidity": 40
    }
  }
}

temperature: float, the temperature value (celsius or farenight, based on temperatureUnit attribute) humidity: float, the humidity value (supported only by Google Home)

Additional Thing's attribute:

temperatureUnit: string, C for celsius, F for farenight (default celsius)

Thermostat

Supported by: Google Home and Alexa

Shadow:

{
  "state" : {
    "reported" : {
      "temperature": 24,
      "humidity": 50,
      "temperatureSetpoint": 21,
      "mode": "cool"
    }
  }
}

temperature: float, the ambient temperature value (celsius or farenight, based on temperatureUnit attribute) humidity: float, the ambient humidity value (supported only by Google Home) temperatureSetpoint: float, the temperature value desired mode: string, current thermostat mode, must be present in availableThermostatModes list.

Additional Thing's attribute:

temperatureUnit: string, C for celsius, F for farenight (default celsius) bufferRangeCelsius: integer, number of degree to increase or decrease when asking "colder" or "hotter" availableThermostatModes: string, comma-separated list of supported thermostat modes

Not every modes are supported by Alexa (follow this link, use the value in lowercase) or Google Home (follow this link)

Sprinkler

Supported by: Google Home

Shadow:

{
  "state" : {
    "reported" : {
      "running": true,
      "paused": false,
      "zones": [
        "front",
        "back"
      ]
    }
  }
}

running: boolean, true if sprinkler are running, false otherwise. paused: boolean, true if paused, false otherwise (default true). zones: array of string, the current active zones

Additional Thing's attribute:

pausable: string, true for enable, false otherwise zones: string, comma-separated list of supported zones