-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds TS0044F Tuya device Little different than the TS0044 Tuya device already implemented * style(black): format code with black Co-authored-by: Xavi Moreno <[email protected]>
- Loading branch information
1 parent
bec6770
commit 9f9412a
Showing
5 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: TS0044F (TuYa) | ||
device_support: | ||
- type: Light | ||
domain: light | ||
controller: TS0044FLightController | ||
delay: 350 | ||
mapping: | ||
- "Click top left → Toggle" | ||
- "Click top right → Brighten up (1 step)" | ||
- "Click bottom left → Toggle" | ||
- "Click bottom right → Dim down (1 step)" | ||
integrations: | ||
- name: Zigbee2MQTT | ||
codename: z2m | ||
actions: | ||
- on → Click top left | ||
- brightness_step_up → Click top right | ||
- off → Click bottom left | ||
- brightness_step_down → Click top right | ||
note: >- | ||
This device is very similar to the TS0044 Tuya, except that it doesn't hold action, double clicks. | ||
Note that each button perform the same actions. | ||
This is because ControllerX is design to control just one entity (light or media player). | ||
So you can include the `actions` parameter to include the actions needed, | ||
or use the `mapping` attribute to define a <a href="/controllerx/advanced/custom-controllers">custom mapping</a>. | ||
You can check <a href="https://github.com/xaviml/controllerx/issues/18#issuecomment-582535634">here</a> for reference. | ||
Also, this controller doesn't support hold action. This means that there is not | ||
smooth brightness changes when holding, just step by step everytime it's pressed. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
layout: controller | ||
title: TS0044F (TuYa) | ||
device: TS0044F | ||
--- |