local device = {} device.model = "TS0601_cover_2" device.vendor = "Tuya" device.description = "Curtain motor or roller blind motor with fixed speed" device.fingerprint = { { model = "TS0601", manufacturer = "_TZE200_eegnwoyw", }, { model = "TS0105", manufacturer = "_TZE600_ogyg1y6b", }, } 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", }, }, }, } 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