Closed brian-gates closed 8 years ago
hi brian
what does getActivities()
return? is there an activity with the id -1
?
if so, API is most probably the same as before.
thx for confirmation, manu
There is an item id -1 with label PowerOff
.
startActivity(-1)
does turn everything off.
Is it possible to turn off a single device by id?
client.isOff().then(log)
seems to always output true
regardless of device state. I think that's why your demo script doesn't toggle as it should.
Activities have a property controlGroup
which hint at useful functionalities like Volume
, Channel
, DisplayMode
. Are these somehow accessible?
isOff
and turnOff
is meant to turn off the complete system, not specific devices.Thanks for the information.
I still think there's a bug though: isOff
returns true after turning a device on.
I'll take a look at orchestra-jsapi
. I'm guessing executeAction is what I'm looking for?
My main goal is to turn off a single device (by id or name). Not sure if executeAction
will accomplish this, or how.
Any help is appreciated!
@brian-gates i know it's been 3 years, but i'm having the exact same problem. Were you able to figure out how to end an activity?
Hi there,
First, awesome lib. Great work.
However, using your examples turns devices on, but does not turn them back off. Perhaps there was a shift in the API?
Any help would be appreciated :)