#Hierarchical tree-like view of entities
1 messages · Page 1 of 1 (latest)
What exactly are you envisioning? Are entities connected in this graph if e.g. one is a template/statistics sensor based on the other?
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.
🤔Not exactly what I had in mind, but it might just work...
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
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.
Honestly if you just want to display power usage numbers, ha-floorplan isn't that bad
- Inkscape to draw your design and place your text - name it the same as your entities
- 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"}
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?
Weird.. have you set the measurement and device class to match? normally "total-increasing" and "energy"
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.
quick way to check is just make a template sensor that duplicates your integrator and uses total increasing