#Hi all. What are the requirements for

1 messages · Page 1 of 1 (latest)

ocean zinc
#

The entities look OK (well, apart from null device_class, but HA seems ot use the original_device_class in the lookup)

      {
        "aliases": [],
        "area_id": null,
        "capabilities": {
          "state_class": "measurement"
        },
        "config_entry_id": "ed5ed7373f353272b8ace60338ab2334",
        "device_class": null,
        "device_id": "a1d008f3ce5cb544851e73f2ee5dd1c9",
        "disabled_by": null,
        "entity_category": null,
        "entity_id": "sensor.apollo_air_1_cdb358_pm_2_5_m_weight_concentration",
        "hidden_by": null,
        "icon": null,
        "id": "71e8f6797137d492e6a9464ed1f5d300",
        "has_entity_name": true,
        "labels": [],
        "name": null,
        "options": {
          "conversation": {
            "should_expose": true
          }
        },
        "original_device_class": "pm25",
        "original_icon": "mdi:chemical-weapon",
        "original_name": "PM <2.5µm Weight concentration",
        "platform": "esphome",
        "supported_features": 0,
        "translation_key": null,
        "unique_id": "74:4D:BD:CD:B3:58-sensor-pm__2_5_m_weight_concentration",
        "previous_unique_id": null,
        "unit_of_measurement": "µg/m³"
      },
dark sparrow
#

same unit and same device class I believe

ocean zinc
#

All the google results for "why HA showing >1 graph for same unit" seem to be people not paying attention to their uom. Yet mine appear identical, even checked in entity file :/

#

Hmm, why does device class have to be the same?

dark sparrow
#

I think it was desired to not show things like battery percent and humidity percent on the same graph, despite that they both have '%' as the unit.

#

just trying to keep like-types together.

ocean zinc
#

All these are technically device_class=null (but have different original_device_class)

#

I'll try a couple that have original_dc=null also, see if they merge

dark sparrow
#

I'm not sure about original_device_class, but it's whatever device_class that shows up in the entity attributes that matters I believe

ocean zinc
#

how can I see the device class for an entity, in HA UI?

dark sparrow
#

developer-tools/state

#

check the attributes

ocean zinc
#

thanks. yeah they're all different.