Add the entities to the min/max sensor

as I use Yaml mode, the min/max sensor is configured like:

  - platform: min_max
    name: Mean indoor temp
    type: mean
    entity_ids: &temp_sensors
      - sensor.temperatuur_living
      - sensor.dining_table_sensor_temperature
      - sensor.auditorium_sensor_temperature
      - sensor.frontdoor_sensor_temperature
      - sensor.library_sensor_temperature
      - sensor.dorm_sensor_temperature
      - sensor.corridor_sensor_temperature

as you can see, the list of entity_id’s is ready to be copied and pasted to be used in other logic, eg automations and groups. The anchors illustrates that nicely.

With 2022.4 we can now configure more and more via the UI, especially the helpers section, like this min/max sensor.

That’s very nice, because that way we can be 100% of the correct configuration. And very simple. point and click.

However, configuration via the UI doenst really ‘help’ if you want to return to that helper section to easily check the entity_id’s of the sensor, (we are presented with Names, not entity_id’s) .

added to that, we can not copy them in 1 single selection for use elsewhere in your config. This would not be a big issue, if it weren’t for the fact the entity_ids of the min/max sensors aren’t listed in the attributes at all:

hence this FR:

Please consider adding the list of comprising entity_id’s to the sensor, and to be in line with eg the platform: group entities, do that in an attribute ‘entity_id’:

binary_sensor:

switch:

ofc there are many other examples in the current HA setup that use this method of showing the contained entity_id’s.

this would allow us to check the dev tools State and quickly copy the entity_id’s,

or a bit more sophisticated, but still very default technique, use template :

{{state_attr('sensor.mean_indoor_temp','entity_id')}} to get to the entity_id’s:

This would be a great way to connect the ease and simplicity of the UI config with the more advanced needs of the Yaml config.

thanks for considering

IMHO it doesn’t belong in the state machine, as it is static data.
It cannot change on the fly.

Attributes are part of the state machine, thus consume memory and are recorded in history, which is not useful for something that is not dynamic.

Shorter: Its configuration, not state; thus should not be a state attribute.

I hear what you say.
All of that can be said of the regular groups too can’t it? they too have an attribute with the entity_id, that doesnt change on the fly (well, at least not the platform: group entities)

one could even think of the min/max sensor to be a special type of platform: group for that matter…?

… or we get a UI option to see and be able to copy the entity-Id as well for all entity dropdowns. As already requested for developer tools, etc. :wink: