-
Notifications
You must be signed in to change notification settings - Fork 116
General architecture
Pavel Poglazov edited this page May 4, 2019
·
4 revisions
Z-Way Home Automation system built around a core object – AutomationController
– which is a singleton. This object also is an event emitter (using EventEmitter2
library) and every communication is made via the common event bus.
Automation controller builds and initializes the working environment using a configuration file (named config.json
). It loads automation modules, creates common data structures and so on.
Automation controller's source code can be found in classes/AutomationController.js
file. This class used by the main.js
, which is an entry point of the home automation system and runs directly by the Z-Way Server.