Skip to content
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

Is there an ESPHome equivalent to the ESPEasy Serial Server? #415

Closed
JunShine opened this issue Sep 30, 2019 · 6 comments
Closed

Is there an ESPHome equivalent to the ESPEasy Serial Server? #415

JunShine opened this issue Sep 30, 2019 · 6 comments

Comments

@JunShine
Copy link

Describe the problem you have/What new integration you would like

Is there an ESPHome equivalent to the ESPEasy Serial Server?

Please describe your use case for this integration and alternatives you've tried:

I want connect a CC2530 coordinator via an ESP8266。like that https://www.zigbee2mqtt.io/how_tos/how_to_esp8266_with_cc2530.html
I wondered whether it would be possible to do the same using ESPHome。How to fill in the ESPHome configuration entry?

Additional context

@minsuke
Copy link

minsuke commented Sep 30, 2019

You mean like ser2net component? i wish this can be applied serial devices, it will be connected with old devices which use old serial connection. Great fuction !!

@JunShine
Copy link
Author

Yes!ser2net component!

@brandond
Copy link

ESPHome is primarily meant to work with Home Assistant, either via MQTT or API. While many of the components can be used standalone, some of the dedicated single-purpose functionality like acting as a generic serial gateway is absent. You might be able to cobble something together with lambdas and mqtt on_message triggers but it wouldn't be pretty.

If you had a specific use case that involved using a CC2530 to connect various devices to Home Assistant that might find more traction.

@JunShine
Copy link
Author

JunShine commented Oct 1, 2019

Yes,use zigbee2mqtt (https://www.zigbee2mqtt.io/ or https://github.com/Koenkk/zigbee2mqtt ). Allows you to use your Zigbee devices without the vendors bridge or gateway.It bridges events and allows you to control your Zigbee devices via MQTT. In this way you can integrate your Zigbee devices with whatever smart home infrastructure you are using. Currently 380 devices are supported from 84 different vendors.( here https://www.zigbee2mqtt.io/information/supported_devices.html)
Zigbee2mqtt needs to communicate with zigbee devices via CC2531/CC2530, here https://www.zigbee2mqtt.io/getting_started/flashing_the_cc2531.html. but I found that I can use the serial port in esp8266 to connect cc2531/cc2530 and use it as a coordinator to send data to the mqtt gate. on https://www.zigbee2mqtt.io/how_tos/how_to_esp8266_with_cc2530.html, This basically should act as multiple xiaomi hubs and can be placed anywhere in the house. Wow~~

@randybb
Copy link

randybb commented Oct 8, 2019

This would be a great addition for these who run BTLE and RF433 gateways.

@OttoWinter
Copy link
Member

The big problem with that is that most protocols ESPHome supports (MQTT, native API, HTTP) are not streaming protocols, so a serial stream cannot be represented in them.

Also, while in principle I don't have anything against this, this would be an integration that would soon get uber-generic. Maybe some user wants to split packets somehow (based on some terminating character), maybe someone wants a different protocol etc.

This would lend itself much better to custom code (which ESPHome does support quite well). I'd be happy to accept a cookbook contribution with the code required to create a serial server. That way, if users want to customize behavior, they have full access to the code.

@esphome esphome locked and limited conversation to collaborators Oct 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants