mak-gitdev / HA_enoceanmqtt

Home Assistant wrapper for enocean-mqtt (https://github.com/embyt/enocean-mqtt)
GNU General Public License v3.0
54 stars 14 forks source link

Nodon SIN-2-RS-01 EEP D2-05-00 not working #140

Closed buchner1987 closed 3 months ago

buchner1987 commented 3 months ago

The problem

Hi Guys,

i use an Nodon SIN-2-RS-01 with the EEP Profile D2-05-00. With FHEM i have no issues to controle the shutter but with HA_EnOceanMQTT addon it is not working.

Here the debug with sending from the addon:

024-04-30 20:54:07,469 DEBUG: Received PINGRESP 2024-04-30 20:55:02,129 DEBUG: Received PUBLISH (d0, q0, r0, m0), 'enoceanmqtt/shutter/req', ... (82 bytes) 2024-04-30 20:55:02,130 DEBUG: Got MQTT message: enoceanmqtt/shutter/req 2024-04-30 20:55:02,130 DEBUG: enoceanmqtt/shutter: req={'CMD': 1, 'POS': 100, 'ANG': 127, 'REPO': 0, 'LOCK': 0, 'CHN': 0} 2024-04-30 20:55:02,130 DEBUG: Trigger message to: enoceanmqtt/shutter 2024-04-30 20:55:02,130 DEBUG: Retrieved command id from MQTT message: 0x1 2024-04-30 20:55:02,131 DEBUG: sensor data: {'CMD': 1, 'POS': 100, 'ANG': 127, 'REPO': 0, 'LOCK': 0, 'CHN': 0} 2024-04-30 20:55:02,132 INFO: sending: FF:C3:71:00->05:0E:D3:52 (-255 dBm): 0x01 ['0xd2', '0x64', '0x7f', '0x0', '0x1', '0xff', '0xc3', '0x71', '0x0', '0x0'] ['0x3', '0x5', '0xe', '0xd3', '0x52', '0xff', '0x0'] OrderedDict([('POS', {'description': 'Vertical position', 'unit': '', 'value': 'Output position 100%', 'raw_value': 100}), ('ANG', {'description': 'Rotation angle', 'unit': '', 'value': 'Do not change', 'raw_value': 127}), ('REPO', {'description': 'Repositioning', 'unit': '', 'value': 'Go directly to POS/ANG', 'raw_value': 0}), ('LOCK', {'description': 'Locking modes', 'unit': '', 'value': 'Do not change', 'raw_value': 0}), ('CHN', {'description': 'Channel', 'unit': '', 'value': 'Channel 1', 'raw_value': 0}), ('CMD', {'description': 'Command Id', 'unit': '', 'value': 'Command ID 1', 'raw_value': 1})]) 2024-04-30 20:55:02,132 DEBUG: Clearing data buffer. 2024-04-30 20:55:02,191 INFO: Sending packet 2024-04-30 20:55:02,191 DEBUG: FF:C3:71:00->05:0E:D3:52 (-255 dBm): 0x01 ['0xd2', '0x64', '0x7f', '0x0', '0x1', '0xff', '0xc3', '0x71', '0x0', '0x0'] ['0x3', '0x5', '0xe', '0xd3', '0x52', '0xff', '0x0'] OrderedDict([('POS', {'description': 'Vertical position', 'unit': '', 'value': 'Output position 100%', 'raw_value': 100}), ('ANG', {'description': 'Rotation angle', 'unit': '', 'value': 'Do not change', 'raw_value': 127}), ('REPO', {'description': 'Repositioning', 'unit': '', 'value': 'Go directly to POS/ANG', 'raw_value': 0}), ('LOCK', {'description': 'Locking modes', 'unit': '', 'value': 'Do not change', 'raw_value': 0}), ('CHN', {'description': 'Channel', 'unit': '', 'value': 'Channel 1', 'raw_value': 0}), ('CMD', {'description': 'Command Id', 'unit': '', 'value': 'Command ID 1', 'raw_value': 1})]) 2024-04-30 20:55:02,236 DEBUG: 0x02 ['0x0'] [] OrderedDict() 2024-04-30 20:55:02,236 INFO: got response packet: OK 2024-04-30 20:55:02,236 DEBUG: 0x04 ['0x8'] [] OrderedDict() 2024-04-30 20:55:02,236 INFO: got non-RF packet: 0x04 ['0x8'] [] OrderedDict()

and here is the debug when FHEM sends the signal:

2024-04-30 20:56:55,078 DEBUG: FF:FA:41:82->05:0E:D3:52 (-37 dBm): 0x01 ['0xd2', '0x64', '0x7f', '0x0', '0xf1', '0xff', '0xfa', '0x41', '0x82', '0x80'] ['0x1', '0x5', '0xe', '0xd3', '0x52', '0x25', '0x0'] OrderedDict() 2024-04-30 20:56:55,079 INFO: unknown sensor: FF:FA:41:82 2024-04-30 20:56:55,195 DEBUG: 05:0E:D3:52->FF:FF:FF:FF (-56 dBm): 0x01 ['0xd2', '0x0', '0x0', '0x0', '0x4', '0x5', '0xe', '0xd3', '0x52', '0x0'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x38', '0x0'] OrderedDict() 2024-04-30 20:56:55,196 DEBUG: Retrieved command id from packet: 0x4 2024-04-30 20:56:55,196 DEBUG: enoceanmqtt/shutter: POS (Current vertical position)=Output position 0% 2024-04-30 20:56:55,196 DEBUG: enoceanmqtt/shutter: ANG (Current rotation angle)=Output angle 0% 2024-04-30 20:56:55,196 DEBUG: enoceanmqtt/shutter: LOCK (Current locking mode)=Normal (no lock) 2024-04-30 20:56:55,197 DEBUG: enoceanmqtt/shutter: CHN (Channel)=Channel 1 2024-04-30 20:56:55,197 DEBUG: enoceanmqtt/shutter: CMD (Command Id)=Command ID 4 2024-04-30 20:56:55,197 DEBUG: Sending PUBLISH (d0, q0, r1, m21), 'b'enoceanmqtt/shutter'', ... (55 bytes) 2024-04-30 20:56:55,197 DEBUG: enoceanmqtt/shutter/CMD4: Sent MQTT: {"DATE": "2024-04-30T20:56:55.195799", "POS": 0, "ANG": 0, "LOCK": 0, "CHN": 0} 2024-04-30 20:56:55,197 DEBUG: Sending PUBLISH (d0, q0, r1, m22), 'b'enoceanmqtt/shutter/CMD4'', ... (81 bytes)

i want change from FHEM to HA

Best Regards Thomas

What type of installation are you running?

Addon

What version of HA_enoceanmqtt has the issue?

12.2

What was the last working version of HA_enoceanmqtt?

No response

What type of Home Assitant installation are you running?

Home Assistant OS

Anything in the logs that might be useful to solve the issue? (Strongly recommended if applicable)

024-04-30 20:54:07,469 DEBUG: Received PINGRESP
2024-04-30 20:55:02,129 DEBUG: Received PUBLISH (d0, q0, r0, m0), 'enoceanmqtt/shutter/req', ...  (82 bytes)
2024-04-30 20:55:02,130 DEBUG: Got MQTT message: enoceanmqtt/shutter/req
2024-04-30 20:55:02,130 DEBUG: enoceanmqtt/shutter: req={'CMD': 1, 'POS': 100, 'ANG': 127, 'REPO': 0, 'LOCK': 0, 'CHN': 0}
2024-04-30 20:55:02,130 DEBUG: Trigger message to: enoceanmqtt/shutter
2024-04-30 20:55:02,130 DEBUG: Retrieved command id from MQTT message: 0x1
2024-04-30 20:55:02,131 DEBUG: sensor data: {'CMD': 1, 'POS': 100, 'ANG': 127, 'REPO': 0, 'LOCK': 0, 'CHN': 0}
2024-04-30 20:55:02,132 INFO: sending: FF:C3:71:00->05:0E:D3:52 (-255 dBm): 0x01 ['0xd2', '0x64', '0x7f', '0x0', '0x1', '0xff', '0xc3', '0x71', '0x0', '0x0'] ['0x3', '0x5', '0xe', '0xd3', '0x52', '0xff', '0x0'] OrderedDict([('POS', {'description': 'Vertical position', 'unit': '', 'value': 'Output position 100%', 'raw_value': 100}), ('ANG', {'description': 'Rotation angle', 'unit': '', 'value': 'Do not change', 'raw_value': 127}), ('REPO', {'description': 'Repositioning', 'unit': '', 'value': 'Go directly to POS/ANG', 'raw_value': 0}), ('LOCK', {'description': 'Locking modes', 'unit': '', 'value': 'Do not change', 'raw_value': 0}), ('CHN', {'description': 'Channel', 'unit': '', 'value': 'Channel 1', 'raw_value': 0}), ('CMD', {'description': 'Command Id', 'unit': '', 'value': 'Command ID 1', 'raw_value': 1})])
2024-04-30 20:55:02,132 DEBUG: Clearing data buffer.
2024-04-30 20:55:02,191 INFO: Sending packet
2024-04-30 20:55:02,191 DEBUG: FF:C3:71:00->05:0E:D3:52 (-255 dBm): 0x01 ['0xd2', '0x64', '0x7f', '0x0', '0x1', '0xff', '0xc3', '0x71', '0x0', '0x0'] ['0x3', '0x5', '0xe', '0xd3', '0x52', '0xff', '0x0'] OrderedDict([('POS', {'description': 'Vertical position', 'unit': '', 'value': 'Output position 100%', 'raw_value': 100}), ('ANG', {'description': 'Rotation angle', 'unit': '', 'value': 'Do not change', 'raw_value': 127}), ('REPO', {'description': 'Repositioning', 'unit': '', 'value': 'Go directly to POS/ANG', 'raw_value': 0}), ('LOCK', {'description': 'Locking modes', 'unit': '', 'value': 'Do not change', 'raw_value': 0}), ('CHN', {'description': 'Channel', 'unit': '', 'value': 'Channel 1', 'raw_value': 0}), ('CMD', {'description': 'Command Id', 'unit': '', 'value': 'Command ID 1', 'raw_value': 1})])
2024-04-30 20:55:02,236 DEBUG: 0x02 ['0x0'] [] OrderedDict()
2024-04-30 20:55:02,236 INFO: got response packet: OK
2024-04-30 20:55:02,236 DEBUG: 0x04 ['0x8'] [] OrderedDict()
2024-04-30 20:55:02,236 INFO: got non-RF packet: 0x04 ['0x8'] [] OrderedDict()

Additional information

FHEM signal:

2024-04-30 20:56:55,078 DEBUG: FF:FA:41:82->05:0E:D3:52 (-37 dBm): 0x01 ['0xd2', '0x64', '0x7f', '0x0', '0xf1', '0xff', '0xfa', '0x41', '0x82', '0x80'] ['0x1', '0x5', '0xe', '0xd3', '0x52', '0x25', '0x0'] OrderedDict() 2024-04-30 20:56:55,079 INFO: unknown sensor: FF:FA:41:82 2024-04-30 20:56:55,195 DEBUG: 05:0E:D3:52->FF:FF:FF:FF (-56 dBm): 0x01 ['0xd2', '0x0', '0x0', '0x0', '0x4', '0x5', '0xe', '0xd3', '0x52', '0x0'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x38', '0x0'] OrderedDict() 2024-04-30 20:56:55,196 DEBUG: Retrieved command id from packet: 0x4 2024-04-30 20:56:55,196 DEBUG: enoceanmqtt/shutter: POS (Current vertical position)=Output position 0% 2024-04-30 20:56:55,196 DEBUG: enoceanmqtt/shutter: ANG (Current rotation angle)=Output angle 0% 2024-04-30 20:56:55,196 DEBUG: enoceanmqtt/shutter: LOCK (Current locking mode)=Normal (no lock) 2024-04-30 20:56:55,197 DEBUG: enoceanmqtt/shutter: CHN (Channel)=Channel 1 2024-04-30 20:56:55,197 DEBUG: enoceanmqtt/shutter: CMD (Command Id)=Command ID 4 2024-04-30 20:56:55,197 DEBUG: Sending PUBLISH (d0, q0, r1, m21), 'b'enoceanmqtt/shutter'', ... (55 bytes) 2024-04-30 20:56:55,197 DEBUG: enoceanmqtt/shutter/CMD4: Sent MQTT: {"DATE": "2024-04-30T20:56:55.195799", "POS": 0, "ANG": 0, "LOCK": 0, "CHN": 0} 2024-04-30 20:56:55,197 DEBUG: Sending PUBLISH (d0, q0, r1, m22), 'b'enoceanmqtt/shutter/CMD4'', ... (81 bytes)

buchner1987 commented 3 months ago

Sorry i have found my issue. It was not correctly paired.