Files
pv-controller/config/config.yaml
Wolfgang Hottgenroth 7c90962de1
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful
add raw output 2
2025-12-05 14:58:46 +01:00

233 lines
5.7 KiB
YAML

global:
scan_interval: 1
log_level: DEBUG
mqtt:
broker: emqx01-anonymous-cluster-internal.broker.svc.cluster.local
port: 1883
modbus:
gateway: 172.16.2.42
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:
- address: 0x0048
attribute: importEnergyActive
name: Import active energy
unit: kWh
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 0x004c
attribute: importEnergyReactive
name: Import reactive energy
unit: kVAh
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 0x004a
attribute: exportEnergyActive
name: Export active energy
unit: kWh
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 0x004e
attribute: exportEnergyReactive
name: Export reactive energy
unit: kVAh
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 0x0012
attribute: powerApparent
name: Apparent Power
unit: W
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 0x000c
attribute: powerActive
name: Active Power
unit: W
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 0x0018
attribute: powerReactive
name: Reactive Power
unit: W
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 0x0058
attribute: powerDemandPositive
name: PositivePowerDemand
unit: W
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 0x005c
attribute: powerDemandReverse
name: ReversePowerDemand
unit: W
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 0x001e
attribute: factor
name: Factor
unit: "-"
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 0x0024
attribute: angle
name: Angle
unit: degree
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 0x0000
attribute: voltage
name: Voltage
unit: V
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 0x0006
attribute: current
name: Current
unit: A
register_type: input
data_type: float32
adaptor: floatAdaptor
- name: pv_control
publish_topic: IoT/PV/Control/State
scan_rate: 1
raw_output: true # use only for output device with only one register, name this register 'output'
slave_id: 1
registers:
- address: 0x0001
attribute: output
name: State
unit: "-"
register_type: holding
data_type: int32
adaptor: onOffAdaptor
- name: car_control
enabled: true
publish_topic: IoT/Car/Control/State
scan_rate: 1
raw_output: true # use only for output device with only one register, name this register 'output'
slave_id: 5
registers:
- address: 0x0001
attribute: output
name: State
unit: "-"
register_type: holding
data_type: int32
adaptor: onOffAdaptor
- name: car_meter
enabled: true
publish_topic: IoT/Car/Values
scan_rate: 15
slave_id: 6
registers:
- address: 0
attribute: voltageL1
name: Voltage L1
unit: V
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 2
attribute: voltageL2
name: Voltage L2
unit: V
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 4
attribute: voltageL3
name: Voltage L3
unit: V
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