From e1d6497bfa10e31a0a8e2387033243d769b37f3b Mon Sep 17 00:00:00 2001 From: Smanar Date: Thu, 20 Jul 2023 19:53:30 +0200 Subject: [PATCH] DDF for Paulmann switch 501.34 (#7087) --- button_maps.json | 29 +++++++ devices/paulmann/501_34_battery_switch.json | 91 +++++++++++++++++++++ 2 files changed, 120 insertions(+) create mode 100644 devices/paulmann/501_34_battery_switch.json diff --git a/button_maps.json b/button_maps.json index 790bd34801..9bf92d1474 100644 --- a/button_maps.json +++ b/button_maps.json @@ -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", diff --git a/devices/paulmann/501_34_battery_switch.json b/devices/paulmann/501_34_battery_switch.json new file mode 100644 index 0000000000..e3999d9815 --- /dev/null +++ b/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" + } + ] +} \ No newline at end of file