Skip to content

Commit

Permalink
DDF for Paulmann switch 501.34 (#7087)
Browse files Browse the repository at this point in the history
  • Loading branch information
Smanar committed Jul 20, 2023
1 parent 2cef333 commit e1d6497
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 0 deletions.
29 changes: 29 additions & 0 deletions button_maps.json
Expand Up @@ -1425,6 +1425,35 @@
[1, "0x02", "LEVEL_CONTROL", "STOP", "1", "S_BUTTON_4", "S_BUTTON_ACTION_LONG_RELEASED", "Dimm down stop"]
]
},
"PaulmannMap": {
"vendor": "Paulmann LichtGmbH",
"doc": "On off remote",
"modelids": ["501.34"],
"buttons": [
{"S_BUTTON_1": "ON Left"},
{"S_BUTTON_2": "OFF Left"},
{"S_BUTTON_3": "ON Right"},
{"S_BUTTON_4": "OFF Right"},
{"S_BUTTON_5": "ON Left long"},
{"S_BUTTON_6": "OFF Left long"},
{"S_BUTTON_7": "ON Right long"},
{"S_BUTTON_8": "OFF Right long"}
],
"map": [
[1, "0x01", "ONOFF", "ON", "0", "S_BUTTON_1", "S_BUTTON_ACTION_SHORT_RELEASED", "ON Left"],
[1, "0x01", "ONOFF", "OFF", "0", "S_BUTTON_2", "S_BUTTON_ACTION_SHORT_RELEASED", "OFF Left"],
[1, "0x02", "ONOFF", "ON", "0", "S_BUTTON_3", "S_BUTTON_ACTION_SHORT_RELEASED", "ON Right"],
[1, "0x02", "ONOFF", "OFF", "0", "S_BUTTON_4", "S_BUTTON_ACTION_SHORT_RELEASED", "OFF Right"],
[1, "0x01", "LEVEL_CONTROL", "MOVE_WITH_ON_OFF", "0", "S_BUTTON_5", "S_BUTTON_ACTION_SHORT_RELEASED", "Dim Up Left"],
[1, "0x01", "LEVEL_CONTROL", "STOP_WITH_ON_OFF", "0", "S_BUTTON_5", "S_BUTTON_ACTION_SHORT_RELEASED", "Stop Dim"],
[1, "0x01", "LEVEL_CONTROL", "MOVE_WITH_ON_OFF", "1", "S_BUTTON_6", "S_BUTTON_ACTION_SHORT_RELEASED", "Dim Down Left"],
[1, "0x01", "LEVEL_CONTROL", "STOP_WITH_ON_OFF", "1", "S_BUTTON_6", "S_BUTTON_ACTION_SHORT_RELEASED", "Stop Dim"],
[1, "0x02", "LEVEL_CONTROL", "MOVE_WITH_ON_OFF", "0", "S_BUTTON_7", "S_BUTTON_ACTION_SHORT_RELEASED", "Dim Up Right"],
[1, "0x02", "LEVEL_CONTROL", "STOP_WITH_ON_OFF", "0", "S_BUTTON_7", "S_BUTTON_ACTION_SHORT_RELEASED", "Stop Dim"],
[1, "0x02", "LEVEL_CONTROL", "MOVE_WITH_ON_OFF", "1", "S_BUTTON_8", "S_BUTTON_ACTION_SHORT_RELEASED", "Dim Down Right"],
[1, "0x02", "LEVEL_CONTROL", "STOP_WITH_ON_OFF", "1", "S_BUTTON_8", "S_BUTTON_ACTION_SHORT_RELEASED", "Stop Dim"]
]
},
"aqaraOpple6Map": {
"vendor": "Xiaomi",
"doc": "Aqara Opple switches",
Expand Down
91 changes: 91 additions & 0 deletions devices/paulmann/501_34_battery_switch.json
@@ -0,0 +1,91 @@
{
"schema": "devcap1.schema.json",
"manufacturername": "Paulmann LichtGmbH",
"modelid": "501.34",
"product": "Paulmann Battery Switch",
"sleeper": true,
"status": "Gold",
"subdevices": [
{
"type": "$TYPE_SWITCH",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0006"
],
"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/on"
},
{
"name": "config/reachable"
},
{
"name": "state/buttonevent"
},
{
"name": "config/battery"
},
{
"name": "state/lastupdated"
}
]
}
],
"bindings": [
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0001",
"report": [
{
"at": "0x0021",
"dt": "0x20",
"min": 60,
"max": 3600,
"change": "0x00000001"
}
]
},
{
"bind": "unicast",
"src.ep": 1,
"dst.ep": 1,
"cl": "0x0006"
},
{
"bind": "unicast",
"src.ep": 1,
"dst.ep": 1,
"cl": "0x0008"
}
]
}

0 comments on commit e1d6497

Please sign in to comment.