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.
26 lines
814 B
Python
26 lines
814 B
Python
from cx_const import DefaultActionsMapping, Light
|
|
from cx_core import LightController
|
|
|
|
|
|
class SK5700002228949LightController(LightController):
|
|
# This mapping works for: 5700002228949, 5700002228963, 5745000433087
|
|
# The buttons are distributted like:
|
|
# 1 3
|
|
# 2 4
|
|
|
|
def get_deconz_actions_mapping(self) -> DefaultActionsMapping:
|
|
return {
|
|
1002: Light.ON,
|
|
1001: Light.HOLD_BRIGHTNESS_UP,
|
|
1003: Light.RELEASE,
|
|
3002: Light.OFF,
|
|
3001: Light.HOLD_BRIGHTNESS_DOWN,
|
|
3003: Light.RELEASE,
|
|
2002: Light.CLICK_COLOR_UP,
|
|
2001: Light.HOLD_COLOR_UP,
|
|
2003: Light.RELEASE,
|
|
4002: Light.CLICK_COLOR_DOWN,
|
|
4001: Light.HOLD_COLOR_DOWN,
|
|
4003: Light.RELEASE,
|
|
}
|