janitoo_tellstick package

Submodules

janitoo_tellstick.bus module

The Raspberry tellstick bus Warning : this bus can’t be aggregate/ Need to run in its own thread. Not sure that this bus can be extended by aggregation (callbacks and constants : TELLSTICK_TEMPERATURE). Need to be tested.

class janitoo_tellstick.bus.TellstickBus(**kwargs)[source]

Bases: janitoo.bus.JNTBus

A pseudo-bus to handle the tellstick

ALL_METHODS = 919
TELLSTICK_BELL = 4
TELLSTICK_CHANGE_AVAILABLE = 5
TELLSTICK_CHANGE_FIRMWARE = 6
TELLSTICK_CHANGE_METHOD = 4
TELLSTICK_CHANGE_MODEL = 3
TELLSTICK_CHANGE_NAME = 1
TELLSTICK_CHANGE_PROTOCOL = 2
TELLSTICK_CONTROLLER_TELLSTICK = 1
TELLSTICK_CONTROLLER_TELLSTICK_DUO = 2
TELLSTICK_CONTROLLER_TELLSTICK_NET = 3
TELLSTICK_DEVICE_ADDED = 1
TELLSTICK_DEVICE_CHANGED = 2
TELLSTICK_DEVICE_REMOVED = 3
TELLSTICK_DEVICE_STATE_CHANGED = 4
TELLSTICK_DIM = 16
TELLSTICK_DOWN = 256
TELLSTICK_ERROR_BROKEN_PIPE = -9
TELLSTICK_ERROR_COMMUNICATING_SERVICE = -10
TELLSTICK_ERROR_COMMUNICATION = -5
TELLSTICK_ERROR_CONFIG_SYNTAX = -11
TELLSTICK_ERROR_CONNECTING_SERVICE = -6
TELLSTICK_ERROR_DEVICE_NOT_FOUND = -3
TELLSTICK_ERROR_METHOD_NOT_SUPPORTED = -4
TELLSTICK_ERROR_NOT_FOUND = -1
TELLSTICK_ERROR_PERMISSION_DENIED = -2
TELLSTICK_ERROR_SYNTAX = -8
TELLSTICK_ERROR_UNKNOWN = -99
TELLSTICK_ERROR_UNKNOWN_RESPONSE = -7
TELLSTICK_EXECUTE = 64
TELLSTICK_HUMIDITY = 2
TELLSTICK_LEARN = 32
TELLSTICK_RAINRATE = 4
TELLSTICK_RAINTOTAL = 8
TELLSTICK_STOP = 512
TELLSTICK_SUCCESS = 0
TELLSTICK_TEMPERATURE = 1
TELLSTICK_TOGGLE = 8
TELLSTICK_TURNOFF = 2
TELLSTICK_TURNON = 1
TELLSTICK_TYPE_DEVICE = 1
TELLSTICK_TYPE_GROUP = 2
TELLSTICK_TYPE_SCENE = 3
TELLSTICK_UP = 128
TELLSTICK_WINDAVERAGE = 32
TELLSTICK_WINDDIRECTION = 16
TELLSTICK_WINDGUST = 64
tellstick_acquire(blocking=True)[source]

Get a lock on the bus

tellstick_bell(tdev)[source]

Bell a telldus device.

tellstick_dim(tdev, level)[source]

Dim a telldus device. Level from 0 to 255.

tellstick_down(tdev)[source]

Down a telldus device.

tellstick_execute(tdev)[source]

Execute a scene action.

tellstick_learn(tdev)[source]

Learn a telldus device.

tellstick_locked()[source]

Get status of the lock

tellstick_release()[source]

Release a lock on the bus

tellstick_resend(tdev)[source]

Resend last command to a telldus device.

tellstick_stop(tdev)[source]

Stop a telldus device.

tellstick_turnoff(tdev)[source]

Turn off a telldus device

tellstick_turnon(tdev)[source]

Turn on a telldus device

tellstick_up(tdev)[source]

Up a telldus device.

janitoo_tellstick.bus.extend_duo(self)[source]
janitoo_tellstick.bus.extend_net(self)[source]

janitoo_tellstick.components module

The tellstick bus and components

class janitoo_tellstick.components.TellstickBell(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_tellstick.components.TellstickDevice

Provides the interface for a Tellstick device.

class janitoo_tellstick.components.TellstickDaylight(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_tellstick.components.TellstickSensor

Provides the interface for a Tellstick device.

class janitoo_tellstick.components.TellstickDevice(bus=None, addr=None, **kwargs)[source]

Bases: janitoo.component.JNTComponent

Provides the interface for a Tellstick device.

check_heartbeat()[source]

Check that the component is ‘available’

class janitoo_tellstick.components.TellstickDimmer(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_tellstick.components.TellstickSwitch

Provides the interface for a Tellstick device.

set_dim(node_uuid, index, data)[source]

Dim a dimmer

class janitoo_tellstick.components.TellstickMagnetic(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_tellstick.components.TellstickSensor

Provides the interface for a Tellstick device.

class janitoo_tellstick.components.TellstickPir(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_tellstick.components.TellstickSensor

Provides the interface for a Tellstick device.

class janitoo_tellstick.components.TellstickRemote(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_tellstick.components.TellstickDevice

Provides the interface for a Tellstick device.

class janitoo_tellstick.components.TellstickSensor(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_tellstick.components.TellstickDevice

Provides the interface for a Tellstick device.

class janitoo_tellstick.components.TellstickShutter(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_tellstick.components.TellstickDevice

Provides the interface for a Tellstick device.

set_shutter(node_uuid, index, data)[source]

Shutter

class janitoo_tellstick.components.TellstickSwitch(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_tellstick.components.TellstickDevice

Provides the interface for a Tellstick device.

set_switch(node_uuid, index, data)[source]

Switch On/Off a dimmer

janitoo_tellstick.components.make_bell(**kwargs)[source]
janitoo_tellstick.components.make_daylight(**kwargs)[source]
janitoo_tellstick.components.make_device(**kwargs)[source]
janitoo_tellstick.components.make_dimmer(**kwargs)[source]
janitoo_tellstick.components.make_magnetic(**kwargs)[source]
janitoo_tellstick.components.make_pir(**kwargs)[source]
janitoo_tellstick.components.make_remote(**kwargs)[source]
janitoo_tellstick.components.make_sensor(**kwargs)[source]
janitoo_tellstick.components.make_shutter(**kwargs)[source]
janitoo_tellstick.components.make_switch(**kwargs)[source]

janitoo_tellstick.thread module

The Tellstik Janitoo

class janitoo_tellstick.thread.TellstickThread(options=None)[source]

Bases: janitoo.thread.JNTBusThread

The thermal thread

init_bus()[source]

Build the bus

janitoo_tellstick.thread.make_thread(options, force=False)[source]

Module contents