[APP][Pro] Home Assistant - Community App

Hi,

1st: You should think about removing the compound devices and replace it with custom devices.

About energy in general:
Homey only uses measure_power capability for the EnergyDashboard. That means, a device can only have one power capability. All others can only be added as subcapability (like measure_power.sub1) and aren’t used for EnergyDashboard.

So let’s start :slight_smile:
I also use the Fronius HA integration. There is also a Homey app, but importing HA data into custom devices is a lot more flexible. You will see why…

I thought about all energy values I want to have…

  • solar production
  • grid usage
  • grid feed-in
  • house usage
  • battery charging
  • battery discharging

So I added all as a custom device with custom icon.
Then I added the corresponding HA entity in rerpair view as measure_power capability.

Now you can change the device settings.
Select “solarpanel” as device class for your solar production device.


Set house usage and grid usage as “cumulative” power usage.

Feed-in is also set as “cumulative” but also as “include in total”. This way it’s counted as power usage and substracted from production.

Battery is a special one. The HA integration has a sensor which has positive value for battery discharging (usage) and negative for charging.
I want to see battery charging as “usage” power in Homey because it should be substracted from production.
Battery discharging “returns” this energy. It works like a solarpanel. So I defined this device also as “solarpanel” device class.
Both devices should only get “their” battery power part (negative/posisitve). I use the converter for:

Battery charging: Positive values are cleared (set to 0), negative values are used as negative (*1 to convert HA string state into numeric Homey value). Solar panels have to report negative values (see developer docs for details).

Battery discharging: same, but for positive range:

Good luck. To try the result, I used the mobile app for EnergyDashboarb while changing the devices in WebApp.

3 Likes