ecodevices_rt2.switches package

Submodules

ecodevices_rt2.switches.switch_api module

class ecodevices_rt2.switches.switch_api.Switch_API(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator, get, get_value, get_entry, on_get, on_get_value, off_get, off_get_value)[source]

Bases: Switch_EcoDevicesRT2, Entity

Representation of an EnOcean sensor.

get_status(cached_ms: int = None) bool[source]
set_off() bool[source]
set_on() bool[source]

ecodevices_rt2.switches.switch_ecodevicesrt2 module

class ecodevices_rt2.switches.switch_ecodevicesrt2.Switch_EcoDevicesRT2(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator, suffix_name: str = '')[source]

Bases: EcoDevicesRT2Device, SwitchEntity

async_get_status(cached_ms: int = None) bool[source]
async async_turn_off(**kwargs)[source]

Turn the switch on at next update.

async async_turn_on(**kwargs)[source]

Turn the switch on at next update.

property available

Return true if switch is available.

property is_on: bool

Return true if switch is on. Standby is on.

set_off() bool[source]
set_on() bool[source]

ecodevices_rt2.switches.switch_enocean module

class ecodevices_rt2.switches.switch_enocean.Switch_EnOcean(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator)[source]

Bases: Switch_EcoDevicesRT2, Entity

Representation of an EnOcean switch.

get_status(cached_ms: int = None) bool[source]
set_off() bool[source]
set_on() bool[source]

ecodevices_rt2.switches.switch_relay module

class ecodevices_rt2.switches.switch_relay.Switch_Relay(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator)[source]

Bases: Switch_EcoDevicesRT2, Entity

Representation of an Relay switch.

get_status(cached_ms: int = None) bool[source]
set_off() bool[source]
set_on() bool[source]

ecodevices_rt2.switches.switch_virtualoutput module

class ecodevices_rt2.switches.switch_virtualoutput.Switch_VirtualOutput(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator)[source]

Bases: Switch_EcoDevicesRT2, Entity

Representation of an VirtualOutput switch.

get_status(cached_ms: int = None) bool[source]
set_off() bool[source]
set_on() bool[source]

ecodevices_rt2.switches.switch_x4fp module

class ecodevices_rt2.switches.switch_x4fp.Switch_X4FP(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator, module_id: int, zone_id: int)[source]

Bases: Switch_EcoDevicesRT2, Entity

Representation of an X4FP switch.

get_status(cached_ms: int = None) bool[source]
set_off() bool[source]
set_on() bool[source]

Module contents

Get information from GCE Ecodevices RT2.

class ecodevices_rt2.switches.Switch_API(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator, get, get_value, get_entry, on_get, on_get_value, off_get, off_get_value)[source]

Bases: Switch_EcoDevicesRT2, Entity

Representation of an EnOcean sensor.

get_status(cached_ms: int = None) bool[source]
set_off() bool[source]
set_on() bool[source]
class ecodevices_rt2.switches.Switch_EcoDevicesRT2(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator, suffix_name: str = '')[source]

Bases: EcoDevicesRT2Device, SwitchEntity

async_get_status(cached_ms: int = None) bool[source]
async async_turn_off(**kwargs)[source]

Turn the switch on at next update.

async async_turn_on(**kwargs)[source]

Turn the switch on at next update.

property available

Return true if switch is available.

property is_on: bool

Return true if switch is on. Standby is on.

set_off() bool[source]
set_on() bool[source]
class ecodevices_rt2.switches.Switch_EnOcean(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator)[source]

Bases: Switch_EcoDevicesRT2, Entity

Representation of an EnOcean switch.

get_status(cached_ms: int = None) bool[source]
set_off() bool[source]
set_on() bool[source]
class ecodevices_rt2.switches.Switch_Relay(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator)[source]

Bases: Switch_EcoDevicesRT2, Entity

Representation of an Relay switch.

get_status(cached_ms: int = None) bool[source]
set_off() bool[source]
set_on() bool[source]
class ecodevices_rt2.switches.Switch_VirtualOutput(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator)[source]

Bases: Switch_EcoDevicesRT2, Entity

Representation of an VirtualOutput switch.

get_status(cached_ms: int = None) bool[source]
set_off() bool[source]
set_on() bool[source]
class ecodevices_rt2.switches.Switch_X4FP(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator, module_id: int, zone_id: int)[source]

Bases: Switch_EcoDevicesRT2, Entity

Representation of an X4FP switch.

get_status(cached_ms: int = None) bool[source]
set_off() bool[source]
set_on() bool[source]