Bonjour,
Suite à un soucis avec des prises nodon et le plugin enocean, j’essaye de comprendre pourquoi je n’arrive pas à piloter ces prises via le plugin alors qu’en les appairant avec un bouton ca marche très bien. J’en ai déduit que les trames envoyées par le plugin ne sont pas les bonnes.
[Probleme prise nodon enocean - #18 par Touf2638]
J’ai loggé l’envoi de la prise dans un premier temps puis l’interrupteur.
[2020-01-11 22:29:37][DEBUG] : Client connected to [127.0.0.1:37596]
[2020-01-11 22:29:37][DEBUG] : Message read from socket: {"apikey":"XXX","cmd":"send","dest":"050FAB3A","profile":{"func":"01","rorg":"d2","type":"0b"},"command":{"type":"switch","command":"1","IO":"0","OV":"100"}}
[2020-01-11 22:29:37][DEBUG] : Client disconnected from [127.0.0.1:37596]
[2020-01-11 22:29:37][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2020-01-11 22:29:37][DEBUG] : Received command from jeedom : send
[2020-01-11 22:29:37][DEBUG] : Send command
[2020-01-11 22:29:37][DEBUG] : {u'OV': 100, u'IO': 0} on command 1 210 1 11
[2020-01-11 22:29:37][DEBUG] : [85, 0, 9, 7, 1, 86, 210, 1, 0, 100, 255, 155, 134, 128, 0, 3, 5, 15, 171, 58, 255, 0, 89]
[2020-01-11 22:29:37][DEBUG] : [False, False, False, True]
[2020-01-11 22:29:37][DEBUG] : Last packet for this 05:0F:AB:3A was emited 279.927653074 seconds ago
[2020-01-11 22:29:37][INFO] : Sending packet
[2020-01-11 22:29:37][DEBUG] : FF:9B:86:80->05:0F:AB:3A (-255 dBm): 0x01 ['0xd2', '0x1', '0x0', '0x64', '0xff', '0x9b', '0x86', '0x80', '0x0'] ['0x3', '0x5', '0xf', '0xab', '0x3a', '0xff', '0x0'] OrderedDict([(u'CMD', {u'value': u'Command ID 1', u'description': u'Command indentifier', u'unit': u'', u'raw_value': 1}), (u'DV', {u'value': u'Switch to new output value', u'description': u'Dim value', u'unit': u'', u'raw_value': 0}), (u'IO', {u'value': u'Output channel 0 (to load)', u'description': u'I/O channel', u'unit': u'', u'raw_value': 0}), (u'OV', {u'value': u'Output value 100% or ON', u'description': u'Output value', u'unit': u'', u'raw_value': 100})])
[2020-01-11 22:29:37][INFO] : Sending packet
[2020-01-11 22:29:37][DEBUG] : FF:9B:86:80->05:0F:AB:3A (-255 dBm): 0x01 ['0xd2', '0x1', '0x0', '0x64', '0xff', '0x9b', '0x86', '0x80', '0x0'] ['0x3', '0x5', '0xf', '0xab', '0x3a', '0xff', '0x0'] OrderedDict([(u'CMD', {u'value': u'Command ID 1', u'description': u'Command indentifier', u'unit': u'', u'raw_value': 1}), (u'DV', {u'value': u'Switch to new output value', u'description': u'Dim value', u'unit': u'', u'raw_value': 0}), (u'IO', {u'value': u'Output channel 0 (to load)', u'description': u'I/O channel', u'unit': u'', u'raw_value': 0}), (u'OV', {u'value': u'Output value 100% or ON', u'description': u'Output value', u'unit': u'', u'raw_value': 100})])
[2020-01-11 22:29:37][INFO] : Sending packet
[2020-01-11 22:29:37][DEBUG] : FF:9B:86:80->05:0F:AB:3A (-255 dBm): 0x01 ['0xd2', '0x1', '0x0', '0x64', '0xff', '0x9b', '0x86', '0x80', '0x0'] ['0x3', '0x5', '0xf', '0xab', '0x3a', '0xff', '0x0'] OrderedDict([(u'CMD', {u'value': u'Command ID 1', u'description': u'Command indentifier', u'unit': u'', u'raw_value': 1}), (u'DV', {u'value': u'Switch to new output value', u'description': u'Dim value', u'unit': u'', u'raw_value': 0}), (u'IO', {u'value': u'Output channel 0 (to load)', u'description': u'I/O channel', u'unit': u'', u'raw_value': 0}), (u'OV', {u'value': u'Output value 100% or ON', u'description': u'Output value', u'unit': u'', u'raw_value': 100})])
[2020-01-11 22:29:37][DEBUG] : [85, 0, 1, 0, 2, 101, 0, 0]
[2020-01-11 22:29:37][DEBUG] : 0x02 ['0x0'] [] OrderedDict()
[2020-01-11 22:29:37][DEBUG] : [85, 0, 1, 0, 2, 101, 0, 0]
[2020-01-11 22:29:37][DEBUG] : 0x02 ['0x0'] [] OrderedDict()
[2020-01-11 22:29:37][DEBUG] : Receive response packet : 2
[2020-01-11 22:29:37][DEBUG] : Response is : OK
[2020-01-11 22:29:37][DEBUG] : Receive response packet : 2
[2020-01-11 22:29:37][DEBUG] : Response is : OK
[2020-01-11 22:29:37][DEBUG] : [85, 0, 1, 0, 2, 101, 0, 0]
[2020-01-11 22:29:37][DEBUG] : 0x02 ['0x0'] [] OrderedDict()
[2020-01-11 22:29:37][DEBUG] : Receive response packet : 2
[2020-01-11 22:29:37][DEBUG] : Response is : OK
[2020-01-11 22:31:02][DEBUG] : [85, 0, 7, 7, 1, 122, 246, 80, 0, 50, 181, 161, 48, 1, 255, 255, 255, 255, 80, 0, 24]
[2020-01-11 22:31:02][DEBUG] : 00:32:B5:A1->FF:FF:FF:FF (-80 dBm): 0x01 ['0xf6', '0x50', '0x0', '0x32', '0xb5', '0xa1', '0x30'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x50', '0x0'] OrderedDict()
[2020-01-11 22:31:02][DEBUG] : Message is repeated 0 times
[2020-01-11 22:31:02][DEBUG] : Parsing Packet
[2020-01-11 22:31:02][DEBUG] : Its a RPS message
[2020-01-11 22:31:02][DEBUG] : Decode data : {"repeat": "0", "dBm": "-80", "R1": {"value": "Button BI", "description": "Rocker 1st action", "unit": "", "raw_value": 2}, "R2": {"value": "Button AI", "description": "Rocker 2nd action", "unit": "", "raw_value": 0}, "rorg": "f6", "bt_4": "toggle", "EB": {"value": "pressed", "description": "Energy bow", "unit": "", "raw_value": 1}, "packet_type": "1", "func": "02", "T21": {"value": true, "description": "T21", "unit": "", "raw_value": 1}, "SA": {"value": "No 2nd action", "description": "2nd action", "unit": "", "raw_value": 0}, "type": "02", "id": "0032B5A1", "NU": {"value": true, "description": "NU", "unit": "", "raw_value": 1}, "manufacturer": "00"}
[2020-01-11 22:31:02][DEBUG] : Send to jeedom : {'devices': {'0032B5A1': {'repeat': '0', 'dBm': '-80', u'R1': {u'value': u'Button BI', u'description': u'Rocker 1st action', u'unit': u'', u'raw_value': 2}, u'R2': {u'value': u'Button AI', u'description': u'Rocker 2nd action', u'unit': u'', u'raw_value': 0}, 'rorg': u'f6', 'bt_4': 'toggle', u'EB': {u'value': u'pressed', u'description': u'Energy bow', u'unit': u'', u'raw_value': 1}, 'packet_type': '1', 'func': u'02', u'T21': {u'value': True, u'description': u'T21', u'unit': u'', u'raw_value': 1}, u'SA': {u'value': u'No 2nd action', u'description': u'2nd action', u'unit': u'', u'raw_value': 0}, 'type': u'02', 'id': '0032B5A1', u'NU': {u'value': True, u'description': u'NU', u'unit': u'', u'raw_value': 1}, 'manufacturer': '00'}}}
[2020-01-11 22:31:02][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-01-11 22:31:02][DEBUG] : http://127.0.0.1:80 "POST /plugins/openenocean/core/php/jeeOpenEnOcean.php?apikey=dtIcI5IiFdmEaDe3k1JSee3UpHA7dahO HTTP/1.1" 200 0
[2020-01-11 22:31:02][DEBUG] : [85, 0, 7, 7, 1, 122, 246, 0, 0, 50, 181, 161, 32, 1, 255, 255, 255, 255, 86, 0, 213]
[2020-01-11 22:31:02][DEBUG] : 00:32:B5:A1->FF:FF:FF:FF (-86 dBm): 0x01 ['0xf6', '0x0', '0x0', '0x32', '0xb5', '0xa1', '0x20'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x56', '0x0'] OrderedDict()
[2020-01-11 22:31:02][DEBUG] : Message is repeated 0 times
[2020-01-11 22:31:02][DEBUG] : Parsing Packet
[2020-01-11 22:31:02][DEBUG] : Its a RPS message
[2020-01-11 22:31:02][DEBUG] : Release button and module configured to ignore release so I pass
[2020-01-11 22:31:02][DEBUG] : Decode data : {"repeat": "0", "dBm": "-86", "R1": {"value": "Button AI", "description": "Rocker 1st action", "unit": "", "raw_value": 0}, "R2": {"value": "Button AI", "description": "Rocker 2nd action", "unit": "", "raw_value": 0}, "rorg": "f6", "EB": {"value": "released", "description": "Energy bow", "unit": "", "raw_value": 0}, "ignore": 1, "packet_type": "1", "func": "02", "T21": {"value": true, "description": "T21", "unit": "", "raw_value": 1}, "SA": {"value": "No 2nd action", "description": "2nd action", "unit": "", "raw_value": 0}, "type": "02", "id": "0032B5A1", "NU": {"value": false, "description": "NU", "unit": "", "raw_value": 0}, "manufacturer": "00"}
[2020-01-11 22:31:05][DEBUG] : [85, 0, 7, 7, 1, 122, 246, 112, 0, 50, 181, 161, 48, 1, 255, 255, 255, 255, 80, 0, 230]
[2020-01-11 22:31:05][DEBUG] : 00:32:B5:A1->FF:FF:FF:FF (-80 dBm): 0x01 ['0xf6', '0x70', '0x0', '0x32', '0xb5', '0xa1', '0x30'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x50', '0x0'] OrderedDict()
[2020-01-11 22:31:05][DEBUG] : Message is repeated 0 times
[2020-01-11 22:31:05][DEBUG] : Parsing Packet
[2020-01-11 22:31:05][DEBUG] : Its a RPS message
[2020-01-11 22:31:05][DEBUG] : Decode data : {"repeat": "0", "dBm": "-80", "R1": {"value": "Button BO", "description": "Rocker 1st action", "unit": "", "raw_value": 3}, "R2": {"value": "Button AI", "description": "Rocker 2nd action", "unit": "", "raw_value": 0}, "rorg": "f6", "bt_2": "toggle", "EB": {"value": "pressed", "description": "Energy bow", "unit": "", "raw_value": 1}, "packet_type": "1", "func": "02", "T21": {"value": true, "description": "T21", "unit": "", "raw_value": 1}, "SA": {"value": "No 2nd action", "description": "2nd action", "unit": "", "raw_value": 0}, "type": "02", "id": "0032B5A1", "NU": {"value": true, "description": "NU", "unit": "", "raw_value": 1}, "manufacturer": "00"}
[2020-01-11 22:31:05][DEBUG] : Send to jeedom : {'devices': {'0032B5A1': {'repeat': '0', 'dBm': '-80', u'R1': {u'value': u'Button BO', u'description': u'Rocker 1st action', u'unit': u'', u'raw_value': 3}, u'R2': {u'value': u'Button AI', u'description': u'Rocker 2nd action', u'unit': u'', u'raw_value': 0}, 'rorg': u'f6', 'bt_2': 'toggle', u'EB': {u'value': u'pressed', u'description': u'Energy bow', u'unit': u'', u'raw_value': 1}, 'packet_type': '1', 'func': u'02', u'T21': {u'value': True, u'description': u'T21', u'unit': u'', u'raw_value': 1}, u'SA': {u'value': u'No 2nd action', u'description': u'2nd action', u'unit': u'', u'raw_value': 0}, 'type': u'02', 'id': '0032B5A1', u'NU': {u'value': True, u'description': u'NU', u'unit': u'', u'raw_value': 1}, 'manufacturer': '00'}}}
[2020-01-11 22:31:05][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-01-11 22:31:05][DEBUG] : http://127.0.0.1:80 "POST /plugins/openenocean/core/php/jeeOpenEnOcean.php?apikey=dtIcI5IiFdmEaDe3k1JSee3UpHA7dahO HTTP/1.1" 200 0
[2020-01-11 22:31:05][DEBUG] : [85, 0, 9, 7, 1, 86, 210, 4, 96, 228, 5, 3, 237, 171, 0, 1, 255, 255, 255, 255, 91, 0, 243]
[2020-01-11 22:31:05][DEBUG] : [False, True, False, False]
[2020-01-11 22:31:05][DEBUG] : 05:03:ED:AB->FF:FF:FF:FF (-91 dBm): 0x01 ['0xd2', '0x4', '0x60', '0xe4', '0x5', '0x3', '0xed', '0xab', '0x0'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x5b', '0x0'] OrderedDict()
[2020-01-11 22:31:05][DEBUG] : Message is repeated 0 times
[2020-01-11 22:31:05][DEBUG] : Its a VLD message with command : 4
[2020-01-11 22:31:05][DEBUG] : Parsing Packet
[2020-01-11 22:31:05][DEBUG] : Its a VLD message
[2020-01-11 22:31:05][DEBUG] : Decode data : {"EL": {"value": "Error level not supported", "description": "Error level", "unit": "", "raw_value": 3}, "repeat": "0", "dBm": "-91", "PFD": {"value": "Power Failure Detection not detected/not supported/disabled", "description": "Power Failure Detection", "unit": "", "raw_value": 0}, "rorg": "d2", "LC": {"value": "Local control enabled", "description": "Local control", "unit": "", "raw_value": 1}, "CMD": {"value": "Command ID 4", "description": "Command indentifier", "unit": "", "raw_value": 4}, "OC": {"value": "Over current switch off: ready / not supported", "description": "Over current switch off", "unit": "", "raw_value": 0}, "channel0-OV": 100, "IO": {"value": "Output channel 0 (to load)", "description": "I/O channel", "unit": "", "raw_value": 0}, "packet_type": "1", "func": "01", "OV": {"value": "Output value 100% or ON", "description": "Output value", "unit": "", "raw_value": 100}, "PF": {"value": "Power Failure Detection disabled/not supported", "description": "Power Failure", "unit": "", "raw_value": 0}, "type": "0f", "id": "0503EDAB", "manufacturer": "00"}
[2020-01-11 22:31:05][DEBUG] : [85, 0, 7, 7, 1, 122, 246, 0, 0, 50, 181, 161, 32, 1, 255, 255, 255, 255, 74, 0, 126]
[2020-01-11 22:31:05][DEBUG] : 00:32:B5:A1->FF:FF:FF:FF (-74 dBm): 0x01 ['0xf6', '0x0', '0x0', '0x32', '0xb5', '0xa1', '0x20'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x4a', '0x0'] OrderedDict()
[2020-01-11 22:31:05][DEBUG] : Message is repeated 0 times
[2020-01-11 22:31:05][DEBUG] : Parsing Packet
[2020-01-11 22:31:05][DEBUG] : Its a RPS message
[2020-01-11 22:31:05][DEBUG] : Release button and module configured to ignore release so I pass
[2020-01-11 22:31:05][DEBUG] : Decode data : {"repeat": "0", "dBm": "-74", "R1": {"value": "Button AI", "description": "Rocker 1st action", "unit": "", "raw_value": 0}, "R2": {"value": "Button AI", "description": "Rocker 2nd action", "unit": "", "raw_value": 0}, "rorg": "f6", "EB": {"value": "released", "description": "Energy bow", "unit": "", "raw_value": 0}, "ignore": 1, "packet_type": "1", "func": "02", "T21": {"value": true, "description": "T21", "unit": "", "raw_value": 1}, "SA": {"value": "No 2nd action", "description": "2nd action", "unit": "", "raw_value": 0}, "type": "02", "id": "0032B5A1", "NU": {"value": false, "description": "NU", "unit": "", "raw_value": 0}, "manufacturer": "00"}
[2020-01-11 22:31:05][DEBUG] : Send to jeedom : {'devices': {'0503EDAB': {u'EL': {u'value': u'Error level not supported', u'description': u'Error level', u'unit': u'', u'raw_value': 3}, 'repeat': '0', 'dBm': '-91', u'PFD': {u'value': u'Power Failure Detection not detected/not supported/disabled', u'description': u'Power Failure Detection', u'unit': u'', u'raw_value': 0}, 'rorg': u'd2', u'LC': {u'value': u'Local control enabled', u'description': u'Local control', u'unit': u'', u'raw_value': 1}, u'CMD': {u'value': u'Command ID 4', u'description': u'Command indentifier', u'unit': u'', u'raw_value': 4}, u'OC': {u'value': u'Over current switch off: ready / not supported', u'description': u'Over current switch off', u'unit': u'', u'raw_value': 0}, 'channel0-OV': 100, u'IO': {u'value': u'Output channel 0 (to load)', u'description': u'I/O channel', u'unit': u'', u'raw_value': 0}, 'packet_type': '1', 'func': u'01', u'OV': {u'value': u'Output value 100% or ON', u'description': u'Output value', u'unit': u'', u'raw_value': 100}, u'PF': {u'value': u'Power Failure Detection disabled/not supported', u'description': u'Power Failure', u'unit': u'', u'raw_value': 0}, 'type': u'0f', 'id': '0503EDAB', 'manufacturer': '00'}}}
[2020-01-11 22:31:05][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-01-11 22:31:05]
Je vois que dans la configuration de la commande de la prise, j’ai par exemple:
type:switch,command:1,IO:0,OV:100
J’essaye de comprendre à quoi cela correspond. Le OV:100 c’est a valeur mais le reste ? IO:0 ? command:1 ?
Merci