local device = {} device.model = "TS0601_cover_1" device.vendor = "Tuya" device.description = "Curtain motor/roller blind motor/window pusher/tubular motor" device.zigbeeModel = { "owvfni3\000", "owvfni3", "u1rkty3", "aabybja", "mcdj3aq", "mcdj3aq\000" } device.fingerprint = { { model = "TS0601", manufacturer = "_TZE200_5zbp6j0u", }, { model = "TS0601", manufacturer = "_TZE200_nkoabg8w", }, { model = "TS0601", manufacturer = "_TZE200_xuzcvlku", }, { model = "TS0601", manufacturer = "_TZE200_4vobcgd3", }, { model = "TS0601", manufacturer = "_TZE284_4vobcgd3", }, { model = "TS0601", manufacturer = "_TZE200_nogaemzt", }, { model = "TS0601", manufacturer = "_TZE200_r0jdjrvi", }, { model = "TS0601", manufacturer = "_TZE200_pk0sfzvr", }, { model = "TS0601", manufacturer = "_TZE200_fdtjuw7u", }, { model = "TS0601", manufacturer = "_TZE200_zpzndjez", }, { model = "TS0601", manufacturer = "_TZE200_wmcdj3aq", }, { model = "TS0601", manufacturer = "_TZE200_cowvfni3", }, { model = "TS0601", manufacturer = "_TZE200_rddyvrci", }, { model = "TS0601", manufacturer = "_TZE200_nueqqe6k", }, { model = "TS0601", manufacturer = "_TZE200_bqcqqjpb", }, { model = "TS0601", manufacturer = "_TZE200_xaabybja", }, { model = "TS0601", manufacturer = "_TZE200_rmymn92d", }, { model = "TS0601", manufacturer = "_TZE200_feolm6rk", }, { model = "TS0601", manufacturer = "_TZE200_3i3exuay", }, { model = "TS0601", manufacturer = "_TZE200_tvrvdj6o", }, { model = "TS0601", manufacturer = "_TZE200_b2u1drdv", }, { model = "TS0601", manufacturer = "_TZE200_ol5jlkkr", }, { model = "TS0601", manufacturer = "_TZE204_guvc7pdy", }, { model = "TS0601", manufacturer = "_TZE200_zxxfv8wi", }, { model = "TS0601", manufacturer = "_TZE200_1fuxihti", }, { model = "TS0601", manufacturer = "_TZE284_1fuxihti", }, { model = "TS0601", manufacturer = "_TZE204_1fuxihti", }, { model = "TS0601", manufacturer = "_TZE204_57hjqelq", }, { model = "TS0601", manufacturer = "_TZE204_vvvtcehj", }, { model = "TS0601", manufacturer = "_TZE200_hojryzzd", }, { model = "TS0601", manufacturer = "_TZE204_m1wl5fvq", }, { model = "TS0601", manufacturer = "_TZE200_en3wvcbx", }, { model = "TS0601", manufacturer = "_TZE200_fctwhugx", }, { model = "TS0601", manufacturer = "_TZE200_hsgrhjpf", }, { model = "TS0601", manufacturer = "_TZE200_g5wdnuow", }, { model = "TS0601", manufacturer = "_TZE200_5sbebbzs", }, { model = "TS0601", manufacturer = "_TZE200_udank5zs", }, { model = "TS0601", manufacturer = "_TZE204_dpqsvdbi", }, { model = "TS0601", manufacturer = "_TZE200_zuz7f94z", }, { model = "TS0601", manufacturer = "_TZE200_nv6nxo0c", }, { model = "TS0601", manufacturer = "_TZE200_3ylew7b4", }, { model = "TS0601", manufacturer = "_TZE200_llm0epxg", }, { model = "TS0601", manufacturer = "_TZE200_n1aauwb4", }, { model = "TS0601", manufacturer = "_TZE200_xu4a5rhj", }, { model = "TS0601", manufacturer = "_TZE200_bjzrowv2", }, { model = "TS0601", manufacturer = "_TZE284_bjzrowv2", }, { model = "TS0601", manufacturer = "_TZE204_bjzrowv2", }, { model = "TS0601", manufacturer = "_TZE200_axgvo9jh", }, { model = "TS0601", manufacturer = "_TZE200_gaj531w3", }, { model = "TS0601", manufacturer = "_TZE284_gaj531w3", }, { model = "TS0601", manufacturer = "_TZE200_yia0p3tr", }, { model = "TS0601", manufacturer = "_TZE200_rsj5pu8y", }, { model = "TS0601", manufacturer = "_TZE200_yrugsphv", }, { model = "TS0601", manufacturer = "_TZE204_yrugsphv", }, { model = "TS0601", manufacturer = "_TZE204_nladmfvf", }, { model = "TS0601", manufacturer = "_TZE200_2odrmqwq", }, { model = "TS0601", manufacturer = "_TZE204_lh3arisb", }, { model = "TS0601", manufacturer = "_TZE284_udank5zs", }, { model = "TS0601", manufacturer = "_TZE284_b7kbnl6q", }, { model = "TS0601", manufacturer = "_TZE200_7shyddj3", }, { model = "TS0601", manufacturer = "_TZE204_a2jcoyuk", }, { model = "TS0601", manufacturer = "_TZE204_ic7jtutb", }, { model = "TS0601", manufacturer = "_TZE204_odlldrxx", }, { model = "TS0601", manufacturer = "_TZE200_odlldrxx", }, { model = "TS0601", manufacturer = "_TZE204_zuq5xxib", }, { model = "zo2pocs\000", manufacturer = "_TYST11_fzo2pocs", }, { model = "dank5zs\000", manufacturer = "_TYST11_udank5zs", }, } device.exposes = { { type = "cover", features = { { type = "enum", name = "state", property = "state", access = 3, values = { "OPEN", "CLOSE", "STOP" }, }, { type = "numeric", name = "position", property = "position", access = 3, unit = "%", min = 0, max = 100, description = "Position of this cover", }, }, }, { type = "composite", name = "options", property = "options", access = 3, features = { { type = "numeric", name = "motor_speed", property = "motor_speed", access = 3, min = 0, max = 255, description = "Motor speed", }, { type = "binary", name = "reverse_direction", property = "reverse_direction", access = 3, value_on = true, value_off = false, description = "Reverse the motor direction", }, }, }, } device.tuyaDatapoints = { { dp = 1, name = "state", converter = "lookup", lookup = { OPEN = 0, STOP = 1, CLOSE = 2 } }, { dp = 2, name = "position", converter = "coverPosition" }, { dp = 3, name = "position", converter = "coverPosition" }, } return device