This is the JavaScript scripting documentation for automating your home with the Z-Bus smart home Interface.
The documentation of this API is split into modules:
The sources of this API are available on github.com/z-bus/api
The package is available on NPM via @z-bus/api
script
from the menu in Z-Bus Home or refer to home.z-bus.com/script directly.zBus.receive((event) => {
console.log('Hello, device', event.address);
});
▶︎
arrow in the upper right.14.03.2021, 16:09:21 [script] Hello, device 0
Z-Bus Home supports scripting home automations in standard JavaScript
. This is outstandingly documented and supported by the community, an excellent primer into the scripting language can be found in Mozilla's MDN Web Docs.
Z-Bus Interface runs the JavaScript runtime Node.js 15.3
internally, you'll find a detailed reference in the Node.js Documentation.
The scripting runtime features our open-source library specifically built for Z-Bus smart home system usage via the global variable zBus
. Please refer to the Z-Bus API Documentation for:
Generated using TypeDoc