Skip to content

Commit

Permalink
DDF IKEA SYMFONISK sound remote gen2 (#6803)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaauw authored Mar 17, 2023
1 parent fc0782f commit 9b23d41
Show file tree
Hide file tree
Showing 3 changed files with 179 additions and 2 deletions.
45 changes: 43 additions & 2 deletions button_maps.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"IAS_ZONE": 1280,
"IAS_ACE": 1281,
"SENGLED": 64528,
"FC80": 64640,
"XIAOMI": 64704,
"ADUROLIGHT": 64716,
"XIAOYAN": 64716
Expand Down Expand Up @@ -123,6 +124,13 @@
"SENGLED": {
"COMMAND_0": 0
},
"FC80": {
"COMMAND_1": 1,
"COMMAND_2": 2,
"COMMAND_3": 3,
"COMMAND_4": 4,
"COMMAND_6": 6
},
"XIAOMI": {
"ATTRIBUTE_REPORT": 10
},
Expand Down Expand Up @@ -352,6 +360,39 @@
[1, "0x01", "SCENES", "IKEA_STOP_CT", "0", "S_BUTTON_4", "S_BUTTON_ACTION_LONG_RELEASED", "Stop ct warmer"]
]
},
"ikeaFC80Gen2Map": {
"vendor": "IKEA",
"doc": "FC80 sound remote gen2",
"modelids": ["FC80 sound remote gen2"],
"buttons": [
{"S_BUTTON_1": "Play"},
{"S_BUTTON_2": "Plus"},
{"S_BUTTON_3": "Minus"},
{"S_BUTTON_4": "Previous"},
{"S_BUTTON_5": "Next"},
{"S_BUTTON_6": "One Dot"},
{"S_BUTTON_7": "Two Dots"}
],
"map": [
[1, "0x01", "ONOFF", "TOGGLE", "0", "S_BUTTON_1", "S_BUTTON_ACTION_SHORT_RELEASED", "Toggle"],
[1, "0x01", "LEVEL_CONTROL", "MOVE_WITH_ON_OFF", "0", "S_BUTTON_2", "S_BUTTON_ACTION_SHORT_RELEASED", "Move up (with on/off)"],
[1, "0x01", "LEVEL_CONTROL", "MOVE", "0", "S_BUTTON_2", "S_BUTTON_ACTION_HOLD", "Move up"],
[1, "0x01", "LEVEL_CONTROL", "MOVE_WITH_ON_OFF", "1", "S_BUTTON_3", "S_BUTTON_ACTION_SHORT_RELEASED", "Move down (with on/off)"],
[1, "0x01", "LEVEL_CONTROL", "MOVE", "1", "S_BUTTON_3", "S_BUTTON_ACTION_HOLD", "Move down"],
[1, "0x01", "LEVEL_CONTROL", "STEP", "1", "S_BUTTON_4", "S_BUTTON_ACTION_SHORT_RELEASED", "Step down"],
[1, "0x01", "LEVEL_CONTROL", "STEP", "0", "S_BUTTON_5", "S_BUTTON_ACTION_SHORT_RELEASED", "Step up"],
[1, "0x02", "FC80", "COMMAND_1", "0", "S_BUTTON_6", "S_BUTTON_ACTION_INITIAL_PRESS", "0x01"],
[1, "0x02", "FC80", "COMMAND_2", "0", "S_BUTTON_6", "S_BUTTON_ACTION_HOLD", "0x02"],
[1, "0x02", "FC80", "COMMAND_3", "0", "S_BUTTON_6", "S_BUTTON_ACTION_SHORT_RELEASED", "0x03"],
[1, "0x02", "FC80", "COMMAND_4", "0", "S_BUTTON_6", "S_BUTTON_ACTION_LONG_RELEASED", "0x04"],
[1, "0x02", "FC80", "COMMAND_6", "0", "S_BUTTON_6", "S_BUTTON_ACTION_DOUBLE_PRESS", "0x06"],
[1, "0x03", "FC80", "COMMAND_1", "0", "S_BUTTON_7", "S_BUTTON_ACTION_INITIAL_PRESS", "0x01"],
[1, "0x03", "FC80", "COMMAND_2", "0", "S_BUTTON_7", "S_BUTTON_ACTION_HOLD", "0x02"],
[1, "0x03", "FC80", "COMMAND_3", "0", "S_BUTTON_7", "S_BUTTON_ACTION_SHORT_RELEASED", "0x03"],
[1, "0x03", "FC80", "COMMAND_4", "0", "S_BUTTON_7", "S_BUTTON_ACTION_LONG_RELEASED", "0x04"],
[1, "0x03", "FC80", "COMMAND_6", "0", "S_BUTTON_7", "S_BUTTON_ACTION_DOUBLE_PRESS", "0x06"]
]
},
"osramMiniRemoteMap": {
"vendor": "OSRAM",
"doc": "Lightify Switch Mini",
Expand Down Expand Up @@ -461,8 +502,8 @@
},
"ikeaSoundControllerMap": {
"vendor": "IKEA",
"doc": "SYMFONISK remote",
"modelids": ["SYMFONISK Sound Controller"],
"doc": "FC80 remote",
"modelids": ["FC80 Sound Controller"],
"buttons": [
{"S_BUTTON_1": "Button"},
{"S_BUTTON_2": "Rotate Clockwise"},
Expand Down
5 changes: 5 additions & 0 deletions button_maps.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"COLOR_CONTROL",
"IAS_ZONE",
"IAS_ACE",
"FC80",
"XIAOMI",
"ADUROLIGHT",
"XIAOYAN"
Expand Down Expand Up @@ -115,6 +116,9 @@
"multistate-input-commands": {
"enum": [ "ATTRIBUTE_REPORT" ]
},
"fc80-commands": {
"enum": [ "COMMAND_1", "COMMAND_2", "COMMAND_3", "COMMAND_4", "COMMAND_6" ]
},
"xiaomi-commands": {
"enum": [ "ATTRIBUTE_REPORT" ]
},
Expand Down Expand Up @@ -165,6 +169,7 @@
{ "$ref": "#/definitions/window-covering-commands" },
{ "$ref": "#/definitions/ias-commands" },
{ "$ref": "#/definitions/multistate-input-commands" },
{ "$ref": "#/definitions/fc80-commands" },
{ "$ref": "#/definitions/xiaomi-commands" },
{ "$ref": "#/definitions/xiaoyan-commands" }
],
Expand Down
131 changes: 131 additions & 0 deletions devices/ikea/symfonisk_sound_remote_gen2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
{
"schema": "devcap1.schema.json",
"manufacturername": "$MF_IKEA",
"modelid": "SYMFONISK sound remote gen2",
"product": "SYMFONISK sound remote gen2",
"sleeper": true,
"status": "Gold",
"path": "/devices/symfonisk_sound_remote_gen2.json",
"subdevices": [
{
"type": "$TYPE_SWITCH",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x1000"
],
"fingerprint": {
"profile": "0x0104",
"device": "0x0006",
"endpoint": "0x01",
"in": [
"0x0000",
"0x0001",
"0x1000"
],
"out": [
"0x0006",
"0x0008"
]
},
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/alert",
"description": "The currently active alert."
},
{
"name": "config/battery",
"parse": {
"at": "0x0021",
"cl": "0x0001",
"cppsrc": "power_configuration.cpp:193",
"ep": 1,
"eval": "Item.val = Math.round(Attr.val / 2)"
},
"default": 0
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/buttonevent",
"description": "The last received button event."
},
{
"name": "state/lastupdated"
}
]
}
],
"bindings": [
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0001",
"report": [
{
"at": "0x0021",
"dt": "0x20",
"min": 7200,
"max": 7200
}
]
},
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0006"
},
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0008"
},
{
"bind": "unicast",
"src.ep": 1,
"cl": "0xFC7C"
},
{
"bind": "unicast",
"src.ep": 2,
"cl": "0xFC80"
},
{
"bind": "unicast",
"src.ep": 3,
"cl": "0xFC80"
}
]
}

0 comments on commit 9b23d41

Please sign in to comment.