Use automation state for devices used by api

This commit is contained in:
Vishal Banthia
2016-11-23 06:45:36 +05:30
parent 42b55889ae
commit a62a6094e4
11 changed files with 45 additions and 10 deletions

View File

@@ -148,6 +148,7 @@ function addUserDevice(req, res) {
.handler()
req.options.channelRouter.on(wireutil.global, messageListener)
var usage = 'automation'
req.options.push.send([
device.channel
@@ -165,6 +166,7 @@ function addUserDevice(req, res) {
, match: 'exact'
}
})
, usage
)
)
])