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

A5-13-02 telegrams are interpreted as A5-13-01 telegrams #38

Closed t-ice closed 1 year ago

t-ice commented 1 year ago

Hello,

I'm using a FWS61 in combination with a multisensor MS. The EEP profiles a5-13-01 and a5-13-02 are supported on the same address. The identifier can be used to distinguish. Currently, A5-13-02 telegrams are interpreted as A5-13-01 telegrams (see log). Is it possible to get the data published as SNW, SNS, SNE... for identifier 2?

I tried as suggested to set command = ID, but this didn't work, see:

DEBUG: Created sensor: {'name': 'enocean2mqtt/Wetterstation', 'address': 94295962, 'rorg': 165, 'func': 19, 'type': 1, 'command': 'ID'}
...
DEBUG: 05:9E:D7:9A->FF:FF:FF:FF (-70 dBm): 0x01 ['0xa5', '0x0', '0x0', '0x0', '0x28', '0x5', '0x9e', '0xd7', '0x9a', '0x0'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x46', '0x0'] OrderedDict()
INFO: received: 05:9E:D7:9A->FF:FF:FF:FF (-70 dBm): 0x01 ['0xa5', '0x0', '0x0', '0x0', '0x28', '0x5', '0x9e', '0xd7', '0x9a', '0x0'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x46', '0x0'] OrderedDict()
DEBUG: enocean2mqtt/Wetterstation: DWS (Dawn sensor)=0.0 lx
DEBUG: enocean2mqtt/Wetterstation: TMP (Temperature)=-40.0 °C
DEBUG: enocean2mqtt/Wetterstation: WND (Wind speed)=0.0 m/s
DEBUG: enocean2mqtt/Wetterstation: ID (Identifier)=Identifier 2 
DEBUG: enocean2mqtt/Wetterstation: DN (Day / Night)=Day 
DEBUG: enocean2mqtt/Wetterstation: RAN (Rain Indication)=No Rain 
DEBUG: enocean2mqtt/Wetterstation: Sent MQTT: {"RSSI": -70, "DWS": 0.0, "TMP": -40.0, "WND": 0.0, "ID": 2, "DN": 0, "RAN": 0}
DEBUG: Sending PUBLISH (d0, q0, r1, m285), 'b'enocean2mqtt/Wetterstation'', ... (79 bytes)

Further, I tried also command = CMD, see:

Created sensor: {'name': 'enocean2mqtt/Wetterstation', 'address': 94295962, 'rorg': 165, 'func': 19, 'type': 1, 'command': 'CMD'}
...
DEBUG: 05:9E:D7:9A->FF:FF:FF:FF (-70 dBm): 0x01 ['0xa5', '0x0', '0x0', '0x0', '0x28', '0x5', '0x9e', '0xd7', '0x9a', '0x0'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x46', '0x0'] OrderedDict()
INFO: received: 05:9E:D7:9A->FF:FF:FF:FF (-70 dBm): 0x01 ['0xa5', '0x0', '0x0', '0x0', '0x28', '0x5', '0x9e', '0xd7', '0x9a', '0x0'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x46', '0x0'] OrderedDict()
DEBUG: enocean2mqtt/Wetterstation: DWS (Dawn sensor)=0.0 lx
DEBUG: enocean2mqtt/Wetterstation: TMP (Temperature)=-40.0 °C
DEBUG: enocean2mqtt/Wetterstation: WND (Wind speed)=0.0 m/s
DEBUG: enocean2mqtt/Wetterstation: ID (Identifier)=Identifier 2 
DEBUG: enocean2mqtt/Wetterstation: DN (Day / Night)=Day 
DEBUG: enocean2mqtt/Wetterstation: RAN (Rain Indication)=No Rain 
DEBUG: enocean2mqtt/Wetterstation: Sent MQTT: {"RSSI": -70, "DWS": 0.0, "TMP": -40.0, "WND": 0.0, "ID": 2, "DN": 0, "RAN": 0}
DEBUG: Sending PUBLISH (d0, q0, r1, m288), 'b'enocean2mqtt/Wetterstation'', ... (79 bytes)
mak-gitdev commented 1 year ago

This is not an issue, support for A5-13-02 as well as support for A5-13-01 with ID2 were not available. Version 0.1.24 added support for both and others EEP.