Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.technove.switch Namespace Reference

Classes

class  TechnoVESwitchDescription
 
class  TechnoVESwitchEntity
 

Functions

None _disable_charging (TechnoVEDataUpdateCoordinator coordinator)
 
None _enable_charging (TechnoVEDataUpdateCoordinator coordinator)
 
None _set_auto_charge (TechnoVEDataUpdateCoordinator coordinator, bool enabled)
 
None _set_charging_enabled (TechnoVEDataUpdateCoordinator coordinator, bool enabled)
 
None async_setup_entry (HomeAssistant hass, TechnoVEConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

list SWITCHES
 

Detailed Description

Support for TechnoVE switches.

Function Documentation

◆ _disable_charging()

None homeassistant.components.technove.switch._disable_charging ( TechnoVEDataUpdateCoordinator  coordinator)
private

Definition at line 41 of file switch.py.

◆ _enable_charging()

None homeassistant.components.technove.switch._enable_charging ( TechnoVEDataUpdateCoordinator  coordinator)
private

Definition at line 37 of file switch.py.

◆ _set_auto_charge()

None homeassistant.components.technove.switch._set_auto_charge ( TechnoVEDataUpdateCoordinator  coordinator,
bool   enabled 
)
private

Definition at line 45 of file switch.py.

◆ _set_charging_enabled()

None homeassistant.components.technove.switch._set_charging_enabled ( TechnoVEDataUpdateCoordinator  coordinator,
bool   enabled 
)
private

Definition at line 24 of file switch.py.

◆ async_setup_entry()

None homeassistant.components.technove.switch.async_setup_entry ( HomeAssistant  hass,
TechnoVEConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up TechnoVE switch based on a config entry.

Definition at line 80 of file switch.py.

Variable Documentation

◆ SWITCHES

list homeassistant.components.technove.switch.SWITCHES
Initial value:
1 = [
2  TechnoVESwitchDescription(
3  key="auto_charge",
4  translation_key="auto_charge",
5  entity_category=EntityCategory.CONFIG,
6  is_on_fn=lambda station: station.info.auto_charge,
7  turn_on_fn=lambda coordinator: _set_auto_charge(coordinator, True),
8  turn_off_fn=lambda coordinator: _set_auto_charge(coordinator, False),
9  ),
10  TechnoVESwitchDescription(
11  key="session_active",
12  translation_key="session_active",
13  entity_category=EntityCategory.CONFIG,
14  is_on_fn=lambda station: station.info.is_session_active,
15  turn_on_fn=_enable_charging,
16  turn_off_fn=_disable_charging,
17  ),
18 ]
None _set_auto_charge(TechnoVEDataUpdateCoordinator coordinator, bool enabled)
Definition: switch.py:47

Definition at line 60 of file switch.py.