Giter Club home page Giter Club logo

enocean_esp8266_gateway's Introduction

EnOcean_ESP8266_Gateway

Enocean Gateway 1to1 Telegram to TCP over WiFi, inkl OTA and Wifi Manager

I wasn't satisfied with the gateways to buy. In my opinion, they misunderstood the word gateway or simply want a dependency on their products and implementations.

In my opinion an Enocean to Wifi gateway has to fulfill one requirement. Pass on the telegrams 1 to 1 so that the telegrams can be disassembled and interpreted no matter where.

Also from the idea with a Raspberry was insufficient for my purpose. Why should I use a "power guzzler" like a Rapsberry for a Gateway function, for a small room this is the solution. A gateway and immediately a e.g. node red,fhem or ipsymcon server on one device. With a house it gets stupider if you have to install several raspberry just to convert the telegrams to wifi (yes the repeater function of enocean IS NOT the solution).

You can use the Enocean Telegram anywhere. Establish a TCP connection on port 9999 - and for the diagnostic port 9998.

The only thing my Gateway checks out, is it an enocean telegram with the start preffix 0x55 and is the CRC correct. If true send the whole telegram or if false reject it.

I use it with Node-Red. A description and how I work with the single EEPs in Node-Red will be available later on.

OTA & Wifi Manager has been implemented from https://github.com/Pedroalbuquerque/ESPBASE . Thanks to them! With it you can easily configure the wifi connection to your router and don't have to hardcode it. OTA is also possible - which can be easily installed via the wifi in case of updates.

I also have my own development of a hardware gateway with the Enocean Shield for the Raspberry. Check out the https://github.com/Techserv-krY/EnOcean_ESP8266_Gateway/wiki

enocean_esp8266_gateway's People

Contributors

techserv-kry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

enocean_esp8266_gateway's Issues

No response from Serial

Hi,

sorry for being a noob but I can't get your code to work with the OpenHab EnOcean binding but I'm not sure where to go from here...

When I'm trying to connect to the gateway from Openhab I see the following TRACE log:

2021-03-09 19:46:02.987 [INFO ] [ernal.transceiver.EnOceanTransceiver] - EnOceanSerialTransceiver initialized
2021-03-09 19:46:02.989 [DEBUG] [nternal.handler.EnOceanBridgeHandler] - request base id
2021-03-09 19:46:02.993 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - Enqueue new send request with ESP3 type COMMON_COMMAND with callback
2021-03-09 19:46:02.995 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - Sending data, type COMMON_COMMAND, payload 08
2021-03-09 19:46:02.998 [TRACE] [ernal.transceiver.EnOceanTransceiver] - Sending raw data: 5500010005700838
2021-03-09 19:46:02.999 [DEBUG] [nternal.handler.EnOceanBridgeHandler] - request version info
2021-03-09 19:46:03.001 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - Enqueue new send request with ESP3 type COMMON_COMMAND with callback
2021-03-09 19:46:03.250 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - Sending data, type COMMON_COMMAND, payload 03
2021-03-09 19:46:03.252 [TRACE] [ernal.transceiver.EnOceanTransceiver] - Sending raw data: 5500010005700309
2021-03-09 19:47:03.002 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - shutting down transceiver
2021-03-09 19:47:03.004 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - Interrupt rx Thread
2021-03-09 19:47:03.007 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - Closing serial output stream
2021-03-09 19:47:03.009 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - Closeing serial input stream
2021-03-09 19:47:03.011 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - Closing serial port

On the diag port I see:

Client connected
Net > Ser:: FF FB 00 
Net > Ser:: FF FD 00 FF FB 03 FF FD 03 FF FB 2C 55 00 01 00 05 70 08 38 
Net > Ser:: 55 00 01 00 05 70 03 09

and nothing else until the OpenHab binding times out. Could you maybe give me a hint as to where I could go from here in terms of debugging? Thank you!

collaboration request

nice project!

i tried once to connect an enocean shield to an espruino and did not succeed... i wonder how and where SERIAL_8N1 is defined in your code?

I may also point you to my enocean project: https://github.com/enocean-js/enocean-js#readme

it's an attempt at implementing the enocean protocol in javascript. there is a transcoder to encode and decode telegrams. Besides a few bugs, it supports all EEPs and it runs in node.js and the browser. so you can pass it buffers or string from your gateway and get the decoded info. even without node-red...
as well as passing it some json data as info and it'll return strings or buffers you can send to your gateway to send out to enocean devices.

there is also a node-red node using this: https://github.com/enocean-js/enocean-js/tree/master/packages/node-red-contrib-enocean

so you might be able to just pass the messages you get from your gateway and pass them to the actor node. that will handle teach in and teach out, including bidirectional teach in of UTE devices with teach in responses...

we might work together to integrate your gateway into the node-red enocean project i.e. make the nodes compatible with the content of the messages from/to your device.
you might want to join us on slack https://join.slack.com/t/enocean-js/shared_invite/enQtNTE0MzU2OTE1ODc2LTgzYTdhNDJkZWE3ZDk1MzVmYzk0NzcwZGVkMjNiMzg3MTU2MGNlNjEwYWVjNWNjYTcwZTNiOTdkZjk0NmYyOTU

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.