ecodevices_rt2.lights package

Submodules

ecodevices_rt2.lights.light_api module

API light entity for GCE Ecodevices RT2.

class ecodevices_rt2.lights.light_api.Light_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: Light_EcoDevicesRT2

Representation of an API light.

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

Return light status from cached API response.

set_off() → bool[source]

Turn light off via API.

set_on() → bool[source]

Turn light on via API.

ecodevices_rt2.lights.light_ecodevicesrt2 module

Base light entity for GCE Ecodevices RT2.

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

Bases: EcoDevicesRT2Device, LightEntity

Base light for GCE Ecodevices RT2.

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

Turn the light off and request refresh.

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

Turn the light on and request refresh.

property available: bool

Return true if light is available.

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

Get light status.

property is_on: bool

Return true if light is on.

set_off() → bool[source]

Turn light off.

set_on() → bool[source]

Turn light on.

ecodevices_rt2.lights.light_enocean module

EnOcean light entity for GCE Ecodevices RT2.

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

Bases: Light_EcoDevicesRT2

Representation of an EnOcean light.

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

Return light status.

set_off() → bool[source]

Turn light off.

set_on() → bool[source]

Turn light on.

ecodevices_rt2.lights.light_relay module

Relay light entity for GCE Ecodevices RT2.

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

Bases: Light_EcoDevicesRT2

Representation of a Relay light.

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

Return light status.

set_off() → bool[source]

Turn light off.

set_on() → bool[source]

Turn light on.

ecodevices_rt2.lights.light_virtualoutput module

VirtualOutput light entity for GCE Ecodevices RT2.

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

Bases: Light_EcoDevicesRT2

Representation of a VirtualOutput light.

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

Return light status.

set_off() → bool[source]

Turn light off.

set_on() → bool[source]

Turn light on.

Module contents

Get information from GCE Ecodevices RT2.

class ecodevices_rt2.lights.Light_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: Light_EcoDevicesRT2

Representation of an API light.

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

Return light status from cached API response.

set_off() → bool[source]

Turn light off via API.

set_on() → bool[source]

Turn light on via API.

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

Bases: EcoDevicesRT2Device, LightEntity

Base light for GCE Ecodevices RT2.

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

Turn the light off and request refresh.

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

Turn the light on and request refresh.

property available: bool

Return true if light is available.

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

Get light status.

property is_on: bool

Return true if light is on.

set_off() → bool[source]

Turn light off.

set_on() → bool[source]

Turn light on.

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

Bases: Light_EcoDevicesRT2

Representation of an EnOcean light.

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

Return light status.

set_off() → bool[source]

Turn light off.

set_on() → bool[source]

Turn light on.

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

Bases: Light_EcoDevicesRT2

Representation of a Relay light.

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

Return light status.

set_off() → bool[source]

Turn light off.

set_on() → bool[source]

Turn light on.

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

Bases: Light_EcoDevicesRT2

Representation of a VirtualOutput light.

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

Return light status.

set_off() → bool[source]

Turn light off.

set_on() → bool[source]

Turn light on.