should work so far

This commit is contained in:
2025-12-05 11:54:53 +01:00
parent 6faed5441c
commit 3f13a5adfa
7 changed files with 169 additions and 46 deletions

View File

@@ -1,7 +1,10 @@
global:
scan_interval: 1
log_level: INFO
mqtt:
broker: 172.16.2.16
port: 1883
publish_period: 15
modbus:
gateway: 172.16.2.42
@@ -23,8 +26,23 @@ modbus:
# { "slave":1, "addr":0x0001, "type":"holding", "attr": "state", "name":"State", "unit":"-", "adaptor": onOffAdaptor },
# ]
input:
- name: pv_control
subscribe_topic: IoT/PV/Control
slave_id: 1
address: 0
register_type: coil
- name: car_control
subscribe_topic: IoT/Car/Control
slave_id: 5
address: 0
register_type: coil
output:
- name: pv_meter
enabled: true
scan_rate: 15
publish_topic: IoT/PV/Values
slave_id: 2
registers:
@@ -120,7 +138,8 @@ output:
data_type: float32
adaptor: floatAdaptor
- name: pv_control
publish_topic: IoT/PV/Control
publish_topic: IoT/PV/Control/State
scan_rate: 1
slave_id: 1
registers:
- address: 0x0001
@@ -131,7 +150,9 @@ output:
data_type: int32
adaptor: onOffAdaptor
- name: car_control
publish_topic: IoT/Car/Control
enabled: true
publish_topic: IoT/Car/Control/State
scan_rate: 1
slave_id: 5
registers:
- address: 0x0001
@@ -144,26 +165,83 @@ output:
- name: car_meter
enabled: true
publish_topic: IoT/Car/Values
scan_rate: 15
slave_id: 6
registers:
- address: 14
- address: 0
attribute: voltageL1
name: Voltage L1
unit: V
register_type: holding
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 16
- address: 2
attribute: voltageL2
name: Voltage L2
unit: V
register_type: holding
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 18
- address: 4
attribute: voltageL3
name: Voltage L3
unit: V
register_type: holding
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 6
attribute: currentL1
name: Current L1
unit: A
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 8
attribute: currentL2
name: Current L2
unit: A
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 10
attribute: currentL3
name: Current L3
unit: A
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 12
attribute: powerL1
name: Power L1
unit: W
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 14
attribute: powerL2
name: Power L2
unit: W
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 16
attribute: powerL3
name: Power L3
unit: W
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 0x0048
attribute: totalImportEnergy
name: Total Import Energy
unit: kWh
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 0x004a
attribute: totalExportEnergy
name: Total Export Energy
unit: kWh
register_type: input
data_type: float32
adaptor: floatAdaptor