ecodevices_rt2.switches package

Submodules

ecodevices_rt2.switches.switch_api module

API switch entity for GCE Ecodevices RT2.

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

Bases: Switch_EcoDevicesRT2

Representation of an API switch.

get_status(cached_ms: int | None = None) → bool | None[source]

Return switch status from cached API response.

set_off() → bool[source]

Turn switch off via API.

set_on() → bool[source]

Turn switch on via API.

ecodevices_rt2.switches.switch_ecodevicesrt2 module

Base switch entity for GCE Ecodevices RT2.

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

Bases: EcoDevicesRT2Device, SwitchEntity

Base switch for GCE Ecodevices RT2.

async async_turn_off(**kwargs) → None[source]

Turn the switch off and request refresh.

async async_turn_on(**kwargs) → None[source]

Turn the switch on and request refresh.

property available: bool

Return true if switch is available.

get_status(cached_ms: int | None = None) → bool | None[source]

Get switch status.

property is_on: bool

Return true if switch is on.

set_off() → bool[source]

Turn switch off.

set_on() → bool[source]

Turn switch on.

ecodevices_rt2.switches.switch_enocean module

EnOcean switch entity for GCE Ecodevices RT2.

class ecodevices_rt2.switches.switch_enocean.Switch_EnOcean(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator, parent_device_id: str | None = None)[source]

Bases: Switch_EcoDevicesRT2

Representation of an EnOcean switch.

get_status(cached_ms: int | None = None) → bool | None[source]

Return switch status.

set_off() → bool[source]

Turn switch off.

set_on() → bool[source]

Turn switch on.

ecodevices_rt2.switches.switch_relay module

Relay switch entity for GCE Ecodevices RT2.

class ecodevices_rt2.switches.switch_relay.Switch_Relay(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator, parent_device_id: str | None = None)[source]

Bases: Switch_EcoDevicesRT2

Representation of a Relay switch.

get_status(cached_ms: int | None = None) → bool | None[source]

Return switch status.

set_off() → bool[source]

Turn switch off.

set_on() → bool[source]

Turn switch on.

ecodevices_rt2.switches.switch_virtualoutput module

VirtualOutput switch entity for GCE Ecodevices RT2.

class ecodevices_rt2.switches.switch_virtualoutput.Switch_VirtualOutput(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator, parent_device_id: str | None = None)[source]

Bases: Switch_EcoDevicesRT2

Representation of a VirtualOutput switch.

get_status(cached_ms: int | None = None) → bool | None[source]

Return switch status.

set_off() → bool[source]

Turn switch off.

set_on() → bool[source]

Turn switch on.

ecodevices_rt2.switches.switch_x4fp module

X4FP switch entity for GCE Ecodevices RT2.

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

Bases: Switch_EcoDevicesRT2

Representation of an X4FP switch.

get_status(cached_ms: int | None = None) → bool | None[source]

Return true if X4FP is in Comfort mode.

set_off() → bool[source]

Set X4FP to Off/None mode.

set_on() → bool[source]

Set X4FP to Comfort mode.

Module contents

Get information from GCE Ecodevices RT2.

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

Bases: Switch_EcoDevicesRT2

Representation of an API switch.

get_status(cached_ms: int | None = None) → bool | None[source]

Return switch status from cached API response.

set_off() → bool[source]

Turn switch off via API.

set_on() → bool[source]

Turn switch on via API.

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

Bases: EcoDevicesRT2Device, SwitchEntity

Base switch for GCE Ecodevices RT2.

async async_turn_off(**kwargs) → None[source]

Turn the switch off and request refresh.

async async_turn_on(**kwargs) → None[source]

Turn the switch on and request refresh.

property available: bool

Return true if switch is available.

get_status(cached_ms: int | None = None) → bool | None[source]

Get switch status.

property is_on: bool

Return true if switch is on.

set_off() → bool[source]

Turn switch off.

set_on() → bool[source]

Turn switch on.

class ecodevices_rt2.switches.Switch_EnOcean(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator, parent_device_id: str | None = None)[source]

Bases: Switch_EcoDevicesRT2

Representation of an EnOcean switch.

get_status(cached_ms: int | None = None) → bool | None[source]

Return switch status.

set_off() → bool[source]

Turn switch off.

set_on() → bool[source]

Turn switch on.

class ecodevices_rt2.switches.Switch_Relay(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator, parent_device_id: str | None = None)[source]

Bases: Switch_EcoDevicesRT2

Representation of a Relay switch.

get_status(cached_ms: int | None = None) → bool | None[source]

Return switch status.

set_off() → bool[source]

Turn switch off.

set_on() → bool[source]

Turn switch on.

class ecodevices_rt2.switches.Switch_VirtualOutput(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator, parent_device_id: str | None = None)[source]

Bases: Switch_EcoDevicesRT2

Representation of a VirtualOutput switch.

get_status(cached_ms: int | None = None) → bool | None[source]

Return switch status.

set_off() → bool[source]

Turn switch off.

set_on() → bool[source]

Turn switch on.

class ecodevices_rt2.switches.Switch_X4FP(device_config: dict, ecort2: EcoDevicesRT2, coordinator: DataUpdateCoordinator, module_id: int, zone_id: int, parent_device_id: str | None = None)[source]

Bases: Switch_EcoDevicesRT2

Representation of an X4FP switch.

get_status(cached_ms: int | None = None) → bool | None[source]

Return true if X4FP is in Comfort mode.

set_off() → bool[source]

Set X4FP to Off/None mode.

set_on() → bool[source]

Set X4FP to Comfort mode.