helmut-hoffer-von-ankershoffen / hassio-ring-bridge Goto Github PK
View Code? Open in Web Editor NEWAddon for Home Assistant (Hassio) acting as as bridge to the Ring API
License: MIT License
Addon for Home Assistant (Hassio) acting as as bridge to the Ring API
License: MIT License
I am new to Home Assistant and looking for some help. Step 3 says:
While you wait, call npx -p ring-client-api ring-auth-cli on your Mac or Windows machine to generate a refresh token. When generated click on Configuration, set the value of refresh_token to the token generated and click SAVE.
I have no idea how to call npx -p ring-client-api ring-auth-cli. Please let me know.
At some point recently this add-on stopped working (not entirely sure when, because the automation that uses it rarely fires. I've uninstalled, restarted HA and reinstalled the add-on a couple of times, and I can't figure out the problem.
I went to look at what localhost:8000/location-mode was returning and get: {"status":"error"}
The log file shows that a get to location-mode returns 404 (log file for the add-on is full of these, as you can see from the rejection IDs).
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[23:55:25] INFO: Refresh token configured as ZZZ.
[23:55:25] INFO: Starting bridge service.
[email protected] start
node index.js
Initializing webservice.
Checking and possibly updating persisted tokens.
Ignoring token in addon config, using updated one from /data/tokens.json {
config: 'ZZZ',
updated: 'YYY'
}
Initializing RingApi with refreshToken YYY.
Initializing subscriber for refresh token updates.
Starting listener on port 8000.
Ring Bridge is running on port 8000.
onRefreshTokenUpdated: got old YYY, new XXX, known YYY
onRefreshTokenUpdated: set XXX as refreshToken in-process
onRefreshTokenUpdated: set XXX as tokens.updated in /data/tokens.json
(node:215) UnhandledPromiseRejectionWarning: HTTPError: Response code 404 (Not Found)
at Request. (/node_modules/got/dist/source/as-promise/index.js:117:42)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Usenode --trace-warnings ...
to show where the warning was created)
(node:215) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:215) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
GET /location-mode
HTTPError: Response code 404 (Not Found)
at Request. (/node_modules/got/dist/source/as-promise/index.js:117:42)
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
code: undefined,
timings: {
start: 1627800929554,
socket: 1627800929555,
lookup: 1627800929804,
connect: 1627800929884,
secureConnect: 1627800930046,
upload: 1627800930047,
response: 1627800930128,
end: 1627800930129,
error: undefined,
abort: undefined,
phases: {
wait: 1,
dns: 249,
tcp: 80,
tls: 162,
request: 1,
firstByte: 81,
download: 1,
total: 575
}
}
}
(node:215) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
(node:215) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '0' of undefined
at /index.js:80:22
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(node:215) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
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.