-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert Tuya door quirk to v2, add
tuya_vibration
(#3796)
- Loading branch information
1 parent
ab4e4f5
commit 4d83f9c
Showing
6 changed files
with
49 additions
and
244 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
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
"""Tuya contact sensors.""" | ||
|
||
from zhaquirks.const import BatterySize | ||
from zhaquirks.tuya.builder import TuyaQuirkBuilder | ||
|
||
( | ||
TuyaQuirkBuilder("_TZE200_pay2byax", "TS0601") # Cusam ZG-102ZL | ||
.applies_to("_TZE200_n8dljorx", "TS0601") | ||
.tuya_illuminance(dp_id=101) | ||
.tuya_contact(dp_id=1) | ||
.tuya_battery(dp_id=2, battery_type=BatterySize.CR2032, battery_qty=1) | ||
.skip_configuration() | ||
.add_to_registry() | ||
) | ||
|
||
|
||
( | ||
TuyaQuirkBuilder("_TZE200_kzm5w4iz", "TS0601") | ||
.tuya_contact(dp_id=1) | ||
.tuya_battery(dp_id=3, battery_type=BatterySize.AAA, battery_qty=2) | ||
.tuya_vibration(dp_id=10) | ||
.skip_configuration() | ||
.add_to_registry() | ||
) |
Oops, something went wrong.