Home Assistant Unofficial Reference
2024.12.1
devolo_multi_level_switch.py
Go to the documentation of this file.
1
"""Base class for multi level switches in devolo Home Control."""
2
3
from
devolo_home_control_api.devices.zwave
import
Zwave
4
from
devolo_home_control_api.homecontrol
import
HomeControl
5
6
from
.entity
import
DevoloDeviceEntity
7
8
9
class
DevoloMultiLevelSwitchDeviceEntity
(
DevoloDeviceEntity
):
10
"""Representation of a multi level switch device within devolo Home Control. Something like a dimmer or a thermostat."""
11
12
_attr_name =
None
13
14
def
__init__
(
15
self, homecontrol: HomeControl, device_instance: Zwave, element_uid: str
16
) ->
None
:
17
"""Initialize a multi level switch within devolo Home Control."""
18
super().
__init__
(
19
homecontrol=homecontrol,
20
device_instance=device_instance,
21
element_uid=element_uid,
22
)
23
self.
_multi_level_switch_property
_multi_level_switch_property = device_instance.multi_level_switch_property[
24
element_uid
25
]
26
27
self.
_value
_value
_value = self.
_multi_level_switch_property
_multi_level_switch_property.value
homeassistant.components.devolo_home_control.devolo_multi_level_switch.DevoloMultiLevelSwitchDeviceEntity
Definition:
devolo_multi_level_switch.py:9
homeassistant.components.devolo_home_control.devolo_multi_level_switch.DevoloMultiLevelSwitchDeviceEntity._value
_value
Definition:
devolo_multi_level_switch.py:27
homeassistant.components.devolo_home_control.devolo_multi_level_switch.DevoloMultiLevelSwitchDeviceEntity.__init__
None __init__(self, HomeControl homecontrol, Zwave device_instance, str element_uid)
Definition:
devolo_multi_level_switch.py:16
homeassistant.components.devolo_home_control.devolo_multi_level_switch.DevoloMultiLevelSwitchDeviceEntity._multi_level_switch_property
_multi_level_switch_property
Definition:
devolo_multi_level_switch.py:23
homeassistant.components.devolo_home_control.entity.DevoloDeviceEntity
Definition:
entity.py:21
homeassistant.components.devolo_home_control.entity.DevoloDeviceEntity._value
_value
Definition:
entity.py:75
core
homeassistant
components
devolo_home_control
devolo_multi_level_switch.py
Generated by
1.9.1