Giter VIP home page Giter VIP logo

bachome's Introduction

Build and Lint

BAChome

This is a project for my diploma. It converts BACnet objects into HomeKit accessories. To create the HomeKit accessories this project works as a Homebridge plugin.

Contributions are welcome after the 30th of August 2020 are welcome. Until then pull requests won't be processed until then.

Configuring the plugin

This plugin supports visual configuration using the Homebridge Config UI X web interface.

If you want to create the configuration manually, you have to register the platform and accessories in your config.json file. An example may look like this:

{
    "platforms": [
        {
            "name": "BAChome Dynamic Platform",
            "switch": [
                {
                    "name": "Bedroom",
                    "manufacturer": "Caserage",
                    "model": "Caserage's switch",
                    "serial": "ABC"
                }
            ],
            "thermostat": [
                {
                    "name": "Kitchen",
                    "manufacturer": "Caserage",
                    "model": "Caserage's thermostat",
                    "serial": "DEF"
                }
            ],
            "cooler": [
                {
                    "name": "Living room",
                    "manufacturer": "Caserage",
                    "model": "Caserage's cooler",
                    "serial": "GHI"
                }
            ],
            "platform": "bachome"
        }
    ]
}

Install Development Dependencies

Using a terminal, navigate to the project folder and run this command to install the development dependencies:

npm install

Build Plugin

TypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your src directory and put the resulting code into the dist folder.

npm run build

Link To Homebridge

Run this command so your global install of Homebridge can discover the plugin in your development environment:

npm link

You can now start Homebridge, use the -D flag so you can see debug log messages in your plugin:

homebridge -D

Watch For Changes and Build Automatically

If you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:

npm run watch

This will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will the config stored in the default location under ~/.homebridge. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the nodemon.json file.

bachome's People

Contributors

apsysikal avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bachome's Issues

Move to the homebridge logger.

Console.log() calls should be replaced with calls to the homebridge logger element, which is passed during initialisation.

No Communication in HomeKit

The objects in HomeKit are not reachable after node update i think...

Jun 22 09:02:02 homebridge homebridge[6067]: at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bachome/node_modules/bacstack/lib/client.js:75:
Jun 22 09:02:02 homebridge homebridge[6067]: at listOnTimeout (internal/timers.js:557:17)
Jun 22 09:02:02 homebridge homebridge[6067]: at processTimers (internal/timers.js:500:7)
Jun 22 09:02:02 homebridge homebridge[6067]: (node:6067) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwi
Jun 22 09:02:02 homebridge homebridge[6067]: (node:6067) UnhandledPromiseRejectionWarning: Error: ERR_TIMEOUT
Jun 22 09:02:02 homebridge homebridge[6067]: at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bachome/node_modules/bacstack/lib/client.js:75:
Jun 22 09:02:02 homebridge homebridge[6067]: at listOnTimeout (internal/timers.js:557:17)
Jun 22 09:02:02 homebridge homebridge[6067]: at processTimers (internal/timers.js:500:7)

Add rate limiting / slow mode

Some devices may get "overloaded" with too many requests as the plugin does no rate-limiting on its side.
This may result in a device becoming unresponsive, slow or even connection timeouts.
The idea is to implement rate-limiting and/or slow mode to stop device getting bombarded with requests.

Update Github actions.

The Github actions should be updated to better reflect / check the current configuration. This should include linting, formatting.
The updated actions should also be able to be used in Pull requests.

Update usage documentation

The documentation should be updated. This should include the README file aswell as the code documentation.

No Command to BACnet Network

Hello
First of all thanks for the implementation of the plugin.
I'm testing it at the moment, but i'm struggeling to get it running.
The integration into Homebridge was no problem, Also the Switch button are in my Home App.
Unfortunatelly no command is "broadcasted" into the network from my iPhone.
I'm using YABE as Bacnet Explorer and nothing changes inside.
Do you have a clue wat this could be.
BR
Sebastian

Causing Homebridge to crash

[12/1/2020, 8:23:34 PM] [Config] Initializing config platform...
[12/1/2020, 8:23:34 PM] [Config] Running in Service Mode
[12/1/2020, 8:23:34 PM] [BAChome ALC] Initializing bachome platform...
[12/1/2020, 8:23:34 PM] [BAChome ALC] Loading accessory from cache: Test
[12/1/2020, 8:23:34 PM] [BAChome ALC] Restoring existing accessory from cache: Test
[12/1/2020, 8:23:34 PM] TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
at Hash.update (internal/crypto/hash.js:82:11)
at Object.generate (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/uuid.ts:9:11)
at ExampleHomebridgePlatform.discoverDevices (/homebridge/node_modules/homebridge-bachome/src/platform.ts:69:38)
at HomebridgeAPI. (/homebridge/node_modules/homebridge-bachome/src/platform.ts:43:12)
at HomebridgeAPI.emit (events.js:327:22)
at HomebridgeAPI.signalFinished (/usr/local/lib/node_modules/homebridge/src/api.ts:251:10)
at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:158:14)
at cli (/usr/local/lib/node_modules/homebridge/src/cli.ts:80:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
[12/1/2020, 8:23:34 PM] Got SIGTERM, shutting down Homebridge...

homebridge-bond prevents homebridge from running

I haave three bonds, connected by wifi. A workman was here and he cut the power to the porch. When power was restored the bond on the porch failed to associate with wifi. The homebridge-bond plugin gets an error which sends homebridge into a crash - restart loop. A more desirable behavior would be to catch unexpected errors in plugins, report it and disable the plugin.

12/6/2020, 8:22:52 AM] Homebridge is running on port 51828.
NOTICE: Temperature Unit is Now: (F)
NOTICE: Updating Global Values | HubIP: 192.168.11.4 | UseLocal: false
WARN: Devices to Remove: (0) []
INFO: Devices to Update: (28)
GOOD: Devices to Create: (0) []
ALERT: Total Initialization Time: (1 seconds)
NOTICE: Unknown Capabilities: []
INFO: SmartThings DeviceCache Size: (28)
INFO: WebServer Initiated...
INFO: Sending StartDirect Request to SmartThings | SendToLocalHub: (false)
INFO: Direct Connect Active | Listening at 192.168.11.16:8000
INFO: SmartThings-v2 Hub Communication Established
[12/6/2020, 8:22:53 AM] [Hue] Bed: set homekit supported transition configuration to {"configuration":[{"iid":11,"characteristic":1},{"iid":13,"characteristic":2}]}
[12/6/2020, 8:22:53 AM] [Hue] Bed: set homekit transition control to ""
[12/6/2020, 8:22:53 AM] [Hue] Wall: set homekit supported transition configuration to {"configuration":[{"iid":11,"characteristic":1},{"iid":21,"characteristic":2}]}
INFO: INFO: Your plugin version is up-to-date
NOTICE: Sending Plugin Status to SmartThings | UpdateAvailable: false | newVersion: 2.3.8
[12/6/2020, 8:23:02 AM] [Bond] A request error occurred: undefined
[12/6/2020, 8:23:02 AM] [Bond] Error getting device ids: TypeError: Cannot convert undefined or null to object
[12/6/2020, 8:23:02 AM] [Bond] A request error occurred: undefined
[12/6/2020, 8:23:02 AM] [Bond] Error getting version: TypeError: Cannot read property 'bondid' of undefined
[12/6/2020, 8:23:02 AM] [Bond] 7 cached accessories were loaded
[12/6/2020, 8:23:02 AM] [Bond] Getting devices for this Bond (BD26875)...
[12/6/2020, 8:23:02 AM] [Bond] 3 devices were found on this Bond (BD26875).
[12/6/2020, 8:23:02 AM] [Bond] No new devices to add for this Bond (BD26875).
[12/6/2020, 8:23:02 AM] [Bond] Getting devices for this Bond (ZZBL47083)...
[12/6/2020, 8:23:02 AM] [Bond] 2 devices were found on this Bond (ZZBL47083).
[12/6/2020, 8:23:02 AM] [Bond] No new devices to add for this Bond (ZZBL47083).
(node:4446) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'bondid' of undefined
at BondPlatform.getDevices (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:47:65)
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:39:26
at Array.forEach ()
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:38:28
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use node --trace-warnings ... to show where the warning was created)
(node:4446) 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: 9)
(node:4446) [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.
[12/6/2020, 8:23:02 AM] [Bond] Configuring Accessory: Patio Spa Fan
[12/6/2020, 8:23:02 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:02 AM] [Bond] Configuring Accessory: Patio Patio Fan
[12/6/2020, 8:23:02 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:02 AM] [Bond] Configuring Accessory: Great Room Back Fan
[12/6/2020, 8:23:02 AM] [Bond] [Back Fan] actions: OEMTimer,TurnOff,SetSpeed,ToggleLight,Stop,TogglePower,TurnOn,IncreaseSpeed,DecreaseSpeed,TurnLightOn,TurnLightOff
[12/6/2020, 8:23:02 AM] [Bond] Configuring Accessory: Great Room Front Fan
[12/6/2020, 8:23:02 AM] [Bond] [Front Fan] actions: OEMTimer,ToggleLight,TurnOff,SetSpeed,Stop,TogglePower,TurnOn,IncreaseSpeed,DecreaseSpeed,TurnLightOn,TurnLightOff
[12/6/2020, 8:23:02 AM] [Bond] Configuring Accessory: Master Bedroom Bedroom Fan
[12/6/2020, 8:23:02 AM] [Bond] [Bedroom Fan] actions: SetSpeed,ToggleDirection,TurnOff,ToggleLight,StartDimmer,Stop,TogglePower,TurnOn,IncreaseSpeed,DecreaseSpeed,SetDirection,TurnLightOn,TurnLightOff
[12/6/2020, 8:23:02 AM] [Bond] Configuring Accessory: Guest Bedroom Guest Fan
[12/6/2020, 8:23:02 AM] [Bond] [Guest Fan] actions: SetSpeed,ToggleDirection,TurnOff,Stop,TogglePower,TurnOn,IncreaseSpeed,DecreaseSpeed,SetDirection
[12/6/2020, 8:23:02 AM] [Bond] Configuring Accessory: Office Office Fan
[12/6/2020, 8:23:02 AM] [Bond] [Office Fan] actions: SetSpeed,ToggleDirection,TurnOff,Stop,TogglePower,TurnOn,IncreaseSpeed,DecreaseSpeed,SetDirection
[12/6/2020, 8:23:02 AM] Got SIGTERM, shutting down Homebridge...
[12/6/2020, 8:23:03 AM] [Bond] Configuring Accessory: Patio Spa Fan
[12/6/2020, 8:23:03 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:03 AM] [Bond] Configuring Accessory: Patio Patio Fan
[12/6/2020, 8:23:03 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:03 AM] [Bond] Configuring Accessory: Patio Spa Fan
[12/6/2020, 8:23:03 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:03 AM] [Bond] Configuring Accessory: Patio Patio Fan
[12/6/2020, 8:23:03 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:04 AM] [Bond] Configuring Accessory: Patio Spa Fan
[12/6/2020, 8:23:04 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:04 AM] [Bond] Configuring Accessory: Patio Patio Fan
[12/6/2020, 8:23:04 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:04 AM] [Bond] Configuring Accessory: Patio Spa Fan
[12/6/2020, 8:23:04 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
(node:4446) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [DailyRotateFile]. Use emitter.setMaxListeners() to increase limit
[12/6/2020, 8:23:04 AM] [Bond] Configuring Accessory: Patio Patio Fan
[12/6/2020, 8:23:04 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
(node:4446) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 finish listeners added to [DailyRotateFile]. Use emitter.setMaxListeners() to increase limit
[12/6/2020, 8:23:05 AM] [Bond] Configuring Accessory: Patio Spa Fan
[12/6/2020, 8:23:05 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:05 AM] [Bond] Configuring Accessory: Patio Patio Fan
[12/6/2020, 8:23:05 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:05 AM] [Bond] Configuring Accessory: Patio Spa Fan
[12/6/2020, 8:23:05 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:05 AM] [Bond] Configuring Accessory: Patio Patio Fan
[12/6/2020, 8:23:05 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:06 AM] [Bond] Configuring Accessory: Patio Spa Fan
[12/6/2020, 8:23:06 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:06 AM] [Bond] Configuring Accessory: Patio Patio Fan
[12/6/2020, 8:23:06 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:06 AM] [Bond] Configuring Accessory: Patio Spa Fan
[12/6/2020, 8:23:06 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:06 AM] [Bond] Configuring Accessory: Patio Patio Fan
[12/6/2020, 8:23:06 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:07 AM] [Bond] Configuring Accessory: Patio Spa Fan
[12/6/2020, 8:23:07 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:07 AM] [Bond] Configuring Accessory: Patio Patio Fan
[12/6/2020, 8:23:07 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:07 AM] [Bond] Configuring Accessory: Patio Spa Fan
[12/6/2020, 8:23:07 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:07 AM] [Bond] Configuring Accessory: Patio Patio Fan
[12/6/2020, 8:23:07 AM] TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
ERROR: uncaughtException: Cannot read property 'bondid' of undefined
TypeError: Cannot read property 'bondid' of undefined
at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
at Array.find ()
at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[12/6/2020, 8:23:07 AM] [Hue] goodbye
[12/6/2020, 8:23:07 AM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[12/6/2020, 8:23:12 AM] [HB Supervisor] Restarting Homebridge...
[12/6/2020, 8:23:12 AM] [HB Supervisor] Starting Homebridge with extra flags: -I
[12/6/2020, 8:23:12 AM] [HB Supervisor] Started Homebridge v1.1.6 with PID: 449

Homebridge doesn't start after Update Node/NPM

Hi, my homebridge doesn't start after Update NPM & Node for some Plugins.

The issue come from Bachome....

After remove plugin, my homebridge run normaly.

Sep 05 10:02:56 homebridge homebridge[20330]: [5.9.2021, 10:02:56] [homebridge-bachome] This plugin slows down Homebridge. The read handler for the characteristic 'On' was slow to respond! See https://git.io/JtMGR for more info.

Bachome - AI or AV without thermostat oder cooling, like only outsidetempreatur

Hi,

at first thanks for the fix, the switch works great! I wait a long time for a bacnet homebridge plugin, thank you very much!

Give it an option for only AI oder AV? Like outsidetempretaur or something else? I have two bacnet controller for my heating system an now i want to show the temperaturs in homekit or set the setpoints.

Option for BO, BV, AO..

Hi, this is a feature request:
Add options for other types off input/output for a kind of HomeBridge universal bacnet plugin.
Addition of Binary Output, Binary Value, Analog Output..
Thanks for your awesome plugin ๐Ÿ‘๐Ÿผ

Adding single points.

i was looking for a way to add like a single temperature sensor or KWH Meter analog value. do you know if this is possible with the current accessories you have?

Homebridge doesn't start after install bachome

Hi,

i install bachome over the homebridge ui then i add a switch an homebridge crash and doesn't start again.

    {
        "name": "BAChome Dynamic Platform",
        "switch": [
            {
                "name": "TV",
                "manufacturer": "OSRAM",
                "model": "Plug 01",
                "serial": "84182600000D25CE",
                "stateObject": "BV:16"
            }
        ],
        "platform": "bachome"
    }

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.