Skip to content

Commit e9807ec

Browse files
authored
Merge pull request #1027 from xaviml/1014-new-device-support-for-shelly-dimmer-2-as-a-controller
feat(device): add Shelly Dimmer 2 device
2 parents c57c38e + 04a847f commit e9807ec

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ _This minor change does not contain any breaking changes._
1717
- [E2213](https://BASE_URL/controllerx/controllers/E2213) - add device with Z2M support. [ #885 ]
1818
- [Z31BRL](https://BASE_URL/controllerx/controllers/Z31BRL) - add Z2M support. [ #958 ]
1919
- [E2123](https://BASE_URL/controllerx/controllers/E2123) - add Z2M and deCONZ support. [ #842 ]
20+
- [ShellyDimmer2](https://BASE_URL/controllerx/controllers/ShellyDimmer2) - add Shelly support. [ #1014 ]
2021

2122
<!--
2223
## :hammer: Fixes

apps/controllerx/cx_devices/shelly.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,13 @@ def get_shelly_actions_mapping(self) -> DefaultActionsMapping:
4545
"btn_up_2": Light.RELEASE,
4646
"double_push_2": Light.ON_MIN_BRIGHTNESS,
4747
}
48+
49+
50+
class ShellyDimmer2LightController(LightController):
51+
def get_shelly_actions_mapping(self) -> DefaultActionsMapping:
52+
return {
53+
"single_1": Light.TOGGLE,
54+
"single_2": None,
55+
"long_1": Light.TOGGLE,
56+
"long_2": None,
57+
}
Loading

0 commit comments

Comments
 (0)