ADS Sensor


The ads sensor platform allows reading the value of a numeric variable on your ADS device. The variable can be of type INT, UINT or BYTE.

To use your ADS device, you first have to set up your ADS hub and then add the following to your configuration.yaml file:

# Example configuration.yaml entry
sensor:
  - platform: ads
    adsvar: GVL.temperature
    unit_of_measurement: '°C'
    adstype: int

Configuration Variables

adsvar

(string)(Required)The name of the variable which you want to access.

adstype

(string)(Optional)The datatype of the ADS variable, possible values are int, uint, byte.

Default value: int

name

(string)(Optional)An identifier for the sensor.

factor

(integer)(Optional)A factor that divides the stored value before displaying in Home Assistant.

Default value: 1

The factor can be used to implement fixed decimals. E.g., set factor to 100 if you want to display a fixed decimal value with two decimals. A variable value of 123 will be displayed as 1.23.