embyt / enocean-mqtt

Receives messages from an enOcean serial interface (USB) and provides selected messages to an MQTT broker.
GNU General Public License v3.0
42 stars 21 forks source link

Cannot find type in EEP #3

Closed ozett closed 5 years ago

ozett commented 5 years ago

i have a button and the enocean usb-receiver, but i am further unexperienced with enocean. i got the enocean-mqtt running, connection to mqtt,

but i guess my button is somehow "not learned in" or i dont know what it means "EEP-type" not known. guess it has to do with the enocean-lib, but i would be gladful for any hint or help to point me in the direction solving this.

😵 thanx...

root@eg-buero-olaf:/usr/src/enoceanfwd/enocean-mqtt# /usr/local/bin/enoceanmqtt
2018-11-14 15:11:59,644 INFO: Succesfully connected to MQTT broker.
2018-11-14 15:11:59,651 INFO: SerialCommunicator started
2018-11-14 15:11:59,654 WARNING: Replacing Packet.optional with default value.
2018-11-14 15:11:59,758 INFO: Sending packet
2018-11-14 15:11:59,761 DEBUG: 0x05 ['0x8'] [] OrderedDict()
2018-11-14 15:11:59,867 DEBUG: 0x02 ['0x0', '0xff', '0xd4', '0x99', '0x80'] ['0xa'] OrderedDict()
2018-11-14 15:11:59,869 INFO: got response packet: OK
2018-11-14 15:12:07,029 DEBUG: FE:F8:59:74->FF:FF:FF:FF (-61 dBm): 0x01 ['0xf6', '0x10', '0xfe', '0xf8', '0x59', '0x74', '0x30'] ['0x2', '0xff', '0xff', '0xff', '0xff', '0x3d', '0x0'] OrderedDict()
2018-11-14 15:12:07,032 INFO: received: FE:F8:59:74->FF:FF:FF:FF (-61 dBm): 0x01 ['0xf6', '0x10', '0xfe', '0xf8', '0x59', '0x74', '0x30'] ['0x2', '0xff', '0xff', '0xff', '0xff', '0x3d', '0x0'] OrderedDict()
2018-11-14 15:12:07,035 WARNING: Cannot find type in EEP!
2018-11-14 15:12:07,396 DEBUG: FE:F8:59:74->FF:FF:FF:FF (-61 dBm): 0x01 ['0xf6', '0x0', '0xfe', '0xf8', '0x59', '0x74', '0x20'] ['0x2', '0xff', '0xff', '0xff', '0xff', '0x3d', '0x0'] OrderedDict()
2018-11-14 15:12:07,399 INFO: received: FE:F8:59:74->FF:FF:FF:FF (-61 dBm): 0x01 ['0xf6', '0x0', '0xfe', '0xf8', '0x59', '0x74', '0x20'] ['0x2', '0xff', '0xff', '0xff', '0xff', '0x3d', '0x0'] OrderedDict()
2018-11-14 15:12:07,402 WARNING: Cannot find type in EEP!
2018-11-14 15:12:12,285 DEBUG: FE:F8:59:74->FF:FF:FF:FF (-76 dBm): 0x01 ['0xf6', '0x10', '0xfe', '0xf8', '0x59', '0x74', '0x30'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x4c', '0x0'] OrderedDict()
2018-11-14 15:12:12,287 INFO: received: FE:F8:59:74->FF:FF:FF:FF (-76 dBm): 0x01 ['0xf6', '0x10', '0xfe', '0xf8', '0x59', '0x74', '0x30'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x4c', '0x0'] OrderedDict()
2018-11-14 15:12:12,354 WARNING: Cannot find type in EEP!
2018-11-14 15:12:12,924 DEBUG: FE:F8:59:74->FF:FF:FF:FF (-74 dBm): 0x01 ['0xf6', '0x0', '0xfe', '0xf8', '0x59', '0x74', '0x20'] ['0x2', '0xff', '0xff', '0xff', '0xff', '0x4a', '0x0'] OrderedDict()
2018-11-14 15:12:12,927 INFO: received: FE:F8:59:74->FF:FF:FF:FF (-74 dBm): 0x01 ['0xf6', '0x0', '0xfe', '0xf8', '0x59', '0x74', '0x20'] ['0x2', '0xff', '0xff', '0xff', '0xff', '0x4a', '0x0'] OrderedDict()
2018-11-14 15:12:12,930 WARNING: Cannot find type in EEP!
2018-11-14 15:12:15,879 DEBUG: FE:F8:59:74->FF:FF:FF:FF (-68 dBm): 0x01 ['0xf6', '0x30', '0xfe', '0xf8', '0x59', '0x74', '0x30'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x44', '0x0'] OrderedDict()
2018-11-14 15:12:15,882 INFO: received: FE:F8:59:74->FF:FF:FF:FF (-68 dBm): 0x01 ['0xf6', '0x30', '0xfe', '0xf8', '0x59', '0x74', '0x30'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x44', '0x0'] OrderedDict()
2018-11-14 15:12:15,885 WARNING: Cannot find type in EEP!
2018-11-14 15:12:16,374 DEBUG: FE:F8:59:74->FF:FF:FF:FF (-70 dBm): 0x01 ['0xf6', '0x0', '0xfe', '0xf8', '0x59', '0x74', '0x20'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x46', '0x0'] OrderedDict()
2018-11-14 15:12:16,378 INFO: received: FE:F8:59:74->FF:FF:FF:FF (-70 dBm): 0x01 ['0xf6', '0x0', '0xfe', '0xf8', '0x59', '0x74', '0x20'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x46', '0x0'] OrderedDict()
2018-11-14 15:12:16,380 WARNING: Cannot find type in EEP! 

config:

[CONFIG]
#enocean_port    = /dev/enocean
enocean_port    = /dev/ttyUSB0
log_packets     = 1

mqtt_host       = 192.168.14.204
mqtt_port       = 1883
# the prefix is used for the mqtt value names; this is extended by the sensor name
mqtt_prefix     = enocean/
# optionally also set mqtt_user and mqtt_pwd

# all other sections define the sensors to monitor

[switch]
address     = 0xFEF85974
rorg        = 0xf6   # BS1
func        = 0x02
type        = 0x04
log_learn   = 1

[switch1]
address     = 0xfefee192
rorg        = 0xf6   # BS1
func        = 0x02
type        = 0x04
log_learn   = 1
romor commented 5 years ago

The file EEP.xml specifies the EnOcean profiles that are inpreted by the used Python EnOcean library. The supported switch profile is rorg = 0xf6 func = 0x02 type = 0x02

The profile with type = 0x04 is currently not supported. Are you sure this is correct? If so, you may want to add it there with a pull request or check whether the usage of type=0x02 is compatible.

ozett commented 5 years ago

thanks for help, do you think i can edit this eep.xml and just add a line with a 0x04-type-profile? without causing other issues?

than i would give it a try.. 😵

romor commented 5 years ago

Yes, adding a new profile to eep.xml should not have any side effects. Of course, you should check the EnOcean profile specifications on how this profile needs to be interpreted.

ozett commented 5 years ago

i thought i would be easier... 😞

i found two files (maybe an old install of enocean-mqtt, too.. 😕

root@eg-buero-olaf:/usr/src/enoceanfwd/enocean-mqtt# find / -name "EEP.xml"
/usr/local/lib/python2.7/dist-packages/enocean/protocol/EEP.xml
/usr/local/lib/python3.4/dist-packages/enocean-0.41-py3.4.egg/enocean/protocol/EEP.xml
root@eg-buero-olaf:/usr/src/enoceanfwd/enocean-mqtt#

than i doubled the first rocker-profile and exchanged id to 0x04, (in both EEP.xml) but that did not helped to get rid of the error, maybee my thoughts were to simple...

? maybe i have to learn-in the rocker first, but i dont know how.. ? maybe i my config is wrong?

image

still old error:

root@eg-buero-olaf:/usr/src/enoceanfwd/enocean-mqtt# /usr/local/bin/enoceanmqtt
2018-11-15 21:41:24,055 INFO: Succesfully connected to MQTT broker.
2018-11-15 21:41:24,061 INFO: SerialCommunicator started
2018-11-15 21:41:24,064 WARNING: Replacing Packet.optional with default value.
2018-11-15 21:41:24,170 INFO: Sending packet
2018-11-15 21:41:24,174 DEBUG: 0x05 ['0x8'] [] OrderedDict()
2018-11-15 21:41:24,280 DEBUG: 0x02 ['0x0', '0xff', '0xd4', '0x99', '0x80'] ['0xa'] OrderedDict()
2018-11-15 21:41:24,282 INFO: got response packet: OK
2018-11-15 21:41:26,525 DEBUG: FE:F8:59:74->FF:FF:FF:FF (-76 dBm): 0x01 ['0xf6', '0x10', '0xfe', '0xf8', '0x59', '0x74', '0x30'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x4c', '0x0'] OrderedDict()
2018-11-15 21:41:26,527 INFO: received: FE:F8:59:74->FF:FF:FF:FF (-76 dBm): 0x01 ['0xf6', '0x10', '0xfe', '0xf8', '0x59', '0x74', '0x30'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x4c', '0x0'] OrderedDict()
2018-11-15 21:41:26,531 WARNING: Cannot find type in EEP!
2018-11-15 21:41:26,780 DEBUG: FE:F8:59:74->FF:FF:FF:FF (-86 dBm): 0x01 ['0xf6', '0x0', '0xfe', '0xf8', '0x59', '0x74', '0x20'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x56', '0x0'] OrderedDict()
2018-11-15 21:41:26,783 INFO: received: FE:F8:59:74->FF:FF:FF:FF (-86 dBm): 0x01 ['0xf6', '0x0', '0xfe', '0xf8', '0x59', '0x74', '0x20'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x56', '0x0'] OrderedDict()
2018-11-15 21:41:26,786 WARNING: Cannot find type in EEP!
ozett commented 5 years ago

i took over the definition of the switch in the config. that was wrong.

it only had to change the type in the config, than i got it working...

thankx

image

image

romor commented 5 years ago

Thanks. I updated the sample config file.