Skip to content

Commit

Permalink
New device: MegaLight Smart Light Bar (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohinckel authored May 13, 2024
1 parent 7a17388 commit 082291d
Show file tree
Hide file tree
Showing 2 changed files with 182 additions and 0 deletions.
165 changes: 165 additions & 0 deletions devices/megalight-smart-light-bar-rgbic-light.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
}
17 changes: 17 additions & 0 deletions profiles/bk-hc-base-4xfz1ugjnqfymv1n-1.0.0-sdk-2.3.1-40.00.json
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit 082291d

Please sign in to comment.