-
Notifications
You must be signed in to change notification settings - Fork 960
Open
Open
Feature
Copy link
Labels
device support requestThis requests support for a new deviceThis requests support for a new device
Description
Problem description
The Smoke detector (humidity and temperature) TS0601 _TZE284_gyzlwu5q is not supported.
Solution description
Using from this thread, I was able to write the following quirk (see bellow).
Screenshots/Video
Screenshots/Video
[Paste/upload your media here]
Diagnostics information
N/A
Device signature
Device signature
SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=81, device_version=1, input_clusters=[4, 5, 61184, 0, 60672], output_clusters=[25, 10])
Logs
Logs
[Paste the logs here]Custom quirk
Custom quirk
(
TuyaQuirkBuilder("_TZE284_gyzlwu5q", "TS0601")
.applies_to("_TZE284_gyzlwu5q", "TS0601")
.tuya_smoke(dp_id=1)
.tuya_binary_sensor(
dp_id=9,
attribute_name="self_test_result",
device_class=BinarySensorDeviceClass.PROBLEM,
entity_type=EntityType.DIAGNOSTIC,
fallback_name="Self test result",
)
.tuya_dp(
dp_id=14,
ep_attribute=TuyaPowerConfigurationCluster2AAA.ep_attribute,
attribute_name="battery_percentage_remaining",
converter=lambda x: {0: 50, 1: 100, 2: 200}[x],
)
.adds(TuyaPowerConfigurationCluster2AAA)
.tuya_switch(
dp_id=16,
attribute_name="silence_alarm",
translation_key="silence_alarm",
fallback_name="Silence alarm",
)
.tuya_temperature(dp_id=23, scale=10)
.tuya_humidity(dp_id=24)
.skip_configuration()
.add_to_registry()
)Additional information
Tested:
- smoke detection
- silence mode (seems to work but might need more testing)
- temperature
- humidity
Not tested:
- battery level
Metadata
Metadata
Assignees
Labels
device support requestThis requests support for a new deviceThis requests support for a new device