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

Classes

class  ReolinkChimeSwitchEntity
 
class  ReolinkChimeSwitchEntityDescription
 
class  ReolinkNVRSwitchEntity
 
class  ReolinkNVRSwitchEntityDescription
 
class  ReolinkSwitchEntity
 
class  ReolinkSwitchEntityDescription
 

Functions

None async_setup_entry (HomeAssistant hass, ReolinkConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

tuple CHIME_SWITCH_ENTITIES
 
 DEPRECATED_HDR
 
list DEPRECATED_NVR_SWITCHES
 
tuple NVR_SWITCH_ENTITIES
 
int PARALLEL_UPDATES = 0
 
tuple SWITCH_ENTITIES
 

Detailed Description

Component providing support for Reolink switch entities.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.reolink.switch.async_setup_entry ( HomeAssistant  hass,
ReolinkConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up a Reolink switch entities.

Definition at line 335 of file switch.py.

Variable Documentation

◆ CHIME_SWITCH_ENTITIES

tuple homeassistant.components.reolink.switch.CHIME_SWITCH_ENTITIES
Initial value:
1 = (
2  ReolinkChimeSwitchEntityDescription(
3  key="chime_led",
4  cmd_key="DingDongOpt",
5  translation_key="led",
6  entity_category=EntityCategory.CONFIG,
7  value=lambda chime: chime.led_state,
8  method=lambda chime, value: chime.set_option(led=value),
9  ),
10 )

Definition at line 261 of file switch.py.

◆ DEPRECATED_HDR

homeassistant.components.reolink.switch.DEPRECATED_HDR
Initial value:
1 = ReolinkSwitchEntityDescription(
2  key="hdr",
3  cmd_key="GetIsp",
4  translation_key="hdr",
5  entity_category=EntityCategory.CONFIG,
6  entity_registry_enabled_default=False,
7  supported=lambda api, ch: api.supported(ch, "HDR"),
8  value=lambda api, ch: api.HDR_on(ch) is True,
9  method=lambda api, ch, value: api.set_HDR(ch, value),
10 )

Definition at line 273 of file switch.py.

◆ DEPRECATED_NVR_SWITCHES

list homeassistant.components.reolink.switch.DEPRECATED_NVR_SWITCHES

Definition at line 285 of file switch.py.

◆ NVR_SWITCH_ENTITIES

tuple homeassistant.components.reolink.switch.NVR_SWITCH_ENTITIES

Definition at line 213 of file switch.py.

◆ PARALLEL_UPDATES

int homeassistant.components.reolink.switch.PARALLEL_UPDATES = 0

Definition at line 30 of file switch.py.

◆ SWITCH_ENTITIES

tuple homeassistant.components.reolink.switch.SWITCH_ENTITIES

Definition at line 66 of file switch.py.