From 08d50e994eca7f4c5a5e85f364522ca731ed1245 Mon Sep 17 00:00:00 2001 From: Cossid Date: Fri, 9 Feb 2024 23:26:42 -0600 Subject: [PATCH] New device - Tuya Generic Plug v2.0.1 --- devices/tuya-generic-plug-v2.0.1.json | 116 ++++++++++++++++++ ...231s-rnd-switch-2.0.1-sdk-2.0.0-30.05.json | 17 +++ 2 files changed, 133 insertions(+) create mode 100644 devices/tuya-generic-plug-v2.0.1.json create mode 100644 profiles/oem-bk7231s-rnd-switch-2.0.1-sdk-2.0.0-30.05.json diff --git a/devices/tuya-generic-plug-v2.0.1.json b/devices/tuya-generic-plug-v2.0.1.json new file mode 100644 index 00000000..8508aef5 --- /dev/null +++ b/devices/tuya-generic-plug-v2.0.1.json @@ -0,0 +1,116 @@ +{ + "manufacturer": "Tuya Generic", + "name": "Plug v2.0.1", + "key": "keya4gvchmtapm8n", + "ap_ssid": "SmartLife", + "github_issues": [], + "image_urls": [], + "profiles": [ + "oem-bk7231s-rnd-switch-2.0.1-sdk-2.0.0-30.05" + ], + "schemas": { + "000002e3fu": [ + { + "mode": "rw", + "property": { + "type": "bool" + }, + "id": 1, + "type": "obj" + }, + { + "mode": "rw", + "property": { + "type": "bool" + }, + "id": 2, + "type": "obj" + }, + { + "mode": "rw", + "property": { + "min": 0, + "max": 86400, + "scale": 0, + "step": 1, + "type": "value" + }, + "id": 9, + "type": "obj" + }, + { + "mode": "rw", + "property": { + "min": 0, + "max": 86400, + "scale": 0, + "step": 1, + "type": "value" + }, + "id": 10, + "type": "obj" + }, + { + "mode": "rw", + "property": { + "range": [ + "off", + "on", + "memory" + ], + "type": "enum" + }, + "id": 38, + "type": "obj" + }, + { + "mode": "rw", + "property": { + "range": [ + "relay", + "pos", + "none" + ], + "type": "enum" + }, + "id": 40, + "type": "obj" + } + ] + }, + "device_configuration": { + "bt_type": 0, + "ch_cddpid1": 9, + "ch_cddpid2": 10, + "ch_dpid1": 1, + "ch_dpid2": 2, + "ch_flag1": 1, + "ch_flag2": 1, + "ch_num": 2, + "crc": 14, + "cyc_dpid": 42, + "inch_dp": 44, + "init_conf": 38, + "jv": "1.0.8", + "led_dp": 40, + "lock_dp": 41, + "module": "WB2S", + "mxcl_led_m": 0, + "net_trig": 2, + "netled_lv": 0, + "netled_pin": 26, + "netn_led": 0, + "nety_led": 1, + "rand_dpid": 43, + "reset_t": 3, + "reuse_led_m": 0, + "rl1_lv": 1, + "rl1_pin": 24, + "rl2_lv": 1, + "rl2_pin": 8, + "rl_type": 0, + "total_bt_lv": 0, + "total_bt_pin": 6, + "total_stat": 2 + } +} diff --git a/profiles/oem-bk7231s-rnd-switch-2.0.1-sdk-2.0.0-30.05.json b/profiles/oem-bk7231s-rnd-switch-2.0.1-sdk-2.0.0-30.05.json new file mode 100644 index 00000000..0fba3e7e --- /dev/null +++ b/profiles/oem-bk7231s-rnd-switch-2.0.1-sdk-2.0.0-30.05.json @@ -0,0 +1,17 @@ +{ + "name": "2.0.1 - BK7231T", + "sub_name": "oem_bk7231s_rnd_switch", + "type": "CLASSIC", + "icon": "toggle-switch-outline", + "firmware": { + "chip": "BK7231T", + "name": "oem_bk7231s_rnd_switch", + "version": "2.0.1", + "sdk": "2.0.0-30.05", + "key": "keya4gvchmtapm8n" + }, + "data": { + "address_finish": "0x97537", + "address_datagram": "0x8C9DB" + } +}