Sontex449

Happy new year to you all
So I am once again relying on all your expertise please, I managed to get some readings from my sontex449 using the config Glyn posted but it seems to fail after running for different periods saying could not read from mbus. Could this be due to the fact that it is running on a D battery at 3.6v and not mains power. I have disconnected it completely at the moment but have the ds18b sensors and a smartrail x45m electric meter all recording and plotting on a graph. If anyone has any thoughts or ideas if I need to change my config I’d be grateful.
On another note my heat pumpis a grant aerona 6kw which has mbus enabled and can be read using home assistant, is there a config that can be used emonhub?

Afternoon all,
Does anyone know the voltage output from the 230v module on a sontex heat meter, I have one fitted with a d cell battery but i am struggling to pull data from the mbus sometimes it works and other times it can’t read it. should i move the power supply from my raspberry pi and power everything from the heat pump mointor board or could i use 2 power supplies 1 for the pi and 1 for the hat?

Happy new year @Satwelsh I think I recall that you have our heat pump HAT MBUS reader? Another user did report having difficulty reading from a Sontex531 using this HAT, he had more reliable results with another reader. Could we send you one of these for you to test and compare? I use the MBUS HAT with my Sontex531 which is mains powered and it’s been completely reliable but there must be some difference that’s we are missing.

1 Like

Hi Trystan
That would be fantastic if you could, like i said it works sometimes then stops with no mbus connection.

Hi @Satwelsh, can you post your current config, please?

As soon as i am home i will post on here. Thanks Mike



Here is my heat meter config and my emonhub log, it’s working now but will suddenly stop.


Here’s where it stops 19:44

Rather than screenshots, please copy and paste the text itself using the ‘preformatted’ button in the ribbon, Ctl-E or 3 ‘backticks’ (top left of the keyboard).

image

Have you configured 2 interfacers, one for M-BUS and another for the SDM?

Do you have 2 different devices to read?

Morning Brian
yes there are 3 altogther 1 for the sdm ( this is a smartrailx45m meter) but the same as
1 for the sontex449 and 1 for ds18 sensors, i do not have anything in the config for the hat board fitted on the pi, not sure if i need it. like i said it starts to pull data from the heat meter but then fails thia happens if i have nothing else connected and have deleted the config entries for the sdm and sensors?
hope this makes sense.

You need to post your whole config.

#######################################################################
#######################      emonhub.conf     #########################
#######################################################################
### emonHub configuration file, for info see documentation:
### https://github.com/openenergymonitor/emonhub/blob/emon-pi/configuration.md
#######################################################################
#######################    emonHub  settings    #######################
#######################################################################

[hub]
    ### loglevel must be one of DEBUG, INFO, WARNING, ERROR, and CRITICAL
    loglevel = DEBUG
    autoconf = 1
### Uncomment this to also send to syslog
# use_syslog = yes
#######################################################################
#######################       Interfacers       #######################
#######################################################################

[interfacers]
    ### This interfacer manages the RFM12Pi/RFM69Pi/emonPi module
    [[EmonPi2]]
        Type = EmonHubOEMInterfacer
        [[[init_settings]]]
            com_port = /dev/ttyAMA0
            com_baud = 38400
        [[[runtimesettings]]]
            pubchannels = ToEmonCMS,
            subchannels = ToRFM12,

     [[DS18B20]]
    Type = EmonHubDS18B20Interfacer
    [[[init_settings]]]
    [[[runtimesettings]]]
        pubchannels = ToEmonCMS,
        read_interval = 10
        nodename = sensors

        [[SDM120]]
    Type = EmonHubMinimalModbusInterfacer
    [[[init_settings]]]
        device = /dev/serial/by-id/usb-1a86_USB2.0-Ser_-if00-port0
        baud = 2400
    [[[runtimesettings]]]
        pubchannels = ToEmonCMS,
        read_interval = 10
        nodename = sdm120
        # prefix = sdm_
        [[[[meters]]]]
            [[[[[sdm120]]]]]
                address = 1
                registers = 0,12,18,24,30,70,72,76,
               precision = 2,3,1,1,3,3,3,3,3

       [[MBUS]]
    Type = EmonHubMBUSInterfacer
    [[[init_settings]]]
        device = /dev/ttyAMA0
        baud = 2400
    [[[runtimesettings]]]
        pubchannels = ToEmonCMS,
        read_interval = 10
        validate_checksum = False
        nodename = MBUS
        [[[[meters]]]]
            [[[[[heatmeter]]]]]
                address = 7
                type = standard

   [[SPI]]
        Type = EmonHubRFM69LPLInterfacer
        [[[init_settings]]]
            nodeid = 5
            networkID = 210
        [[[runtimesettings]]]
            pubchannels = ToEmonCMS,

    [[MQTT]]
        Type = EmonHubMqttInterfacer
        [[[init_settings]]]
            mqtt_host = 127.0.0.1
            mqtt_port = 1883
            mqtt_user = emonpi
            mqtt_passwd = emonpimqtt2016
        
        [[[runtimesettings]]]
            pubchannels = ToRFM12,
            subchannels = ToEmonCMS,
            
            # emonhub/rx/10/values format
            # Use with emoncms Nodes module
            node_format_enable = 0
            node_format_basetopic = emonhub/
            
            # emon/emontx/power1 format - use with Emoncms MQTT input
            # http://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/MQTT.md
            nodevar_format_enable = 1
            nodevar_format_basetopic = emon/
            
            # Single JSON payload published  - use with Emoncms MQTT
            node_JSON_enable = 0
            node_JSON_basetopic = emon/
    
    [[emoncmsorg]]
        Type = EmonHubEmoncmsHTTPInterfacer
        [[[init_settings]]]
        [[[runtimesettings]]]
            pubchannels = ToRFM12,
            subchannels = ToEmonCMS,
            url = https://emoncms.org
            apikey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
            senddata = 1    # Enable sending data to Emoncms.org
            sendnames = 1    # Send full input names (compression will be automatically enabled)
            interval = 30    # Bulk send interval to Emoncms.org in seconds

#######################################################################
#######################          Nodes          #######################
#######################################################################

## See config user guide: https://github.com/openenergymonitor/emonhub
## If autoconf is enabled above, node configuration will automatically
## populate based on templates listed in available.conf

[nodes]

Here’s my entire config

Thanks. Just a note, where is says Type text here you should replace that text with your config/log text so the new text is between the 3 backticks.

When you say stops, is that the whole emonhub log stops, or just the MBUS interfacer?

Does it stop completely, or just fail to read the data on occasions?

Yes just the MBus interfacer, If you look at the log between 19:44:12 and 19:44:20, that’s what it does continually after it fails for the 1st time. Do i need to add anything to my config for the hat board to be recognised and I should have a new power supply for my meter today incase the battery is not providing enough power to the Mbus to read correctly. My electric meter and temp sensors have worked flawlessly now for a week no matter how many times I shut down and restart the system. Any help would be great please Brian. and just a quick do you know if the grant aerona can be intergrated into the config to read directly from the unit to the HAT and pi please a bit like the Samsung?

Can you SSH into the Pi? I want o see if there are any error s from the Python script that is running (I’ll tell you how).

Can you post (as text) the log output when it works and the output when it fails? Just extract the lines relating to MBUS interfacer.

Hi Brian
yes no problem but i can’t do it till later as i am in work sorry if that’s ok. i’m comfartable ssh into the pi if you can tell me what script i have to type and where.

1 Like

The new MBUS reader is in the post to you today, let me know how you get on with it.

1 Like

Thank you I will try it tomorrow evening.