Composite entities (power / energy, temperature / humidity)

Is there generic support for entities that have several values, eg. a current meter reading as well as a current power consumption, or a current temperature and humidity (while not being a full weather station)?

So far, I’m mapping devices with mixed functions out to several entities (eg. one for temperature and one for humidity), but the only link between them is in their metadata (state_attributes[“eltako-bus-address”]), and that’s insufficient to provide a neat user experience where those two things are always shown together.

I’ve looked into other sensors’ implementations (eg. sensors/dht.py), but they don’t do anything else either.

Is there a better home assistant story of how to expose such devices?

In a similar vein, how should sensor errors be reported?

So far, I’ve seen (and implemented) messages to the log if something goes awry, and occasionally implemented a “sensor is faulty” entity, but if there’s a way to make the sensor “flash red” (or whatever more user-interface-wise developers decide it should look like), that should help make such error states accessible to the end user.

[edit: the original entry was cut after half the text.]