924b7b5b34
Seed the repo described in pda-fieldbus ADR-0009: a sibling repo that
ships device profiles independently of the fieldbus binary.
Layout:
- profiles/schneider-iem2135.json — distilled from the inline extract
rules in examples/poll-d27-g110.yaml
- profiles/lug-heat-meter-v4.json — heat-meter profile with derived
delta_temperature
Both validate against pda-fieldbus's profile.LoadDirs.
Packaging:
- nfpm.yaml builds pda-fieldbus-profiles.deb installing profiles/ to
/usr/share/pda-fieldbus/profiles/, where the loader's DirPackaged dir
picks them up. Recommends pda-fieldbus.
- .gitea/workflows/auto-tag.yml: same conventional-commit auto-tagging
as pda-fieldbus, on tag push installs nfpm, builds .deb, uploads to
repo.pda.cz/PDAT/main using the existing PDA_REPO_TOKEN secret.
- .gitea/workflows/ci.yml: JSON syntax check + schema validation by
importing pda-fieldbus's loader and calling LoadDirs against profiles/.
55 lines
1.3 KiB
JSON
55 lines
1.3 KiB
JSON
{
|
|
"schema": "pda-fieldbus.profile/v1",
|
|
"device": {
|
|
"manufacturer": "LUG",
|
|
"model": "heat-meter-v4",
|
|
"protocol": "mbus"
|
|
},
|
|
"meta": {
|
|
"version": "1"
|
|
},
|
|
"points": {
|
|
"energy": {
|
|
"addr": "mbus/dif:0C/vif:0F",
|
|
"unit": "gigajoule",
|
|
"scale": 1e-9,
|
|
"dimensions": "energy",
|
|
"description": "Total heat energy"
|
|
},
|
|
"power": {
|
|
"addr": "mbus/dif:0B/vif:2D",
|
|
"unit": "kilowatt",
|
|
"scale": 0.001,
|
|
"dimensions": "power",
|
|
"description": "Instantaneous thermal power"
|
|
},
|
|
"flow_temperature": {
|
|
"addr": "mbus/dif:0A/vif:5B",
|
|
"unit": "celsius",
|
|
"dimensions": "temperature",
|
|
"description": "Supply (flow) temperature"
|
|
},
|
|
"return_temperature": {
|
|
"addr": "mbus/dif:0A/vif:5F",
|
|
"unit": "celsius",
|
|
"dimensions": "temperature",
|
|
"description": "Return temperature"
|
|
},
|
|
"volume_flow": {
|
|
"addr": "mbus/dif:0B/vif:3B",
|
|
"unit": "cubic_metre_per_hour",
|
|
"dimensions": "flow",
|
|
"description": "Volumetric flow rate"
|
|
}
|
|
},
|
|
"derived": {
|
|
"delta_temperature": {
|
|
"function": "sub",
|
|
"inputs": ["flow_temperature", "return_temperature"],
|
|
"unit": "celsius",
|
|
"dimensions": "temperature",
|
|
"description": "Flow minus return temperature"
|
|
}
|
|
}
|
|
}
|