Hi All,
Thanks for the wonderful community.
I wondered whether anyone has come across an integration which allows the details of the (hardware) sensors within a device to be captured and associated with a Home Assistant device - similar to what the great Battery Notes
HACS integration does for batteries.
I was looking for such an integration when comparing the readings from different devices and wanting to capture the sensor type (i.e. SHT21), measurements for sensor (temp, humidity) and accuracy (+/- 5%).
I had a look through HACS but was not able to find anything.
Many thanks
1 Like
Welcome.
Please use the search function as suggested in the pinned topic. How to help us help you - or How to ask a good question
An open Feature Request (and a viable workaround) already exists for this. I suggest you vote here.
1 Like
Following the guidance, I took the following approach which worked as required.
Customisation of Home Assistant sensor
homeassistant:
customize:
sensor.est_poe_32_8f51bc_metriful_temperature:
sensor: "Bosch Sensortec BME680"
accuracy: "± 0.5 - 1.0"
resolution: 0.1
minimum: -40
maximum: 85
Use of auto-entities
and template-entity-row
custom UI components to render the sensor information
type: custom:auto-entities
card:
type: entities
filter:
include:
- entity_id: sensor.*
attributes:
device_class: atmospheric_pressure
options:
type: custom:template-entity-row
name: >
{{ area_name('this.entity_id') }} - {{ state_attr('this.entity_id',
'friendly_name') }}
secondary: |
{{ state_attr('this.entity_id', 'sensor') }}
state: >
{{ states('this.entity_id') }} {{ state_attr('this.entity_id',
'unit_of_measurement') }}
exclude: []
sort:
method: state
numeric: true
1 Like