johnvey / smartthings-hd-powerview

Hunter Douglas PowerView bridge for SmartThings
GNU General Public License v3.0
15 stars 47 forks source link

Alexa can't set variable brightness on shades #3

Closed johnvey closed 6 years ago

johnvey commented 6 years ago

@johnvey, thanks for the PowerView integration. I am able to control individual shade from ST to Alexa. However, I notice Alexa can not set the % of how high or low the shade will be. It will open and close fully by saying “Turn on and off” with Alexa. However, saying “Set shades to 40%” will have no result. Is there something else I need to do for Alexa to control the % of opening and closing of the shades?

Originally: https://community.smartthings.com/t/release-hunter-douglas-powerview-hub-integration/105388/69

johnvey commented 6 years ago

Logs indicate that Alexa integration transmits brightness in Float type; existing code was expecting Int.

groovy.lang.MissingMethodException: No signature of method: script_dth_e4403dcf3313d8c2a3b42391bf2b934b8a895f2e9012abd551e9ad40b6043d33.setPosition() is applicable for argument types: (java.lang.Float, java.lang.Integer) values: [25.0, 1]
Possible solutions: presetPosition(), getLocation() @line 409 (setLevel)