flochtililoch / homebridge-pivot-power-genius Goto Github PK
View Code? Open in Web Editor NEW Homebridge plugin for the Wink Pivot Power Genius (former Quirky).
Homebridge plugin for the Wink Pivot Power Genius (former Quirky).
I am able to install the plugin, but am not able to find the uuid. I tried the command $ DEBUG=wink:http homebridge
in terminal, but it says "command not found."
If this plugin is actually working for anyone, it would be amazing if someone would be willing to help me get it working, thanks!
I have two Power Pivot Genius strips. One will reliably turn on and off, the other will change state once to on or off, and then crash. Below is example from config.json:
{
"platform": "Wink Pivot Power Genius",
"name": "Wink Pivot Power Genius",
"client_id": "quirky_wink_android_app",
"client_secret": "e749124ad386a5a35c0ab554a4f2c045",
"username": "[email protected]",
"password": "mypassword",
"outlets": [
{
"uuid": "6c3266c1-5acd-45e0-865f-70e425674625_0",
"hapService": "Outlet",
"name": "VSphere ESXi"
},
{
"uuid": "6c3266c1-5acd-45e0-865f-70e425674625_1",
"hapService": "Outlet",
"name": "Desk Lamp"
},
{
"uuid": "eb24b286-0c87-4697-94d7-51cfd2e558c8_0",
"hapService": "Lightbulb",
"name": "Light"
},
{
"uuid": "eb24b286-0c87-4697-94d7-51cfd2e558c8_1",
"hapService": "Lightbulb",
"name": "Outlet 2"
}
]
}
The error in the command window is as follows after toggling the outlet:
C:\Users\Administrator\AppData\Roaming\npm\node_modules\homebridge\bin>homebridge
C:\Users\Administrator\AppData\Roaming\npm\node_modules\homebridge-pivot-power-genius\lib\accessory.js:65
return done(undefined, outlet.powered);
^
TypeError: Cannot read property 'powered' of undefined
at C:\Users\Administrator\AppData\Roaming\npm\node_modules\homebridge-pivot-power-genius\lib\accessory.js:65:38
at remoteOutlet.update (C:\Users\Administrator\AppData\Roaming\npm\node_modules\homebridge-pivot-power-genius\lib\accessory.js:58:7)
at C:\Users\Administrator\AppData\Roaming\npm\node_modules\homebridge-pivot-power-genius\node_modules\wink-js\index.js:384:8
at IncomingMessage.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\homebridge-pivot-power-genius\node_modules\wink-js\index.js:75:7)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
C:\Users\Administrator\AppData\Roaming\npm\node_modules\homebridge\bin>
It's probably user error on my part, but I'm at a loss. Both strips work fine from Wink app, but the iOS Home app will crash out homebridge on certain outlets.
Thanks for any help, and for writing this plugin!
Hi there, I got access to the Wink API and installed the plugin but when I try to start homebridge i get an authorization error invalid_grant: This client is not permitted to use the password grant type
. Any advice is much appreciated!
Hey @flochtililoch - hoping you can jump in here and make a small change to your package.json so that the npm setup works properly. When attempting to npm install this package, there's a failure trying to get scoobyshi/wink-js.git
- looks like it needs an update to look at: https://github.com/winfinit/wink-js
I get the following message when trying to install this plugin. Is there anything that can be done to resolve this? Thanks!
$ sudo npm install -g homebridge-pivot-power-genius
npm ERR! path git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn git
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://[email protected]/scoobyshi/wink-js.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
I am able to install the plugin, but am not able to find the uuid
. Per the instructions (below), I tried the command $ DEBUG=wink:http homebridge
in terminal, but it says "command not found."
uuid
can be found by running homebridge with the command$ DEBUG=wink:http homebridge
and observing the console output. Objects with the propertyobject_type
set tooutlet
contains a propertyuuid
- this is the one you need.
If this plugin is actually working for anyone, it would be amazing if someone would be willing to help me get it working, thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.