Modbus-sunspec wrong readings

This week I installed my two smartmeters with Modbus TCP (Elgris Smartmeter LAN) using the modbus binding. After configuration of Modbus-Slave-TCP-Thing the smartmeters showed up automatically as ‘Three Phase Meter, Wye-Connected’. However the readings for uint32 registers are wrong. The binding seems to use uint32, correct reading would be uint32_swap (Big Endian).
Is this an issue for everyone using the binding or should there be a possibility to define ‘big endian’?

Florian

Could you please provide your *.things file with the modbus-elgris configuration. I also own the Elgris Smartmeter LAN but I did get some I/O Exception. The Modbus Connection to a SMA inverter is working.

@menace

“modbus:meter-wye-phase:2783aeab:40069”: {
“class”: “org.eclipse.smarthome.core.thing.internal.ThingImpl”,
“value”: {
“label”: “Smartmeter Haus”,
“bridgeUID”: {
“segments”: [
“modbus”,
“tcp”,
“2783aeab”
]
},
“channels”: [
{
“acceptedItemType”: “Number:ElectricCurrent”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acGeneral#ac-total-current”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-total-current-type”
]
},
“label”: “AC Total Current Value”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:ElectricPotential”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acGeneral#ac-average-voltage-to-n”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-average-voltage-to-n-type”
]
},
“label”: “Average Line To Neutral AC Voltage”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:ElectricPotential”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acGeneral#ac-average-voltage-to-next”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-average-voltage-to-next-type”
]
},
“label”: “Average Line To Line AC Voltage”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Frequency”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acGeneral#ac-frequency”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-frequency-type”
]
},
“label”: “AC Frequency Value”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Power”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acGeneral#ac-total-real-power”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-total-real-power-type”
]
},
“label”: “Total Real Power Value”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Power”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acGeneral#ac-total-apparent-power”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-total-apparent-power-type”
]
},
“label”: “Total Apparent Power Value”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Power”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acGeneral#ac-total-reactive-power”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-total-reactive-power-type”
]
},
“label”: “Total Reactive Power Value”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Dimensionless”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acGeneral#ac-average-power-factor”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-average-power-factor-type”
]
},
“label”: “Average AC Power Factor”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acGeneral#ac-total-exported-real-energy”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-total-exported-real-energy-type”
]
},
“label”: “Total Real Energy Exported”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acGeneral#ac-total-imported-real-energy”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-total-imported-real-energy-type”
]
},
“label”: “Total Real Energy Imported”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acGeneral#ac-total-exported-apparent-energy”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-total-exported-apparent-energy-type”
]
},
“label”: “Total Apparent Energy Exported”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acGeneral#ac-total-imported-apparent-energy”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-total-imported-apparent-energy-type”
]
},
“label”: “Total Apparent Energy Imported”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acGeneral#ac-total-imported-reactive-energy-q1”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-total-imported-reactive-energy-q1-type”
]
},
“label”: “Total Reactive Energy Imported Quadrant 1”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acGeneral#ac-total-imported-reactive-energy-q2”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-total-imported-reactive-energy-q2-type”
]
},
“label”: “Total Reactive Energy Imported Quadrant 2”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acGeneral#ac-total-exported-reactive-energy-q3”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-total-exported-reactive-energy-q3-type”
]
},
“label”: “Total Reactive Energy Exported Quadrant 3”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acGeneral#ac-total-exported-reactive-energy-q4”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-total-exported-reactive-energy-q4-type”
]
},
“label”: “Total Reactive Energy Exported Quadrant 4”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:ElectricCurrent”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseA#ac-phase-current”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-phase-current-type”
]
},
“label”: “AC Phase Current Value”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:ElectricPotential”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseA#ac-voltage-to-n”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-voltage-to-n-type”
]
},
“label”: “AC Voltage Phase To N Value”,
“description”: “This phase\u0027s AC voltage relative to N line”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:ElectricPotential”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseA#ac-voltage-to-next”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-voltage-to-next-type”
]
},
“label”: “AC Voltage”,
“description”: “This phase\u0027s AC voltage relative to the next phase”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Power”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseA#ac-real-power”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-real-power-type”
]
},
“label”: “AC Real Power Value”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Power”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseA#ac-apparent-power”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-apparent-power-type”
]
},
“label”: “AC Apparent Power Value”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Power”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseA#ac-reactive-power”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-reactive-power-type”
]
},
“label”: “AC Reactive Power Value”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Dimensionless”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseA#ac-power-factor”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-power-factor-type”
]
},
“label”: “AC Power Factor”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseA#ac-exported-real-energy”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-exported-real-energy-type”
]
},
“label”: “Real Energy Exported”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseA#ac-imported-real-energy”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-imported-real-energy-type”
]
},
“label”: “Real Energy Imported”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseA#ac-exported-apparent-energy”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-exported-apparent-energy-type”
]
},
“label”: “Apparent Energy Exported”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseA#ac-imported-apparent-energy”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-imported-apparent-energy-type”
]
},
“label”: “Apparent Energy Imported”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseA#ac-imported-reactive-energy-q1”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-imported-reactive-energy-q1-type”
]
},
“label”: “Reactive Energy Imported Quadrant 1”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseA#ac-imported-reactive-energy-q2”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-imported-reactive-energy-q2-type”
]
},
“label”: “Reactive Energy Imported Quadrant 2”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseA#ac-exported-reactive-energy-q3”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-exported-reactive-energy-q3-type”
]
},
“label”: “Reactive Energy Exported Quadrant 3”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseA#ac-exported-reactive-energy-q4”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-exported-reactive-energy-q4-type”
]
},
“label”: “Reactive Energy Exported Quadrant 4”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:ElectricCurrent”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseB#ac-phase-current”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-phase-current-type”
]
},
“label”: “AC Phase Current Value”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:ElectricPotential”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseB#ac-voltage-to-n”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-voltage-to-n-type”
]
},
“label”: “AC Voltage Phase To N Value”,
“description”: “This phase\u0027s AC voltage relative to N line”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:ElectricPotential”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseB#ac-voltage-to-next”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-voltage-to-next-type”
]
},
“label”: “AC Voltage”,
“description”: “This phase\u0027s AC voltage relative to the next phase”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Power”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseB#ac-real-power”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-real-power-type”
]
},
“label”: “AC Real Power Value”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Power”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseB#ac-apparent-power”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-apparent-power-type”
]
},
“label”: “AC Apparent Power Value”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Power”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseB#ac-reactive-power”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-reactive-power-type”
]
},
“label”: “AC Reactive Power Value”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Dimensionless”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseB#ac-power-factor”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-power-factor-type”
]
},
“label”: “AC Power Factor”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseB#ac-exported-real-energy”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-exported-real-energy-type”
]
},
“label”: “Real Energy Exported”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseB#ac-imported-real-energy”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-imported-real-energy-type”
]
},
“label”: “Real Energy Imported”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseB#ac-exported-apparent-energy”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-exported-apparent-energy-type”
]
},
“label”: “Apparent Energy Exported”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseB#ac-imported-apparent-energy”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-imported-apparent-energy-type”
]
},
“label”: “Apparent Energy Imported”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseB#ac-imported-reactive-energy-q1”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-imported-reactive-energy-q1-type”
]
},
“label”: “Reactive Energy Imported Quadrant 1”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseB#ac-imported-reactive-energy-q2”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-imported-reactive-energy-q2-type”
]
},
“label”: “Reactive Energy Imported Quadrant 2”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseB#ac-exported-reactive-energy-q3”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-exported-reactive-energy-q3-type”
]
},
“label”: “Reactive Energy Exported Quadrant 3”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseB#ac-exported-reactive-energy-q4”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-exported-reactive-energy-q4-type”
]
},
“label”: “Reactive Energy Exported Quadrant 4”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:ElectricCurrent”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseC#ac-phase-current”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-phase-current-type”
]
},
“label”: “AC Phase Current Value”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:ElectricPotential”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseC#ac-voltage-to-n”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-voltage-to-n-type”
]
},
“label”: “AC Voltage Phase To N Value”,
“description”: “This phase\u0027s AC voltage relative to N line”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:ElectricPotential”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseC#ac-voltage-to-next”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-voltage-to-next-type”
]
},
“label”: “AC Voltage”,
“description”: “This phase\u0027s AC voltage relative to the next phase”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Power”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseC#ac-real-power”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-real-power-type”
]
},
“label”: “AC Real Power Value”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Power”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseC#ac-apparent-power”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-apparent-power-type”
]
},
“label”: “AC Apparent Power Value”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Power”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseC#ac-reactive-power”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-reactive-power-type”
]
},
“label”: “AC Reactive Power Value”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Dimensionless”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseC#ac-power-factor”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-power-factor-type”
]
},
“label”: “AC Power Factor”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseC#ac-exported-real-energy”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-exported-real-energy-type”
]
},
“label”: “Real Energy Exported”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseC#ac-imported-real-energy”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-imported-real-energy-type”
]
},
“label”: “Real Energy Imported”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseC#ac-exported-apparent-energy”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-exported-apparent-energy-type”
]
},
“label”: “Apparent Energy Exported”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseC#ac-imported-apparent-energy”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-imported-apparent-energy-type”
]
},
“label”: “Apparent Energy Imported”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseC#ac-imported-reactive-energy-q1”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-imported-reactive-energy-q1-type”
]
},
“label”: “Reactive Energy Imported Quadrant 1”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseC#ac-imported-reactive-energy-q2”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-imported-reactive-energy-q2-type”
]
},
“label”: “Reactive Energy Imported Quadrant 2”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseC#ac-exported-reactive-energy-q3”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-exported-reactive-energy-q3-type”
]
},
“label”: “Reactive Energy Exported Quadrant 3”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
},
{
“acceptedItemType”: “Number:Energy”,
“kind”: “STATE”,
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”,
“acPhaseC#ac-exported-reactive-energy-q4”
]
},
“channelTypeUID”: {
“segments”: [
“modbus”,
“ac-exported-reactive-energy-q4-type”
]
},
“label”: “Reactive Energy Exported Quadrant 4”,
“configuration”: {
“properties”: {}
},
“properties”: {},
“defaultTags”: []
}
],
“configuration”: {
“properties”: {
“maxTries”: 3,
“address”: 40000,
“length”: 61,
“refresh”: 5
}
},
“properties”: {
“serialNumber”: “1900013364”,
“blockLength”: “107.0”,
“vendor”: “elgris”,
“model”: “SMART METER”,
“version”: “1.11.25”,
“blockAddress”: “40069.0”,
“uniqueAddress”: “modbus:tcp:2783aeab:40069”
},
“uid”: {
“segments”: [
“modbus”,
“meter-wye-phase”,
“2783aeab”,
“40069”
]
},
“thingTypeUID”: {
“segments”: [
“modbus”,
“meter-wye-phase”
]
}
}
},

@menace
My elgris smartmeter was detected automatically by paperui and was working exepct for the big-endian-issue. Which firmware-number do you have on your smartmeter? Probably you need an update to the latest firmware 1.12.15

@F_Hatz
My smartmeter is running firmware 1.12.10. And I use Openhab 2.4.0.
Below my modbus.things file (just a part of if). The first device is the SMA inverter, it is working as expected. The second device is the SmartMeter, could you compare this configuration with your’s please?

Bridge modbus:tcp:inverter [ host="192.168.1.58", port=502, id=3 ] 
{

	Bridge poller Yield                [ start=30529, length=4, refresh=5000, type="input" ]
    {
		Thing data Total_Yield      [ readStart="30529", readValueType="uint32", readTransform="JS(divide1000.js)" ]
   	}
}

Bridge modbus:tcp:SmartMeter [ host="192.168.1.83", port=502, id=1 ] 
{
	Bridge poller TotalWhExported [ start=40107, length=4, refresh=5000, type="holding" ] 
	{
	   Thing data TotalExported     [ readStart="40107", readValueType="int32" , readTransform="JS(divide1000.js)"]
  	}
	Bridge poller TotalWhImported [ start=40115, length=4, refresh=5000, type="holding" ] 
	{
	   Thing data TotalImported     [ readStart="40115", readValueType="int32" , readTransform="JS(divide1000.js)"]
  	}
}

With this things-file the SmartMeter elements in PaperUI are marked with “Offline - communication error”. The command line output below


I also made a wireshark trace between the SmartMeter and the swith, it seems this communication is okay. According Wikipedia the response should contain an error code in case the SmartMeter reports a problem.

You’re not using the same binding as @F_Hatz

Perhaps your meter does not support simultaneous connections to both the SMA and to openHAB.