In Energy tab I am tracking energy consumed by 3 entities (X, Y and Z) from Shelly directly (Shelly 1PM and Shelly EM). I want to add new entity (A) which will show consumed energy as A = X - Y - Z but I don’t know how to define new entity A to be visible and addable within Energy tab?
Thanks. I previosuly defined device_class as energy but where do you think it should be defined? Within first chunk of code or second where energija_kompresor_dt: is defined.
If it is in second, it is visible in Energy tab without defined device_class but it is showing same value as directly from Shelly EM without decreasing.