Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96121

Correct data_type and structure for modbus telegram on a smart meter

$
0
0

@ReDaLeRt wrote:

Hello.

I have these telegrams from a modbus smart meter:

imagem

The one I’m aiming to obtain on my Home Assistant has the intex 0x79 (Active Power). On those samples its numerical value is zero at that moment.

I know that its data_type is a “double long unsigned”, as stated in the device docs. But with this config, the sensor always get the state “unavailable”:

sensor:
  - platform: modbus
    scan_interval: 2
    registers:    
      - name: "Active power"
        hub: 1
        slave: 1
        # 0x79
        register: 121
        register_type: input
        unit_of_measurement: 'W'
        count: 1
        reverse_order: false
        scale: 1
        offset: 0
        precision: 1
        # double long unsigned
        data_type: uint

I have other modbus sensors for this slave device working flawlessly, such as voltage and current.

From the modbus sensor documentation, is possible to set a custom data_type and its structure. Can anyone help on this, please?

Thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>