denpamusic / homeassistant-plum-ecomax

Plum ecoMAX boiler controller integration for Home Assistant.
MIT License
29 stars 7 forks source link

activating fuel consumption #75

Open expansing opened 4 months ago

expansing commented 4 months ago

Is there an existing issue for this?

I'm having the following issue:

Fuel consumption entity is not enabled.

I have following devices connected:

I'm connecting to my devices using:

Ethernet/WiFi to RS-485 converter

I'm seeing following log messages:

No response

My diagnostics data:

Hi. I have ecoMAX 810P-L and would like to activate the fuel consumption & total fuel burned options. How Can I enable that entity?

Code of Conduct

denpamusic commented 4 months ago

Hi,

Thank you for the feedback.

Since you didn't provide diagnostics, I can only assume, but since you have both "Fuel consumption" and "Total fuel burned" entities deactivated, that's usually simply means that your controller doesn't send fuel consumption as part of SENSOR_DATA message, so there's no way for you to activate it manually.

There's however a chance, that you boiler sends fuel consumption as part of REG_DATA message, and you will be able to add it as a custom entity once I finish #58, but without diagnostics I can't really tell. Sorry.

expansing commented 4 months ago

Hi. Thank you for your reply. I have attached the diagnostics as requested. config_entry-plum_ecomax-ca202dba62901f9d41033f5a4dd10986.json You might be right. I do have Fuel level but not fuel consumption on the panel or econet24.com website.

I also see this options that is not enabled Total fuel burned 1 with this note 1 Special meter entity. It counts burned fuel when HomeAssistant is running. This one can be somehow added to the HA? Best Regards, Cornel

denpamusic commented 4 months ago

Thank you very much for your help!

From the diagnostics, it's really seem like fuel consumption is missing from the data, provided by your device.

As for Total fuel burned, it's calculated by PyPlumIO (underlying library for this integration), based on the fuel consumption data. Because your device doesn't provide fuel consumption data, the software cannot calculate total burned fuel, so both of those entities are disabled for you.

Sadly there's really not much I can do about it.

To illustrate my point, below are an excerpt from the ecoMAX920 diagnostics as an example:

{
      ...
      "water_heater_status": 0,
      "pending_alerts": 0,
      "fuel_level": 107,
      "transmission": 4,
      "fan_power": 39.393898010253906,
      "load": 72,
      "power": 8.753849029541016,
      "fuel_burned": 0.0012306292132478486,
      "fuel_consumption": 1.9850000143051147,
      "thermostat": 1,
      ...
}

Compared to your data below: I can see that you're not only missing fuel consumption, but also "load" entity, since with your device it's called "boiler_load" for some reason and the integration doesn't yet know how to deal with it.

{
      ...
      "water_heater_status": 0,
      "pending_alerts": 0,
      "fuel_level": 83,
      "transmission": 9,
      "fan_power": 25.0,
      "boiler_load": 30,
      "thermostat": 1,
      ...
}

edit. Sorry for confusion, I renamed it myself in PyPlumIO for 0.5.x and completely forgotten about it so disregard the above statement about load.