#Hierarchical tree-like view of entities

1 messages · Page 1 of 1 (latest)

karmic gazelle
#

Is there any kind of (custom) component that lets you render a tree-like hierarchical view of entities? Ideally I would like something graphical, somewhat like the energy flow graph or the ZigBee network visualization.

#

Hierarchical tree-like view of entities

open mauve
#

What exactly are you envisioning? Are entities connected in this graph if e.g. one is a template/statistics sensor based on the other?

karmic gazelle
#

No smarts of any kind. It doesn't have to build or construct the tree. I tell it how to structure the tree, it renders it is all I want.

#

The basic Idea is to bring in smart plugs as a third level of detail below phases and circuits in my energy usage intelligence.

open mauve
karmic gazelle
#

🤔Not exactly what I had in mind, but it might just work...

open mauve
#

It's not ideal, I'm not a fan of Sankey charts but it's definitely the lowest effort option.
Beyond that you probably need to assemble it out of picture elements, or use ha-floorplan

karmic gazelle
#

You know, I hadn't considered that. That would be a project and a half, but it would be a possibility if all else fails.

open mauve
#

Honestly if you just want to display power usage numbers, ha-floorplan isn't that bad

  1. Inkscape to draw your design and place your text - name it the same as your entities
  2. little bit of yaml to link the two

e.g. here's the yaml to display the temperature of my rooms in my house:

- name: Temperature
  entities:
    - sensor.bedroom_temperature_temperature
    - sensor.living_room_temperature_temperature
    - sensor.office_temperature_temperature
  state_action:
    - service: floorplan.text_set
      service_data: >-
        ${(entity.state !== undefined) ? Math.round(entity.state *
        10) / 10 + "°C" : "unknown"}
karmic gazelle
#

I'm still faffing around with the sankey chart. Problem is, there is one device I have power for, but not consumption. I've fixed that by creating an integral sensor, which works and gives me numbers. If I look at it in the template debugger, I see exactly the same structure as one of my current clamp usage sensors from esphome. Problem is, sankey says it can't find the entity. I've never had to do anything special with helpers to make them usable in frontend, am I overlooking something?

open mauve
#

Weird.. have you set the measurement and device class to match? normally "total-increasing" and "energy"

karmic gazelle
#

That might be it. the measurement class is "Total" not "total icreasing". Question is, how do I control that? the helper has no option to set it.

open mauve
#

quick way to check is just make a template sensor that duplicates your integrator and uses total increasing