How to stop a shutter using Aeon motor controller?


(Niv Gal Waizer) #1

I am using the aeon motor controller to drive a shutter up and down.
According to the capabilities : http://docs.smartthings.com/en/latest/capabilities-reference.html
There is a way to run it up(on) and down(off) but no way to stop it.
Here is the device handler used:
https://github.com/bravenel/SmartThings/blob/master/Aeon%20Motor%20Controller

Thanks,
Niv


(Mark C) #2

Looks like it should stop on command
line 53 there makes a stop button in the DH so should be a stop button, LN124 is the stop command?
capability should be “Door Control”
you would also have to check what the supported commands are ie should 124 be WINDOW_COVERING_STOP_LEVEL_CHANGE


(Niv Gal Waizer) #3

Thanks MarkC,
I am using google voice to control this shutter.
I am able to tell it to go up using: “Hey Google, turn on the shutter”
but “Hey Google, stop the shutter” does nothing.
How to fix this?
Niv


(Mark C) #4

id start with fixing the capability then google might recognaise the device traits.
ive never fully worked out how to add a google trait
https://developers.google.com/actions/smarthome/traits/startstop#request

on my trv DH i found that thermostat (my DH capability) had a summer mode so i used def summer() as a command to run my boost ie set mode to summer ran def summer which in the code ran the boost command

you could try adding the capability of a washing machine then in might let you use existing def stop()

capability “Dishwasher Operating State”
capability “Media Playback”
have stop commands but id start with the Window Shade or Door Control or Garage Door Control to see if one of those cabability has a stop/pause trait in google

edit
you could try pause command as well as stop

you might have to go into the google smart app and untick save the retick save device authorisatoins to force a refresh into google for the device type and its traits


#5

IIRC, These devices are viewed as a dimmer switch by the voice assistants, so you can’t stop the motion, but you may be able to say “set shutter to 50%” to have it open halfway.

You should also be able to set up a scene or routine in SmartThings and then have Google home activate that.


(Niv Gal Waizer) #6

Well, a way to stop a moving shutter, is really useful.
I tried adding the line capability “Dishwasher Operating State”
then tried saying ‘hey google, stop the shutter’
or ‘hey google, pause the shutter’
But they both did not work.
I also tried issuing ‘Hey google set shutter to 30%’
But this did not work as well.


(Mark C) #7

have a look at this https://github.com/SmartThingsCommunity/SmartThingsPublic/blob/production/devicetypes/smartthings/zwave-window-shade.src/zwave-window-shade.groovy particualty the devivce type

metadata {
definition (name: “Z-Wave Window Shade”, namespace: “smartthings”, author: “SmartThings”, ocfDeviceType: "oic.d.blind") {
capability “Window Shade”
capability “Battery”
capability “Refresh”
capability “Health Check”
capability “Actuator”
capability “Sensor”

    command "stop"

(Niv Gal Waizer) #8

Thanks Mark,
After adding this ocf I can no longer use the on and off commands:
“Hey google turn the shutter on”


(Mark C) #9

Open close?