work: Низкий уровень работы с Элика завершен. Добавил логику для отслеживания состояния вытяжки.

This commit is contained in:
2026-09-22 22:01:57 +03:00
parent 8ece9ba131
commit 4169b0c3e5
4 changed files with 139 additions and 3 deletions
+13 -1
View File
@@ -19,6 +19,17 @@ class ElicaConfig:
light_relay: int = 3
timer_relay: int = 4
# Индикаторы Elica -> IN
speed_1_input: int = 1
speed_2_input: int = 2
speed_3_input: int = 3
speed_4_input: int = 4
power_input: int = 5
# Определение мигания индикатора скорости.
blink_max_off_s: float = 1.5
blink_hold_s: float = 2.5
@property
def status_topic(self) -> str:
"""
@@ -66,4 +77,5 @@ class ElicaConfig:
@property
def input_state_wildcard(self) -> str:
return f"{self.topic}/input/+/state"
return f"{self.topic}/input/+/state"