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

Simple configuration for P1 port streaming over network #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions ser2net.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
substitutions:
device_id: dsmr_ser2net
device_name: DSMR ser2net
device_description: "P1 smart meter ser2net proxy"
tcp_port: "3000"

esphome:
name: ${device_id}
comment: "${device_description}"
name_add_mac_suffix: false
project:
name: zuidwijk.slimmelezer
version: "2.0"

esp32:
board: esp32dev
framework:
type: arduino

# Enable logging
logger:
baud_rate: 115200

api:

ota:

external_components:
- source: github://tube0013/esphome-stream-server-v2

uart:
id: uart_dsmr
baud_rate: 115200
rx_pin: GPIO5
rx_buffer_size: 1700

stream_server:
id: dsmr_stream_server
uart_id: uart_dsmr
port: ${tcp_port}

web_server:
port: 80

ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO0_IN
phy_addr: 1
power_pin: GPIO16

sensor:
- platform: uptime
name: ${device_name} Uptime

text_sensor:
- platform: version
name: ${device_name} ESPHome Version
hide_timestamp: true

binary_sensor:
- platform: stream_server
name: ${device_name} Client Connected
stream_server: dsmr_stream_server

switch:
- platform: restart
name: ${device_name} restart