New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The KNX IP Protocol #307
Comments
This feels like something that would best be integrated directly into Home Assistant. How would you see this working with esphome? |
KNX is one of the most common protocols for commercial and domestic building automation. |
@dcec Yes, that might be true - but please also explain why this would specifically be required in ESPHome directly as @brandond asked. With these things it's probably a lot more useful to do all KNX stuff in Home Assistant (as that will always be more powerful and feature-rich than ESPHome could ever implement KNX). ESPHome is not supposed to be used on its own - it works best with HA by its side. |
for example using esp32 for send xiaomi_mijia sensor data on knx network without Home Assistant |
@OttoWinter With knx you can communicate between esphome nodes This method allow us to control any KNX node in the network. Tasmota can turn a light on which is linked to esphome |
Hi I use knx on tasmota without any broker and would be useful to do the same on esphome. I can deploy a totally autonomuos automation |
I would like this feature as well as it, like already mentioned, will allow me to improve the robustness of my setup by having ESPHome nodes interact directly with KNX (e.g. to provide the other KNX components with sensor information) as a first step for automation in a new build I'm planning. |
This is incredibly useful as a fallback when home assistant is unavailable ea. When there is a update or home assistant falls to start for some reason. |
Hi there, I wrote a component, that is able to communicate with KNX (twisted pair) via esp32 (tested by me). For those who want to play around : code is available here. The esphome.yaml looks like this:
This was tested using "Siemens UP117/12 Bus Coupler" and "Wemos LOLIN D32 Pro" and by sending commands via ETS (by using knx ip interface). Thanks, |
I would argue that this issue is not closed since the external component only implements KNX TP but the issue is about KNX IP protocol. KNX IP does not require additional hardware (bus coupler) as it communicates directly over IP protocol (WiFi, Ethernet). |
I agree with this argument, but very appreciate the excellent work done by @fxmike08 👍👍 |
I found this issues because I would like to use the new Feedback Cover with sensors for Open/Closed directly on the esp and KNX IP for KNX relays to switch open/closes actions on the door motor. |
@fxmike08 I really appreciate your component. Is there any chance to get some more configuration examples, eg. for sending telegrams? |
Hi Boris, You have below an example on how to send knx telegrams. For some reason you have to add id to knx component in order to access it. Please have in mind that if ESP start to crash and restart when sending telegrams, it means that you don't have proper connection between serial and tp-uart.
|
Thank you very much @fxmike08 - this helps me a lot. Great work! |
@fxmike08 thank you for your effort, can we use a siemens bcu 5wg-1117-a2b12 directly to esp32 serial or it is just for tpuart chip like nanobcu ? |
@fdepalo You can use siemens 5wg-1117-a2b12 to communicate directly with esp32 serial. Directly, but use a level shifter as Siemens for Rx & TX is 5V and esp32 is 3.3V. |
mistery solved, i am able to transmit but not to receive without the level shifter, thank you ;) |
@fxmike08 thank you again, is there something i can do to help you with debugging/development? The crash if tpuart is not connected is the only problem i am experiencing:) |
@fdepalo Thank you for willingness to help, but at this point I don't know if you can help with something. When I'll have time I'll try to find a solution for serial crash (There is no way to check if serial is working). |
Hi @fxmike08, I'm working on a similar KNX integration for WLED. Can you explain where you sourced the library you're using and would it be possible to upload it to GitHub separately? I've found an older version of the same library hosted here: |
A really good reason to establish this component is, if (like in my house) an esphome component is not reachable all the time using WiFi (e.g. to far away), or (like here) WiFi is not always on. I could use a WT32-ETH01 with a LAN connection, - but: I have KNX cables literally everywhere in my house, and LAN cables only where I need them. So using the KNX bus as wired connection to Homeassistant would be the perfect match. I just need to send updates to the server. And everytime I switch off WiFi, the continual capturing of sensor data is lost. So I would definitely second a knx esphome component. One question: Do you need to use the Siemens bus coupler, or is it possible to use others too, like the GIRA bus coupler? |
@nerdoc Haven't test with other bus couplers, but I suspect it would work. |
Describe the problem you have/What new integration you would like
Please describe your use case for this integration and alternatives you've tried:
The KNX IP Protocol is an international open standard for smart homes and smart buildings automation. It is a decentralized system.
Several home automation systems have KNX support.
Additional context
The text was updated successfully, but these errors were encountered: