Create a DeviceEvent based on address, event, and optionally data
{ DeviceEvent } = require('@z-bus/api');
const event = new DeviceEvent(0, 'on'); //Event to switch address 0 on
Address of the Z-Bus device between 0
and 242
Command used to control a device between 0
and 255
(values see Command)
Optional two-byte data packet used to control a device (each byte between 0
and 255
)
Generated using TypeDoc
Contains a communication event to control a Z-Bus Device, such communication is either