Files

43 lines
856 B
YAML

# === CONFIG PER EASTRON SDM230 Modbus V2 (monofase) ===
# Tutti i registri di misura sono su Input Registers (Function Code 04) e sono float32 (2 registri).
# Byte order: ABCD (big-endian, registro alto -> registro basso).
# Nota: la potenza attiva è in W, quindi la scaliamo a kW con scale: 0.001.
serial:
port: "/dev/ttyUSB0"
slave_id: 1
baudrate: 9600
bytesize: 8
parity: "N"
stopbits: 1
timeout: 2.0
poll_interval_seconds: 30
api:
host: "0.0.0.0"
port: 8000
api_key: "alberto"
registers:
voltage:
address: 0
function_code: 4
data_type: "float32"
byteorder: "ABCD"
scale: 1.0
power_kw:
address: 12
function_code: 4
data_type: "float32"
byteorder: "ABCD"
scale: 0.001
energy_kwh:
address: 342
function_code: 4
data_type: "float32"
byteorder: "ABCD"
scale: 1.0