Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DirectionalGroupDevice

Z-Bus directional device which controls the motion of blinds, windows, or awnings

  • Motor group switching receiver / Motor-Gruppen-Schaltempfänger (EM04-xxx)

Hierarchy

  • DirectionalGroupDevice

Implements

Index

Constructors

constructor

  • Creates a new Z-Bus DirectionalGroupDevice

    Example

    { DirectionalGroupDevice } = require('@z-bus/api');
    //Moves address 0 up
    new DirectionalDevice(0, 30, 99).group_up();
    

    Parameters

    • address: number

      Address between 0 and 242 to which the device will be linked

    • group: number

      Group address between 0 and 242 to which the device will be linked

    • central: number

      Central address between 0 and 242 to which the device will be linked

    Returns DirectionalGroupDevice

Properties

address

address: number[]

Addresses the Z-Bus device is linked to. The device will react when receiving a corresponding DeviceEvent and change its state accordingly.

addresses

addresses: number = 3

Optional id

id: string

Unique id that identifies the Z-Bus device in the database

Optional memory

memory: "up" | "down" | "stop"

Optional name

name: string

Display name of the Z-Bus device

Optional profile

profile: string

Display profile for the Z-Bus device (determines state descriptions and symbols), e.g.:

  • a lamp
  • a heating,
  • ...

Optional state

state: "up" | "down" | "stop"

Current state the Z-Bus device is in, e.g.:

  • 'undefined'
  • 'on'
  • 'off'
  • 'up'
  • 'down'
  • 'stop'

type

type: DeviceType = 'directional-group'

Identifies the different types of Z-Bus devices:

Static Machine

Machine: MachineDefinition = ...

Static description

description: string = 'Motor-Gruppen-Schaltempfänger (drei Adressen)'

Methods

central_down

  • central_down(): void

central_stop

  • central_stop(): void

central_up

  • central_up(): void

down_stop

  • down_stop(): void
  • Steps a DirectionalDevice. The device will alternate

    • from moving 'down' to 'stop', or
    • from 'stop' to moving 'down'

    Returns void

group_down

  • group_down(): void

group_stop

  • group_stop(): void

group_up

  • group_up(): void

transmit

  • transmit(command: number | "toggle" | "up-stop" | "down-stop" | "start" | "end" | "on" | "off" | "up" | "down" | "stop", addressIndex?: number): void
  • Controls the Z-Bus DirectionalDevice

    Parameters

    • command: number | "toggle" | "up-stop" | "down-stop" | "start" | "end" | "on" | "off" | "up" | "down" | "stop"

      Command used to control the device between 0 and 255 (values see Command)

    • addressIndex: number = 0

      Address on which the command is sent, 0 (single), 1 (group), or 2 (central)

    Returns void

up_stop

  • up_stop(): void
  • Steps a DirectionalDevice. The device will alternate

    • from moving 'up' to 'stop', or
    • from 'stop' to moving 'up'

    Returns void

Generated using TypeDoc