Set custom state value from a tile for home decorator fan

how can I set the state of my fan device which has a fanMode state that has values like "fanOne" and "FanTwo" instead of the fan template's default fanMode states of low/med/high/etc? when I click the state values in the device they fire correctly and turn on the fan, but can't figure out how to pass those values to the device through a tile.

Are you using a customer device driver?

If so you would have to redirect in the drive something LIKE ( have to look up fan capabilitys)

Def low(){

But don't forget to do send event to update the tile

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.