I’m using the Ford integration which is a custom integration from HACS. This integrations shows me a lot of information regarding my Ford Focus. One of the things it can show me my fuel status. For this the Entity: sensor.fordpass_fuel excists. In basic it shows the number of percentage my fuellevel has dropped, but it can also share more information under this entity known as “DistanceToEmpty”. How to show this specific value in a gauge as it is not the primairy value of the entity, but the subinformation.
Hi,
You can use a template sensor to get the attribute in the template sensor state
-or-
you can use a custom card that is able to get the value from an attribute.
This is just a matter of choice, if you want to stick to core cards, use the template sensor
sensor:
- platform: template
sensors:
distance_to_empty:
friendly_name: "distance to empty"
unit_of_measurement: "kms"
value_template: "{{ state_attr('sensor.fordpass_fuel', 'DistanceToEmpty') }}"
and then use the gauge card with the newly created template sensor.distance_to_empty
Extra bonus : what you call “subinformation” is known as attribute in HA dialect.
Great, thank you for the information and bonus I will try this right away!