Patrick Schurig 2ac00e1330 fix(v2c): correct logging category dcV2C + debian packaging + modbus.pri path
Build fixes found during first local compilation (qmake6 + g++ -Werror):

1. Logging category: nymea-plugininfocompiler generates 'dcV2C' (uppercase C)
   from the JSON vendor name "V2C". All three source files used 'dcV2c'
   (lowercase c) — corrected to 'dcV2C' in integrationpluginv2c.cpp,
   trydanmodbustcpmaster.cpp, v2ctcpdiscovery.cpp.

2. modbus.pri: hardcoded include(/usr/include/nymea-modbus/modbus-tool.pri)
   fails when libnymea-modbus-dev is not system-installed. Changed to a
   conditional: checks $$[QT_INSTALL_PREFIX] first, then NYMEA_MODBUS_PATH
   override, with a graceful fallback (warning + manual C++17 CONFIG flag).
   The v2c plugin has MODBUS_CONNECTIONS empty so the tool loop is a no-op
   either way; the fallback is safe.

3. debian/: add powersync-plugin-v2c package entry (control, .install,
   changelog entry 1.15.0+etm4).

Build verified: libnymea_integrationpluginv2c.so links against libnymea.so.1,
libnymea-modbus.so.1, Qt6Network/SerialBus/Core, 0 compiler warnings
(with -Werror -Wall -Wextra -std=c++17).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-12 15:20:11 +02:00

56 lines
2.1 KiB
Plaintext

Source: etm-powersync-plugins-modbus
Section: utils
Priority: optional
Maintainer: ETM-Schurig SARL <contact@etm-schurig.eu>
Standards-Version: 4.7.2
Homepage: https://etm-powersync.fr
Vcs-Git: https://git.etm-powersync.fr/ETM-Schurig/etm-powersync-plugins-modbus.git
Build-Depends: debhelper,
pkg-config,
libnymea-dev,
nymea-dev-tools:native,
libnymea-modbus-dev,
qt6-base-dev,
qt6-base-dev-tools,
qt6-serialport-dev,
qt6-serialbus-dev,
Package: powersync-plugin-eastron
Architecture: any
Section: libs
Depends: ${shlibs:Depends},
${misc:Depends},
Description: PowerSync integration plugin for Eastron SDM energy meters (Modbus RTU)
nymea integration plugin for Eastron SDM72 / SDM120 / SDM630 energy meters
over Modbus RTU, for use by the ETM PowerSync home energy management system.
Package: powersync-plugin-abbb2x
Architecture: any
Section: libs
Depends: ${shlibs:Depends},
${misc:Depends},
Description: PowerSync integration plugin for ABB B2x energy meters (Modbus RTU)
nymea integration plugin for ABB B21 / B23 / B24 energy meters
over Modbus RTU, for use by the ETM PowerSync home energy management system.
Package: nymea-plugin-abbterra
Architecture: any
Section: libs
Depends: ${shlibs:Depends},
${misc:Depends},
Description: ABB Terra AC charging station (Modbus TCP/RTU) - vendored from upstream
nymea integration plugin for ABB Terra AC wallbox over Modbus TCP or RTU.
Vendored from nymea-plugins-modbus experimental-silo, pending upstream release.
Package: powersync-plugin-v2c
Architecture: any
Section: libs
Depends: ${shlibs:Depends},
${misc:Depends},
Description: PowerSync integration plugin for V2C Trydan EV charger (Modbus TCP)
nymea integration plugin for the V2C Trydan / Trydan Pro EV charger over
Modbus TCP (port 502), for use by the ETM PowerSync home energy management
system. Implements the evcharger interface: charge enable/disable, current
setpoint, plugged-in / charging state, house and solar power telemetry.
Status: Partial — not yet validated on real hardware.