Giter Club home page Giter Club logo

bco.app's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bco.app's Issues

Cloud Connector losses connection to the cloud without detecting it.

Maybe this logs delivers some hints about the real issue. At least once the cloud connector detects the missing connection, those is successfully reestablished. Maybe we need just to activate TCP keep alive pinging to stabilize the connection.

Or maybe the 02:49:02.096 [EventThread] WARN o.o.b.a.c.SocketWrapper Could not perform sync for user[e9df6579-d1d9-4a8c-a24d-af93d0024e9a]: "400: Request contains an invalid argument." is causing the disconnect but in this case we need more logging to detect the invalid argument.

0:10:23.545 [EventThread] INFO  o.o.b.a.c.SocketWrapper Socket of user[e9df6579-d1d9-4a8c-a24d-af93d0024e9a] disconnected
00:10:24.150 [EventThread] INFO  o.o.b.a.c.SocketWrapper Attempt to reconnect socket of user e9df6579-d1d9-4a8c-a24d-af93d0024e9a
00:10:24.151 [EventThread] INFO  o.o.b.a.c.SocketWrapper Reconnection event for user e9df6579-d1d9-4a8c-a24d-af93d0024e9a
00:10:24.518 [EventThread] INFO  o.o.b.a.c.SocketWrapper Socket of user e9df6579-d1d9-4a8c-a24d-af93d0024e9a reconnected!
00:10:24.598 [EventThread] INFO  o.o.b.a.c.SocketWrapper Socket of user[e9df6579-d1d9-4a8c-a24d-af93d0024e9a] connected
00:10:24.970 [EventThread] INFO  o.o.b.a.c.SocketWrapper Logged in [e9df6579-d1d9-4a8c-a24d-af93d0024e9a] successfully
00:10:25.348 [EventThread] WARN  o.o.b.a.c.SocketWrapper Could not perform sync for user[e9df6579-d1d9-4a8c-a24d-af93d0024e9a]: "400: Request contains an invalid argument."
02:48:53.954 [EventThread] INFO  o.o.b.a.c.SocketWrapper Socket of user[e9df6579-d1d9-4a8c-a24d-af93d0024e9a] disconnected
02:48:54.861 [EventThread] INFO  o.o.b.a.c.SocketWrapper Attempt to reconnect socket of user e9df6579-d1d9-4a8c-a24d-af93d0024e9a
02:48:54.862 [EventThread] INFO  o.o.b.a.c.SocketWrapper Reconnection event for user e9df6579-d1d9-4a8c-a24d-af93d0024e9a
02:49:01.267 [EventThread] INFO  o.o.b.a.c.SocketWrapper Socket of user e9df6579-d1d9-4a8c-a24d-af93d0024e9a reconnected!
02:49:01.367 [EventThread] INFO  o.o.b.a.c.SocketWrapper Socket of user[e9df6579-d1d9-4a8c-a24d-af93d0024e9a] connected
02:49:01.697 [EventThread] INFO  o.o.b.a.c.SocketWrapper Logged in [e9df6579-d1d9-4a8c-a24d-af93d0024e9a] successfully
02:49:02.096 [EventThread] WARN  o.o.b.a.c.SocketWrapper Could not perform sync for user[e9df6579-d1d9-4a8c-a24d-af93d0024e9a]: "400: Request contains an invalid argument."
05:51:05.772 [EventThread] INFO  o.o.b.a.c.SocketWrapper Socket of user[e9df6579-d1d9-4a8c-a24d-af93d0024e9a] disconnected
05:51:06.369 [EventThread] INFO  o.o.b.a.c.SocketWrapper Attempt to reconnect socket of user e9df6579-d1d9-4a8c-a24d-af93d0024e9a
05:51:06.372 [EventThread] INFO  o.o.b.a.c.SocketWrapper Reconnection event for user e9df6579-d1d9-4a8c-a24d-af93d0024e9a
05:51:06.760 [EventThread] INFO  o.o.b.a.c.SocketWrapper Socket of user e9df6579-d1d9-4a8c-a24d-af93d0024e9a reconnected!
05:51:06.863 [EventThread] INFO  o.o.b.a.c.SocketWrapper Socket of user[e9df6579-d1d9-4a8c-a24d-af93d0024e9a] connected
05:51:07.233 [EventThread] INFO  o.o.b.a.c.SocketWrapper Logged in [e9df6579-d1d9-4a8c-a24d-af93d0024e9a] successfully
05:51:07.709 [EventThread] WARN  o.o.b.a.c.SocketWrapper Could not perform sync for user[e9df6579-d1d9-4a8c-a24d-af93d0024e9a]: "400: Request contains an invalid argument."

Duplicate device class for openhab thing

Some devices which have separate classes in our system are of the same thing type in openHAB. An example for this are the Philips hues generation 1 and 3.
So in these cases it is not possible to decide for which of these classes a device should be registered.
It is possible to just chose one but that makes config synchronization with old bco configuration harder.

Save Labels

Labels should also be saved when storing data in influx

Enhance config synchronization from BCO to OpenHAB2

Currently only updates from openHAB things are synchronized to BCO. This has to be enhanced by also handling item changes and synchronizing changes from BCO to OpenHAB2.
For example if a device is removed and label changes or location changes are applied.

CloudConnectorApp sync request does not work anymore

Currently the sync request does not work anymore, because the API for it has changed.
Therefore, the configuration used by the Google Assistant cannot be updated anymore.

Before the API change a unique id was added as a query parameter to the sync request uri to identify the action.
We added this id as a secure parameter for our heroku application.

With the new API the owner of the action has to generate a service account key.
I guess this key is then used for oath authentication.
The actions-on-google npm package provides an easy way to make sync request with this key.

So, I think the solution to this problem is as follows:

  1. Generate the service account key for the BCO action
  2. Add the json content of the generated key file as a secure heroku parameter
  3. User the package by google with this parameter to make the sync request

Fulfillment Handler throws errors when states are not initialized.

Maybe we should just skip such updates to avoid mapping errors.

15:52:11.420 [pool-1-thread-619] ERROR o.o.b.a.c.FulfillmentHandler ═══⚀ Could not map [PowerState, UNKNOWN] to jsonObject
15:52:11.420 [pool-1-thread-619] ERROR o.o.b.a.c.FulfillmentHandler =====================================
15:52:11.421 [pool-1-thread-639] ERROR o.o.b.a.c.FulfillmentHandler ═══⚀ Could not map [PowerState, UNKNOWN] to jsonObject
15:52:11.421 [pool-1-thread-639] ERROR o.o.b.a.c.FulfillmentHandler =====================================
15:52:11.427 [pool-1-thread-661] ERROR o.o.b.a.c.FulfillmentHandler ═══⚀ Could not map [PowerState, UNKNOWN] to jsonObject
15:52:11.429 [pool-1-thread-661] ERROR o.o.b.a.c.FulfillmentHandler =====================================
15:52:11.430 [pool-1-thread-665] ERROR o.o.b.a.c.FulfillmentHandler ═══⚀ Could not map [PowerState, UNKNOWN] to jsonObject
15:52:11.430 [pool-1-thread-665] ERROR o.o.b.a.c.FulfillmentHandler =====================================
15:52:11.434 [pool-1-thread-619] ERROR o.o.b.a.c.FulfillmentHandler ═══⚀ Could not map [PowerState, UNKNOWN] to jsonObject
15:52:11.435 [pool-1-thread-619] ERROR o.o.b.a.c.FulfillmentHandler =====================================
15:52:11.434 [pool-1-thread-639] ERROR o.o.b.a.c.FulfillmentHandler ═══⚀ Could not map [PowerState, UNKNOWN] to jsonObject
15:52:11.436 [pool-1-thread-639] ERROR o.o.b.a.c.FulfillmentHandler =====================================
15:52:11.443 [pool-1-thread-51] ERROR o.o.b.a.c.FulfillmentHandler ═══⚀ Could not map [PowerState, UNKNOWN] to jsonObject
15:52:11.444 [pool-1-thread-51] ERROR o.o.b.a.c.FulfillmentHandler =====================================
15:52:11.446 [pool-1-thread-627] ERROR o.o.b.a.c.FulfillmentHandler ═══⚀ Could not map [PowerState, UNKNOWN] to jsonObject
15:52:11.447 [pool-1-thread-627] ERROR o.o.b.a.c.FulfillmentHandler =====================================

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.