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

support TCP-linked transceivers #130

Open tostmann opened 5 months ago

tostmann commented 5 months ago

Hi!

I developed an USB stick with TCM515 & ESP32 called EUL - so it is possible to access the Enocean transceiver over TCP:

So I've added some code to support this device. Currently its deciding on the "enocean_port" if TCP or serial linkage. This might be a problem within your HA-Config page as it is only showing tty-devices.

Thanks for yr good work!

mak-gitdev commented 5 months ago

Hi @tostmann,

Thanks for wanting to contribute to this project and sorry for the quite late reply as I've been quite busy work wise. Also very good job done for your board, really interesting and this opens up new possibilities :+1:

I built this project on top of @romor's enocean-mqtt and keep contribute there for everything related to the EnOcean protocol. So I think your contribution should be integrated there and that would definitely be a really nice addition.

You can have a look at that picture to better understand the layers composing my project.

So simply make a fork of enocean-mqtt and report your changes there. It should be straightforward. We will then discuss there with @romor.

Then once integrated, we will see together how to integrate it in my project. It will be easy. Do not hesitate if you have any question.

commentsonly commented 3 months ago

but it's mentioned that the enocean-mqtt built upon the python enocean lib which if I'm not too wrong does have code for 2 communicators, a serial one aswell as a tcp one. Looks as if the second communicator got lost somehow from python enocean => enocean-mqtt => ha_enoceanmqtt :-)

Oktonaut commented 3 months ago

Only the serial interfaces are available for selection in the configuration. How do you have to proceed to be able to use the EUL stick as a TCP bridge? And can several TCPs be used in parallel, or at least one serial locally and one TCP remotely (second building)? Or is TCP currently still not possible?