Creates DimmerData properties from brightness, duration and direction
{ DeviceEvent, DimmerData } = require('@z-bus/api');
//Event to dim address 0 to 50%
const event = new DeviceEvent(0, 'on', new DimmerData(0.5));
Brightness of the Z-Bus DimmerDevice between 0.0
and 1.0
in %
Duration of a full dimming ramp (from 0 to 100%) between 0.04
and 160
seconds
Direction of the previous dimming ramp where 0
is down and 1
is up
Brightness of the Z-Bus DimmerDevice between 0.0
and 1.0
in %
0.0
is off0.5
is 50% brightness1.0
is 100% onDirection of the previous dimming ramp where 0
is down and 1
is up
Duration of a full dimming ramp (from 0 to 100%) between 0.04
and 160
seconds
Converts DimmerDevice properties into DimmerData to transmit it as part of a DeviceEvent
a brightness, duration and direction
two-byte data packet
Converts DimmerData received as part of a DeviceEvent into DimmerDevice properties
a two-byte data packet
a brightness, duration and direction
Generated using TypeDoc
This packs and unpacks
data
of a DeviceEvent to control a DimmerDevice