Creates a new Z-Bus SwitchingDevice
const { SwitchingDevice } = require('@z-bus/api');
//Switches address 0 on
new SwitchingDevice(0).transmit('on');
Address between 0
and 242
to which the device will be linked
Addresses the Z-Bus device is linked to. The device will react when receiving a corresponding DeviceEvent and change its state accordingly.
Unique id that identifies the Z-Bus device in the database
Display name of the Z-Bus device
Display profile for the Z-Bus device (determines state descriptions and symbols), e.g.:
Current state the Z-Bus device is in, e.g.:
'undefined'
'on'
'off'
'up'
'down'
'stop'
Identifies the different types of Z-Bus devices:
'switch'
for SwitchingDevice'dimmer'
for DimmerDevice'directional'
for DirectionalDeviceSwitches the Z-Bus SwitchingDevice off
Switches the Z-Bus SwitchingDevice on
Toggles the Z-Bus SwitchingDevice. The device will alternate
off
to on
, oron
to off
Controls the Z-Bus SwitchingDevice
Command used to control the device between 0
and 255
(values see Command)
Generated using TypeDoc
Z-Bus switching device which controls a single light, heating valve, etc