Prise en charge du module AEOTEC SAMJIN BUTTON

Bonjour,
Pour faire suite au thread sur mes problèmes d’integration du Samjin Button ([Integration zigbee aeotec/samjin button - #7 par mizber])(Integration zigbee aeotec/samjin button - #7 par mizber), je reprends avec des informations propres.
J’utilise une passerelle Deconz USB connectée directement sur un Rasberry PI3+
Jeedom V 4.1.27
Plugin Zigbee à jour.

Site du Module:
https://aeotec.com/smartthings/zigbee-button.html

Configuration du Noeud:

{
    "ieee": "28:6d:97:00:01:12:59:ea",
    "nwk": 22965,
    "status": 2,
    "lqi": "None",
    "rssi": "None",
    "last_seen": "None",
    "node_descriptor": "02:40:80:41:12:52:52:00:00:2c:52:00:00",
    "endpoints": [
        {
            "id": 1,
            "status": 1,
            "device_type": 1026,
            "profile_id": 260,
            "manufacturer": "Samjin",
            "model": "button",
            "output_clusters": [
                {
                    "id": 3,
                    "name": "Identify",
                    "attributes": []
                },
                {
                    "id": 25,
                    "name": "Ota",
                    "attributes": []
                }
            ],
            "input_clusters": [
                {
                    "id": 0,
                    "name": "Basic",
                    "attributes": [
                        {
                            "id": 0,
                            "name": "zcl_version",
                            "value": 2
                        },
                        {
                            "id": 1,
                            "name": "app_version",
                            "value": 17
                        },
                        {
                            "id": 3,
                            "name": "hw_version",
                            "value": 0
                        },
                        {
                            "id": 4,
                            "name": "manufacturer",
                            "value": "Samjin"
                        },
                        {
                            "id": 5,
                            "name": "model",
                            "value": "button"
                        },
                        {
                            "id": 7,
                            "name": "power_source",
                            "value": 3
                        },
                        {
                            "id": 16384,
                            "name": "sw_build_id",
                            "value": ""
                        }
                    ]
                },
                {
                    "id": 1,
                    "name": "Power Configuration",
                    "attributes": [
                        {
                            "id": 32,
                            "name": "battery_voltage",
                            "value": 27
                        },
                        {
                            "id": 33,
                            "name": "battery_percentage_remaining",
                            "value": 162
                        }
                    ]
                },
                {
                    "id": 3,
                    "name": "Identify",
                    "attributes": []
                },
                {
                    "id": 32,
                    "name": "Poll Control",
                    "attributes": []
                },
                {
                    "id": 1026,
                    "name": "Temperature Measurement",
                    "attributes": [
                        {
                            "id": 0,
                            "name": "measured_value",
                            "value": 2155
                        }
                    ]
                },
                {
                    "id": 1280,
                    "name": "IAS Zone",
                    "attributes": []
                },
                {
                    "id": 2821,
                    "name": "Diagnostic",
                    "attributes": []
                }
            ]
        }
    ],
    "signature": {
        "manufacturer": "Samjin",
        "model": "button",
        "node_desc": {
            "logical_type": 2,
            "complex_descriptor_available": 0,
            "user_descriptor_available": 0,
            "reserved": 0,
            "aps_flags": 0,
            "frequency_band": 8,
            "mac_capability_flags": 128,
            "manufacturer_code": 4673,
            "maximum_buffer_size": 82,
            "maximum_incoming_transfer_size": 82,
            "server_mask": 11264,
            "maximum_outgoing_transfer_size": 82,
            "descriptor_capability_field": 0
        },
        "endpoints": {
            "1": {
                "profile_id": 260,
                "device_type": 1026,
                "input_clusters": [
                    0,
                    1,
                    3,
                    32,
                    1026,
                    1280,
                    2821
                ],
                "output_clusters": [
                    3,
                    25
                ]
            }
        }
    },
    "class": "zhaquirks.samjin.button"
}

Logs en Mode Debug:

lick Simple
------------

[2021-10-23 13:00:42][DEBUG] : {"devices":{"28:6d:97:00:01:12:59:ea":{"1":{"1280":{"cmd":{"1":{"value":"ZoneStatus.Alarm_1","cluster_name":"IAS Zone"},"1.1":{"value":"bitmap8.0","cluster_name":"IAS Zone"},"1.2":{"value":"0","cluster_name":"IAS Zone"},"1.3":{"value":"0","cluster_name":"IAS Zone"}}}}}}}
[2021-10-23 13:00:42][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1 => ZoneStatus.Alarm_1 convert to 1
[2021-10-23 13:00:42][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1.1 => bitmap8.0 convert to 0
[2021-10-23 13:00:42][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1.2 => 0 convert to 0
[2021-10-23 13:00:42][DEBUG] : {"devices":{"28:6d:97:00:01:12:59:ea":{"1":{"1280":{"event":{"button_single":{"value":{"press_type":"single","command_id":0,"args":[1,0,0,0]},"cluster_name":"IAS Zone"}}}}}}}
[2021-10-23 13:00:42][DEBUG] : Search event command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::event::button_single::press_type => single convert to single
[2021-10-23 13:00:42][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1.3 => 0 convert to 0
[2021-10-23 13:00:42][DEBUG] : Search event command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::event::button_single::command_id => 0 convert to 0
[2021-10-23 13:00:42][DEBUG] : Search event command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::event::button_single::args => Array convert to 1


Click Double
------------
[2021-10-23 13:00:47][DEBUG] : {"devices":{"28:6d:97:00:01:12:59:ea":{"1":{"1280":{"cmd":{"1":{"value":"ZoneStatus.Alarm_2","cluster_name":"IAS Zone"},"1.1":{"value":"bitmap8.0","cluster_name":"IAS Zone"},"1.2":{"value":"0","cluster_name":"IAS Zone"},"1.3":{"value":"0","cluster_name":"IAS Zone"}}}}}}}
[2021-10-23 13:00:47][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1 => ZoneStatus.Alarm_2 convert to 1
[2021-10-23 13:00:47][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1.1 => bitmap8.0 convert to 0
[2021-10-23 13:00:47][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1.2 => 0 convert to 0
[2021-10-23 13:00:47][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1.3 => 0 convert to 0
[2021-10-23 13:00:47][DEBUG] : {"devices":{"28:6d:97:00:01:12:59:ea":{"1":{"1280":{"event":{"button_double":{"value":{"press_type":"double","command_id":0,"args":[2,0,0,0]},"cluster_name":"IAS Zone"}}}}}}}
[2021-10-23 13:00:47][DEBUG] : Search event command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::event::button_double::press_type => double convert to double
[2021-10-23 13:00:47][DEBUG] : Search event command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::event::button_double::command_id => 0 convert to 0
[2021-10-23 13:00:47][DEBUG] : Search event command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::event::button_double::args => Array convert to 1

Triple Click (Inutile je pense sur ce module)
-------------------------------------
[2021-10-23 13:00:55][DEBUG] : {"devices":{"28:6d:97:00:01:12:59:ea":{"1":{"1280":{"cmd":{"1":{"value":"ZoneStatus.Alarm_2","cluster_name":"IAS Zone"},"1.1":{"value":"bitmap8.0","cluster_name":"IAS Zone"},"1.2":{"value":"0","cluster_name":"IAS Zone"},"1.3":{"value":"0","cluster_name":"IAS Zone"}}}}}}}
[2021-10-23 13:00:55][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1 => ZoneStatus.Alarm_2 convert to 1
[2021-10-23 13:00:55][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1.1 => bitmap8.0 convert to 0
[2021-10-23 13:00:55][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1.2 => 0 convert to 0
[2021-10-23 13:00:55][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1.3 => 0 convert to 0
[2021-10-23 13:00:55][DEBUG] : {"devices":{"28:6d:97:00:01:12:59:ea":{"1":{"1280":{"event":{"button_double":{"value":{"press_type":"double","command_id":0,"args":[2,0,0,0]},"cluster_name":"IAS Zone"}}}}}}}
[2021-10-23 13:00:55][DEBUG] : Search event command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::event::button_double::press_type => double convert to double
[2021-10-23 13:00:55][DEBUG] : Search event command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::event::button_double::command_id => 0 convert to 0
[2021-10-23 13:00:55][DEBUG] : Search event command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::event::button_double::args => Array convert to 1
[2021-10-23 13:00:55][DEBUG] : {"devices":{"28:6d:97:00:01:12:59:ea":{"1":{"1280":{"cmd":{"1":{"value":"ZoneStatus.Alarm_1","cluster_name":"IAS Zone"},"1.1":{"value":"bitmap8.0","cluster_name":"IAS Zone"},"1.2":{"value":"0","cluster_name":"IAS Zone"},"1.3":{"value":"0","cluster_name":"IAS Zone"}}}}}}}
[2021-10-23 13:00:55][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1 => ZoneStatus.Alarm_1 convert to 1
[2021-10-23 13:00:55][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1.1 => bitmap8.0 convert to 0
[2021-10-23 13:00:55][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1.2 => 0 convert to 0
[2021-10-23 13:00:55][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1.3 => 0 convert to 0
[2021-10-23 13:00:55][DEBUG] : {"devices":{"28:6d:97:00:01:12:59:ea":{"1":{"1280":{"event":{"button_single":{"value":{"press_type":"single","command_id":0,"args":[1,0,0,0]},"cluster_name":"IAS Zone"}}}}}}}
[2021-10-23 13:00:55][DEBUG] : Search event command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::event::button_single::press_type => single convert to single
[2021-10-23 13:00:55][DEBUG] : Search event command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::event::button_single::command_id => 0 convert to 0
[2021-10-23 13:00:55][DEBUG] : Search event command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::event::button_single::args => Array convert to 1

Appui/Click Long
----------------
[2021-10-23 13:01:03][DEBUG] : {"devices":{"28:6d:97:00:01:12:59:ea":{"1":{"1280":{"cmd":{"1":{"value":"ZoneStatus.Alarm_2|Alarm_1","cluster_name":"IAS Zone"},"1.1":{"value":"bitmap8.0","cluster_name":"IAS Zone"},"1.2":{"value":"0","cluster_name":"IAS Zone"},"1.3":{"value":"0","cluster_name":"IAS Zone"}}}}}}}
[2021-10-23 13:01:03][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1 => ZoneStatus.Alarm_2|Alarm_1 convert to 1
[2021-10-23 13:01:03][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1.1 => bitmap8.0 convert to 0
[2021-10-23 13:01:03][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1.2 => 0 convert to 0
[2021-10-23 13:01:03][DEBUG] : Search command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::cmd::1.3 => 0 convert to 0
[2021-10-23 13:01:03][DEBUG] : {"devices":{"28:6d:97:00:01:12:59:ea":{"1":{"1280":{"event":{"button_hold":{"value":{"press_type":"hold","command_id":0,"args":[3,0,0,0]},"cluster_name":"IAS Zone"}}}}}}}
[2021-10-23 13:01:03][DEBUG] : Search event command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::event::button_hold::press_type => hold convert to hold
[2021-10-23 13:01:03][DEBUG] : Search event command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::event::button_hold::command_id => 0 convert to 0
[2021-10-23 13:01:03][DEBUG] : Search event command for 28:6d:97:00:01:12:59:ea logicalId : 1::1280::event::button_hold::args => Array convert to 1


Changement de thempérature
--------------------------
[2021-10-23 13:01:50][DEBUG] : {"devices":{"28:6d:97:00:01:12:59:ea":{"1":{"1026":[{"value":"2224","cluster_name":"Temperature Measurement"}]}}}}
[2021-10-23 13:01:50][DEBUG] : Search attribut for 28:6d:97:00:01:12:59:ea logicalId : 1::1026::0 => 2224 convert to 2224

Bonjour Je fais un Up sur le sujet.
Quelqu’un a-t-il des infos ?

Bonjour,

Plus d’un an après, j’ai été confronté au même problème suite à l’achat de ce bouton… donc pas de mise à jour officielle de la config de ce module apparemment.

Je partage donc la mienne, qui fonctionne :

{
    "name": "Samjin.button",
    "configuration": [],
    "commands": [
        {
            "logicalId": "1::1280::event",
            "name": "Etat",
            "type": "info",
            "subType": "string",
            "isHistorized": "0",
            "configuration": {
                "repeatEventManagement": "always"
            },
            "template": {
                "dashboard": "default",
                "mobile": "default"
            },
            "isVisible": "1"
        },
        {
            "logicalId": "1::1026::0",
            "generic_type": "TEMPERATURE",
            "name": "Température",
            "type": "info",
            "subType": "numeric",
            "isHistorized": "0",
            "unite": "°C",
            "configuration": {
                "calculValueOffset": "#value# \/ 100"
            },
            "template": {
                "dashboard": "default",
                "mobile": "default"
            },
            "isVisible": "1"
        }
    ],
    "ref": "Samjin.button"
}

Voici ce que ça donne pour les commandes :

image

Avec la commande Etat qui peut prendre les valeurs « button_single », « button_double » ou « button_hold » et sert également de déclencheur aux scénarios.

1 « J'aime »

Super ça marche ! Merci.
J’ai pu ressortir mon Button du fond de mon tiroir. J’étais bien désolé car je le trouve très mingon et accessoirement c’est utile qu’il donne la température pour gérer le chauffage de la pièce

Vous pouvez aussi essayer le nouveau #plugin-z2m (jeezigbee) qui remplace le #plugin-zigbee, et qui semble intégrer ce bouton listé sous sa référence smartthings