A quick follow-up question: In Gladys, I find my Linkee TIC twice:
Once directly as a Gladys device
Once as an MQTT virtual device
In the energy tracking integration, I see a linkee-tic with its meters in a tree structure (zigbee2mqtt) and various meters (homeassistant-zigbee2mqtt), all at level 0
If I understand correctly, my energy tracking widget is based on the meters of the Gladys linkee-tic
However, I find my Sonoff plugs and my Ecojoko in the tree structure of my linky-tic.
Should I delete the homeassistant-zigbee2mqtt?
Should I move my Sonoff plugs from the linkee tree structure?
I’m having a bit of trouble seeing the different elements and understanding if some are related.
Could you take a screenshot (removing personal elements if I learn) of the different devices you’re talking about?
For energy tracking, the header elements are indeed at level 0.
And it’s not a problem if you have several.
On my end, I have a virtual MQTT meter created via the energy tracking integration, to which I’ve added my outlets (level 1) and other elements (always level 1) that consume energy. Of course, this meter doesn’t give me ALL of my home’s consumption because not all of my outlets and lamps are smart.
Then I have virtual MQTT devices to track my Tempo indexes (6 in total) that I retrieve with custom topics. These topics point to a docker « teleinfo2mqtt ». They allow me to know my electricity consumption and the associated cost. These don’t have “children”, just at level 0, and give me exactly what I consume and what it costs me for each index, that’s my real consumption.
I haven’t set a parent (new virtual meter) but now I’m thinking it might be good to have the total.
I could provide other screenshots if necessary, but I’m a bit lost between the different meters and I have the impression of having duplicates (the Linky directly in Gladys and what Gladys seems to retrieve from Home Assistant)
Note that, in Gladys, I have configured the access to MQTT which is configured on my Home Assistant (I thought it was a bit silly to manage 2 MQTT instances)
Thanks for your screenshots, indeed having exactly the same names doesn’t make the analysis easier.
It would be helpful to rename one of the two as _1 to see who is who.
Now from my point of view, if we look at your two meters:
you can see that the one linked to zigbee2mqtt seems to be the main one and the one to keep.
The one in MQTT virtual device comes from HA given its name, it must have been created by taking the information from your HA MQTT instance and the possibility of automatically retrieving HA devices:
In short, the information from your zigbee2mqtt device is retrieved directly, the other information goes through HA and then is sent to MQTT and Gladys retrieves it → not great as a path, I prefer to reduce the number of intermediaries.
My advice: rename the one from HA to _1 to see more clearly in the energy monitoring first.
In a second step, I think you will be able to delete the virtual device from HA.
We would also need a screenshot of the energy monitoring like this to see: