local device = {} device.model = "TS0215A_remote" device.vendor = "Tuya" device.description = "Security remote control" device.exposes = { { type = "numeric", name = "battery", property = "battery", access = 1, unit = "%", min = 0, max = 100, description = "Remaining battery in %, can take up to 24 hours before reported", category = "diagnostic", }, { type = "enum", name = "action", property = "action", access = 1, description = "Triggered action (e.g. a button click)", category = "diagnostic", values = { "disarm", "arm_day_zones", "arm_night_zones", "arm_all_zones", "exit_delay", "emergency" }, }, } device.fromZigbee = { "battery" } device.configure = { bind = { "genPowerCfg" }, reporting = { { cluster = "genPowerCfg", attribute = "batteryPercentageRemaining", min = 3600, max = 65000, change = 0, }, { cluster = "genPowerCfg", attribute = "batteryVoltage", min = 3600, max = 65000, change = 0, }, }, } device.fingerprint = { { model = "TS0215A", manufacturer = "_TZ3000_p6ju8myv", }, { model = "TS0215A", manufacturer = "_TZ3000_0zrccfgx", }, { model = "TS0215A", manufacturer = "_TZ3000_fsiepnrh", }, { model = "TS0215A", manufacturer = "_TZ3000_ug1vtuzn", }, { model = "TS0215A", manufacturer = "_TZ3000_eo3dttwe", }, { model = "TS0215A", manufacturer = "_TZ3000_jwcixnrz", }, { model = "TS0215A", manufacturer = "_TZ3000_u2bbagu4", }, { model = "TS0215A", manufacturer = "_TZ3000_8utxxtzr", }, } return device