暫無描述

Oxan van Leeuwen a4839afe91 Move license information to LICENSE.txt 2 年之前
.github a167bcdb66 Add GitHub Sponsors button 2 年之前
components a4839afe91 Move license information to LICENSE.txt 2 年之前
LICENSE.txt a4839afe91 Move license information to LICENSE.txt 2 年之前
README.md 97105684cd Add documentation about sensors 3 年之前

README.md

Stream server for ESPHome

Custom component for ESPHome to expose a UART stream over WiFi or Ethernet. Provides a serial-to-wifi bridge as known from ESPLink or ser2net, using ESPHome.

This component creates a TCP server listening on port 6638 (by default), and relays all data between the connected clients and the serial port. It doesn't support any control sequences, telnet options or RFC 2217, just raw data.

Usage

Requires ESPHome v2022.3.0 or newer.

external_components:
  - source: github://oxan/esphome-stream-server

stream_server:

You can set the UART ID and port to be used under the stream_server component.

uart:
   id: uart_bus
   # add further configuration for the UART here

stream_server:
   uart_id: uart_bus
   port: 1234

Sensors

The server provides a binary sensor that signals whether there currently is a client connected:

binary_sensor:
  - platform: stream_server
    connected:
      name: Connected

It also provides a numeric sensor that indicates the number of connected clients:

sensor:
  - platform: stream_server
    connection_count:
      name: Number of connections