local device = {} device.model = "TS0207_repeater" device.vendor = "Tuya" device.description = "Repeater" device.fingerprint = { { model = "TS0207", manufacturer = "_TZ3000_m0vaazab", }, { model = "TS0207", manufacturer = "_TZ3000_ufttklsz", }, { model = "TS0207", manufacturer = "_TZ3000_nkkl7uzv", }, { model = "TS0207", manufacturer = "_TZ3000_misw04hq", }, { model = "TS0207", manufacturer = "_TZ3000_nlsszmzl", }, { model = "TS0207", manufacturer = "_TZ3000_gszjt2xx", }, { model = "TS0207", manufacturer = "_TZ3000_wlquqiiz", }, { model = "TS0207", manufacturer = "_TZ3000_5k5vh43t", }, { model = "TS0207", manufacturer = "_TZ3000_kxlmv9ag", }, { model = "TS0207", manufacturer = "_TZ3000_wmlc9p9z", }, { model = "TS0207", manufacturer = "_TZ3000_shopg9ss", }, { model = "TS0207", manufacturer = "_TZ3000_n0lphcok", }, { model = "TS0207", manufacturer = "_TZ3000_r80pzsb9", }, { model = "TS0207", manufacturer = "_TZ3000_sgpbz53b", }, { model = "TS0001", manufacturer = "_TZ3000_n0lphcok", }, { model = "TS0001", manufacturer = "_TZ3000_wn65ixz9", }, { model = "TS0001", manufacturer = "_TZ3000_trdx8uxs", }, { model = "TS0001", manufacturer = "_TZ3000_gdsvhfao", }, } -- A repeater has no controllable/sensing function (z2m exposes: []). Expose a -- single read-only linkquality diagnostic so the device still shows up in HA as -- a placeholder. The value comes from the received frame LQI, not a converter. device.exposes = { { type = "numeric", name = "linkquality", property = "linkquality", access = 1, unit = "lqi", min = 0, max = 255, description = "Link quality (signal strength)", category = "diagnostic", }, } return device