Engelmann Sensostar over Mqtt integration

Hello there!! Happy new year!

I am trying to integrate to my home automation, the reading coming from mbus heat meter (Engelmann Sensostar) over mqtt.

Due to a limitation of the mbus gateway I’ve used, it dosen’t seem possible to create a comprehensive single message, with all the variables and values.

Listening ad the selected topic, I receive single messages for every single mbus variable.

Message 2680 received on adfweb at 14:02:
{
    "description": "P0-2",
    "primary address": "0",
    "measure unit 1": "Energy [Wh]",
    "value": "326000.000000",
    "position": "19"
}
QoS: 0 - Retain: false
Message 2679 received on adfweb at 14:02:
{
    "description": "P0-2",
    "primary address": "0",
    "measure unit 1": "Energy [Wh]",
    "value": "326000.000000",
    "position": "18"
}
QoS: 0 - Retain: false
Message 2678 received on adfweb at 14:02:
{
    "description": "P0-2",
    "primary address": "0",
    "measure unit 1": "Type of Data in VIFE",
    "value": "5",
    "position": "17"
}
QoS: 0 - Retain: false

…and so far for all 19 values…

Can you please advice to what will be the best way to read them, aggregate and create a single sensor with appropriate attributes?

I am a newbie and any help will be greatly appreciated!

1 Like

adding this code to sensor definition, I am able to read the walue, but for some reason it seem to be overwritten every new message is coming…

mqtt:
  sensor:
  - name: "P0-2 Energia riscaldamento"
    unique_id: p0-2.heating_energy
    state_topic: "adfweb"
    unit_of_measurement: 'Wh'
    value_template: |-
        {%- if (
                (value_json.position == "2" )
              ) -%}
          {{ value_json.value | float() | round(1) }}
        {% endif -%}

download

1 Like

Hello, I have also similar MBUS Engelmann heatingmeter (maddalena SensoStar2) and otherS MBus watermeter (maddalena MBusEvo). I think I could connect them to HA too. As a newbie I’m starting from scratch: Could you disclose what kind of HARDWIRING you did?

1 Like

hello, you can easly add a USB to Mbus device to your raspberry otherwise (the way I personally prefer) you can use a device from ADfweb, which work just straightforward over MQTT
https://www.adfweb.com/Home/products/MBus_MQTT.asp?frompg=nav13_28

Sorry, but how do you manage to read the SensoStar (2?)?
I just found DIY solutions…
Which solution would you recommend?

I have no RASPI around the corner.
I need sth. that works with ZIGBEE/WLAN…
And it is a single sensor, so I do not need NASA hardware next to it…

Or do you explicitly buy a raspi + MBUS->MQTT-Converter +… for that?