From 082291d879d9fdd5f386def9900454ddc83b1a29 Mon Sep 17 00:00:00 2001 From: ohinckel Date: Mon, 13 May 2024 22:50:01 +0200 Subject: [PATCH] New device: MegaLight Smart Light Bar (#94) --- ...megalight-smart-light-bar-rgbic-light.json | 165 ++++++++++++++++++ ...xfz1ugjnqfymv1n-1.0.0-sdk-2.3.1-40.00.json | 17 ++ 2 files changed, 182 insertions(+) create mode 100644 devices/megalight-smart-light-bar-rgbic-light.json create mode 100644 profiles/bk-hc-base-4xfz1ugjnqfymv1n-1.0.0-sdk-2.3.1-40.00.json diff --git a/devices/megalight-smart-light-bar-rgbic-light.json b/devices/megalight-smart-light-bar-rgbic-light.json new file mode 100644 index 00000000..318ecc49 --- /dev/null +++ b/devices/megalight-smart-light-bar-rgbic-light.json @@ -0,0 +1,165 @@ +{ + "manufacturer": "MegaLight", + "name": "Smart-Light-Bar RGBIC Light", + "key": "4xfz1ugjnqfymv1n", + "ap_ssid": "SmartLife", + "github_issues": [], + "image_urls": [], + "profiles": [ + "bk-hc-base-4xfz1ugjnqfymv1n-1.0.0-sdk-2.3.1-40.00" + ], + "schemas": { + "0000043sf6": [ + { + "type": "obj", + "mode": "rw", + "property": { + "type": "bool" + }, + "id": 20 + }, + { + "type": "obj", + "mode": "rw", + "property": { + "range": [ + "white", + "colour", + "static", + "pre_set", + "custom", + "phone_music" + ], + "type": "enum" + }, + "id": 21 + }, + { + "type": "obj", + "mode": "rw", + "property": { + "min": 10, + "max": 1000, + "scale": 0, + "step": 1, + "type": "value" + }, + "id": 22 + }, + { + "type": "obj", + "mode": "rw", + "property": { + "min": 0, + "max": 1000, + "scale": 0, + "step": 1, + "type": "value" + }, + "id": 23 + }, + { + "type": "obj", + "mode": "rw", + "property": { + "type": "string", + "maxlen": 255 + }, + "id": 24 + }, + { + "type": "obj", + "mode": "rw", + "property": { + "type": "string", + "maxlen": 255 + }, + "id": 25 + }, + { + "type": "obj", + "mode": "rw", + "property": { + "min": 0, + "max": 86400, + "scale": 0, + "step": 1, + "type": "value" + }, + "id": 26 + }, + { + "type": "obj", + "mode": "wr", + "property": { + "type": "string", + "maxlen": 255 + }, + "id": 27 + }, + { + "type": "obj", + "mode": "wr", + "property": { + "type": "string", + "maxlen": 255 + }, + "id": 28 + }, + { + "mode": "ro", + "property": { + "type": "string", + "maxlen": 255 + }, + "id": 101, + "type": "obj" + }, + { + "mode": "wr", + "property": { + "min": 0, + "max": 255, + "scale": 1, + "step": 1, + "type": "value" + }, + "id": 102, + "type": "obj" + }, + { + "mode": "rw", + "property": { + "min": 1, + "max": 150, + "scale": 1, + "step": 1, + "type": "value" + }, + "id": 103, + "type": "obj" + }, + { + "mode": "rw", + "property": { + "min": 0, + "max": 11, + "scale": 1, + "step": 1, + "type": "value" + }, + "id": 104, + "type": "obj" + }, + { + "mode": "ro", + "property": { + "type": "string", + "maxlen": 255 + }, + "id": 105, + "type": "obj" + } + ] + } +} diff --git a/profiles/bk-hc-base-4xfz1ugjnqfymv1n-1.0.0-sdk-2.3.1-40.00.json b/profiles/bk-hc-base-4xfz1ugjnqfymv1n-1.0.0-sdk-2.3.1-40.00.json new file mode 100644 index 00000000..1f9ba9ec --- /dev/null +++ b/profiles/bk-hc-base-4xfz1ugjnqfymv1n-1.0.0-sdk-2.3.1-40.00.json @@ -0,0 +1,17 @@ +{ + "name": "1.0.0 - BK7231N", + "sub_name": "bk_hc_base_4xfz1ugjnqfymv1n", + "type": "CLASSIC", + "icon": "memory", + "firmware": { + "chip": "BK7231N", + "name": "bk_hc_base_4xfz1ugjnqfymv1n", + "version": "1.0.0", + "sdk": "2.3.1-40.00" + }, + "data": { + "address_finish": "0x1BB67", + "address_ssid": "0xBA7F5", + "address_ssid_padding": 4 + } +}