mirror of
https://github.com/esphome/esphome.git
synced 2025-10-12 14:53:49 +01:00
add modbus
This commit is contained in:
@@ -3,12 +3,9 @@ esphome:
|
||||
then:
|
||||
- pzemac.reset_energy: pzemac1
|
||||
|
||||
modbus:
|
||||
- id: pzemac_modbus
|
||||
|
||||
sensor:
|
||||
- platform: pzemac
|
||||
modbus_id: pzemac_modbus
|
||||
modbus_id: modbus_bus
|
||||
id: pzemac1
|
||||
voltage:
|
||||
name: PZEMAC Voltage
|
||||
|
@@ -1,5 +1,5 @@
|
||||
substitutions:
|
||||
packages:
|
||||
uart: !include ../../test_build_components/common/uart/esp32-c3-idf.yaml
|
||||
modbus: !include ../../test_build_components/common/modbus/esp32-c3-idf.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@@ -3,6 +3,6 @@ substitutions:
|
||||
rx_pin: GPIO5
|
||||
|
||||
packages:
|
||||
uart: !include ../../test_build_components/common/uart/esp32-idf.yaml
|
||||
modbus: !include ../../test_build_components/common/modbus/esp32-idf.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@@ -3,6 +3,6 @@ substitutions:
|
||||
rx_pin: GPIO2
|
||||
|
||||
packages:
|
||||
uart: !include ../../test_build_components/common/uart/esp8266-ard.yaml
|
||||
modbus: !include ../../test_build_components/common/modbus/esp8266-ard.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@@ -3,6 +3,6 @@ substitutions:
|
||||
rx_pin: GPIO5
|
||||
|
||||
packages:
|
||||
uart: !include ../../test_build_components/common/uart/rp2040-ard.yaml
|
||||
modbus: !include ../../test_build_components/common/modbus/rp2040-ard.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
|
Reference in New Issue
Block a user