-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: Add isOn() isOff() #24
Comments
yamaha-nodejs implementation for |
Yes you are right. I just think this is more natural, I have already implemented deviceState so this is not a problem right now. Just an idea. Feel free to close this issue😉 |
sorry, I did it already and released to npm :D |
I just looked a vit more deeply yamaha library and yes it is Promise api - it was wrapped to promise based here: https://github.com/PSeitz/yamaha-nodejs/blob/0bd1d83371061332a30bfefbb2f9d76c6c5002bf/simpleCommands.js#L452 . So onkyo.js behaviours now a bit different than yamaha lib for isOn and isOff -functions. Perhaps I should switch that to Promise based - at least it is always up-to-date because no cached value needed.. |
Description
Enhancement
Suggested enhancement
Enhance power api like yamaha-nodejs
powerStatus return object like
{ PWR : true }
Implement or modify existing power api like yamaha package return:
What do you think about this feature ?
The text was updated successfully, but these errors were encountered: