Amazon Alexa primary capability selection?

I am using Echo Skill app to control my devices through Amazon Alexa.

Now I have a specific problem with a specific device.

The device has following capabilities:
capability "Switch"
capability "SwitchLevel"
capability "TemperatureMeasurement"
capability "RelativeHumidityMeasurement"
// capability "FilterStatus"
// capability "FanControl"
capability "Refresh"

Alexa defines the device as "temperature sensor" and does not allow me to use the "switch" and "level" features.
How does it select the primary capability ?
if I delete (or comment out) temperaturemeasurement from the capability list, Alexa defines it as a Switch and lets me use level & switch features.

also, can I make it use both temperature & switch features ? (like a heater)

1 Like

Can you add capability "Actuator" to the driver?

I tried that but did not change the situation.
Still; if I leave "TemperatureMeasurement" , I am not able to use switch & level, if I remove it I can use switch & level.

What is the device?

device is a Xiaomi air purifier connected using Mi Connector

no ideas on this ?

I think your best bet would be to make a virtual switch and tie it to the main device with a rule. Then share that virtual switch to Alexa.

Or the driver may need to implement a child device so the sensors and the switches are on separate "devices".

1 Like