I have a sensor that gives me the time a bus leaves from a station. Showing this in HADashboard works fine, but I would like to add a second line showing the current delay (which is an attribute of the original sensor).
sometimes @aimc really throws suprises at me
i didnt know he has added this feature at all, so i never tried it out myselve.
so i looked it up in the docs.
im having a bit of a hard time understanding it also, so i read it several times.
i hope i understand it correctly now and i hope that andrew confirms that.
you can show 2 sensor values in 1 widget (entity and sub-entity)
if you like you can use an attribute from a sensor at the place from 1 of the entities.
entity shows first and sub entity second so that why you can use the main sensor as entity or as sub_entity
when you want to use an attribute from a sensor at the place from 1 of the 2 entity places you need to use the entity_to_sub_entity_attribute or sub_entity_to_entity_attribute option.
so far the theory, now lets get it to work.
i think in your case it should be:
i hope that i understood it right, but if so the naming from the options are a little confusing.
i would expect it to be called attribute_to_entity or attribute_to_sub_entity.