5f01411780
Initial snapshot of Home Assistant config (HAOS 2026.4.4)
prior to dashboard restructuring and helper YAML migration.
Pre-commit cleanup applied:
- Removed blueprints/switch_manager/ (9.4 MB stale, component already gone)
- Removed .storage/switch_manager
- Removed home-assistant.log.{1,old,fault}
- Removed zigbee2mqtt/configuration_backup_v{1..4}.yaml
- Removed zigbee2mqtt/database.db.tmp.2024-09-27 (1.5y old)
- Created empty themes/ to satisfy configuration.yaml include
.gitignore uses allowlist strategy for .storage/ to keep
all tokens, keys, and PINs out of version control.
47 lines
1.9 KiB
Python
47 lines
1.9 KiB
Python
from cx_const import DefaultActionsMapping, Light, Z2MLight
|
|
from cx_core import LightController, Z2MLightController
|
|
|
|
|
|
class AdeoHRC99CZC045LightController(LightController):
|
|
def get_z2m_actions_mapping(self) -> DefaultActionsMapping:
|
|
return {
|
|
"on": Light.ON,
|
|
"off": Light.OFF,
|
|
"brightness_step_up": Light.HOLD_BRIGHTNESS_UP,
|
|
"brightness_step_down": Light.HOLD_BRIGHTNESS_DOWN,
|
|
"brightness_stop": Light.RELEASE,
|
|
"color_hue_step_up": Light.HOLD_COLOR_UP,
|
|
"color_hue_step_down": Light.HOLD_COLOR_DOWN,
|
|
"color_saturation_step_up": Light.HOLD_COLOR_UP,
|
|
"color_saturation_step_down": Light.HOLD_COLOR_DOWN,
|
|
"color_temperature_step_up": Light.HOLD_COLOR_TEMP_UP,
|
|
"color_temperature_step_down": Light.HOLD_COLOR_TEMP_DOWN,
|
|
"color_stop": Light.RELEASE,
|
|
"scene_1": None,
|
|
"scene_2": None,
|
|
"scene_3": None,
|
|
"scene_4": None,
|
|
}
|
|
|
|
|
|
class AdeoHRC99CZC045Z2MLightController(Z2MLightController):
|
|
def get_z2m_actions_mapping(self) -> DefaultActionsMapping:
|
|
return {
|
|
"on": Z2MLight.ON,
|
|
"off": Z2MLight.OFF,
|
|
"brightness_step_up": Z2MLight.HOLD_BRIGHTNESS_UP,
|
|
"brightness_step_down": Z2MLight.HOLD_BRIGHTNESS_DOWN,
|
|
"brightness_stop": Z2MLight.RELEASE,
|
|
"color_hue_step_up": Z2MLight.HOLD_COLOR_TEMP_UP,
|
|
"color_hue_step_down": Z2MLight.HOLD_COLOR_TEMP_DOWN,
|
|
"color_saturation_step_up": Z2MLight.HOLD_COLOR_TEMP_UP,
|
|
"color_saturation_step_down": Z2MLight.HOLD_COLOR_TEMP_DOWN,
|
|
"color_temperature_step_up": Z2MLight.HOLD_COLOR_TEMP_UP,
|
|
"color_temperature_step_down": Z2MLight.HOLD_COLOR_TEMP_DOWN,
|
|
"color_stop": Z2MLight.RELEASE,
|
|
"scene_1": None,
|
|
"scene_2": None,
|
|
"scene_3": None,
|
|
"scene_4": None,
|
|
}
|