Skip to content

Commit

Permalink
fix(device): fix z2m mapping for IM6001-BTP01
Browse files Browse the repository at this point in the history
related to #397
  • Loading branch information
xaviml committed Jan 1, 2022
1 parent 0754e80 commit 201fb8f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
11 changes: 6 additions & 5 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ _This minor change does not contain any breaking changes._
_Note: Remember to restart the AppDaemon addon/server after updating to a new version._
PRERELEASE_NOTE

<!--
## :pencil2: Features
-->

- Add `previous_state` attribute to restrict when an action is performed depending on the previous state of the entity. This is just applicable for `state` and `z2m` (with not MQTT) integrations. [#366]
- Add `cover_duration` attribute. Duration of the cover to open and/or close in seconds, so `toggle_open` and `toggle_close` can stop the cover if the cover is still moving. This is recommended to be used when the cover does not report `opening` and `closing` states, otherwise, it is not necessary. [#368]

<!--
## :hammer: Fixes
-->

- [IM6001-BTP01](https://xaviml.github.io/controllerx/controllers/IM6001-BTP01) - fix z2m mapping

<!--
## :clock2: Performance
Expand All @@ -27,7 +26,9 @@ PRERELEASE_NOTE
## :wrench: Refactor
-->

<!--
## :video_game: New devices
- [WXKG06LM](https://xaviml.github.io/controllerx/controllers/WXKG06LM) - add Z2M and deCONZ support
- [W2049](https://xaviml.github.io/controllerx/controllers/W2049) - add ZHA support @patrezp [#375]
-->
4 changes: 2 additions & 2 deletions apps/controllerx/cx_devices/smartthings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class SmartThingsButtonLightController(LightController):

def get_z2m_actions_mapping(self) -> DefaultActionsMapping:
return {
"single_click": Light.TOGGLE,
"double_click": Light.ON_FULL_BRIGHTNESS,
"single": Light.TOGGLE,
"double": Light.ON_FULL_BRIGHTNESS,
"hold": Light.SET_HALF_BRIGHTNESS,
}

Expand Down
4 changes: 2 additions & 2 deletions docs/_data/controllers/IM6001-BTP01.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ integrations:
- name: Zigbee2MQTT
codename: z2m
actions:
- "single_click → 1 click"
- "double_click → 2 clicks"
- "single → 1 click"
- "double → 2 clicks"
- "hold → Hold the button"
- name: deCONZ
codename: deconz
Expand Down

0 comments on commit 201fb8f

Please sign in to comment.