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

How to Associate Modbus Entity with a Home Assistant Device

$
0
0

I have the modbus integration working over TCP.

The “sensor” defined in the configuration.yaml file does expose a useable “entity”.
The data is properly being queried and its history stored/displayed properly .

However, where would one define the association of this working “entity” with a parent “device” ? Is not that what the yaml property of -name supposed to define?

configuration.yaml section:

modbus:
  - name: ESP32-1
    type: tcp
    host: 192.168.1.14
    port: 502
    sensors:
      - name: AC-Voltage
        input_type: holding
        unit_of_measurement: Volts
        data_type: uint16
        slave: 1
        address: 0
        unique_id: AC_Voltage_ESP32-1
        scale: .01
        offset: 0

Thanks for the help.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 105806

Trending Articles