I am trying to run a command on a device in Hubitat. The device is a door/window sensor. I want to use the command “resetToClosed”, but I cant figure out how to do it.
This is the output from maker API.
{"name":"Xiaomi Door/Window Sensor","label":"Altand\u00f6rr","type":"Xiaomi Door/Window Sensor","id":"119","date":"2020-08-30T17:47:21+0000","model":null,"manufacturer":null,"capabilities":["Battery","ContactSensor","Sensor"],"attributes":{"battery":"100","dataType":"STRING","values":null,"batteryLastReplaced":"Wed Aug 12 16:47:19 CEST 2020","contact":"open","lastCheckin":"1598809590653","lastClosed":"1598797553589","lastOpened":"1598809641314"},"commands":[{"command":"resetBatteryReplacedDate"},{"command":"resetToClosed"},{"command":"resetToOpen"}]}