dominikamann / oekofen-pellematic-compact

A Ökofen Pellematic Compact Integration based on JSON/TCP-Inteface for Home Assistant.
Apache License 2.0
34 stars 7 forks source link

"Pellematic Power - Total" remains unknown #85

Closed paulbusse closed 2 weeks ago

paulbusse commented 2 weeks ago

Hi

the sensor Pellematic Power - Total remains unknown. In const.py it says

 "L_total_pv": [
        "Power - Total pv",
        "L_total_pv",
        UnitOfEnergy.KILO_WATT_HOUR,
        None,
    ],

The key is not L_total_pvbut rather L_pv_total as shown below.

 "power":{
  "power_info":"powermeter data",
  "L_usage":{"val":226, "unit":"W", "factor":1, "min":-32768, "max":32767}, 
  "L_pv_total":{"val":0, "unit":"W", "factor":1}, 
  "L_pv_1":{"val":0, "unit":"W", "factor":1}, 
  "L_pv_2":{"val":0, "unit":"W", "factor":1}, 
  "L_from_grid":{"val":226, "unit":"W", "factor":1, "min":-32768, "max":32767}, 
  "L_to_grid":{"val":0, "unit":"W", "factor":1, "min":-32768, "max":32767}, 
  "L_p1":{"val":-278, "unit":"W", "factor":1, "min":-32768, "max":32767}, 
  "L_p2":{"val":239, "unit":"W", "factor":1, "min":-32768, "max":32767}, 
  "L_p3":{"val":272, "unit":"W", "factor":1, "min":-32768, "max":32767}, 
  "L_batt_in":{"val":0, "unit":"W", "factor":1, "min":-32768, "max":32767}, 
  "L_batt_out":{"val":0, "unit":"W", "factor":1, "min":-32768, "max":32767}, 
  "L_batt_chg":{"val":0, "unit":"%", "factor":1, "min":-32768, "max":32767}, 
  "L_batt_enabled":{"val":0, "format":"0:Inactief|1:Actief"}, 
  "L_pwr_out_per":{"val":0, "unit":"%", "factor":1, "min":0, "max":100}, 
  "L_pwr_out":{"val":0, "unit":"W", "factor":1, "min":-32768, "max":32767}, 
  "L_power2car":{"val":0, "unit":"W", "factor":1, "min":-32768, "max":32767}, 
  "L_today_total":{"val":34000, "unit":"kWh", "factor":1.0E-4}, 
  "L_today_in":{"val":43000, "unit":"kWh", "factor":1.0E-4}, 
  "L_today_out":{"val":9000, "unit":"kWh", "factor":1.0E-4}, 
  "L_state":{"val":2, "factor":1}, 
  "L_total":{"val":22015000, "factor":1}, 
  "L_yesterday":{"val":39000, "unit":"kWh", "factor":1.0E-4}, 
  "L_total_tyristor":{"val":6762063, "unit":"kWh", "factor":1.0E-4}, 
  "L_yesterday_tyristor":{"val":8856, "unit":"kWh", "factor":1.0E-4}, 
  "L_total_car":{"val":0, "unit":"kWh", "factor":1.0E-4}, 
  "L_yesterday_car":{"val":0, "unit":"kWh", "factor":1.0E-4}, 
  "L_total_pv":{"val":0, "unit":"kWh", "factor":1.0E-4},
  "L_yesterday_pv":{"val":0, "unit":"kWh", "factor":1.0E-4}, 
  "L_today_batt_in":{"val":0, "factor":1}, 
  "L_today_batt_out":{"val":0, "factor":1}, 
  "L_yesterday_batt_in":{"val":0, "factor":1}, 
  "L_yesterday_batt_out":{"val":0, "factor":1}, 
  "L_output_mode":{"val":1, "format":"0:Uit|1:Aan"}, 
  "L_range":{"val":2000, "unit":"W", "factor":1, "min":500, "max":10000}, 
  "L_offset":{"val":100, "unit":"W", "factor":1, "min":0, "max":10000}, 
  "L_total_in":{"val":32479000, "factor":1}, 
  "L_total_out":{"val":10464000, "factor":1}, 
  "L_yesterday_in":{"val":58000, "unit":"kWh", "factor":1.0E-4}, 
  "L_yesterday_out":{"val":19000, "unit":"kWh", "factor":1.0E-4}, 
  "offtemp":{"val":650, "unit":"°C", "factor":0.1, "min":300, "max":900}
 },
dominikamann commented 2 weeks ago

Hi,

looks like they changed the API again … . What version do you use?

See https://github.com/dominikamann/oekofen-pellematic-compact/discussions/26

paulbusse commented 2 weeks ago

Ha - I'm at 4.00b.

If the newer version uses total_pv, I'll upgrade the pellematic software.

On a side note, I'm wondering why you create and a sensor and a number for e.g. temp_setback?

dominikamann commented 2 weeks ago

You have an very old version. Check our discussions page ... I would recommend an update. They fixed many issues with the heater. Regarding your side node I think it was added here https://github.com/dominikamann/oekofen-pellematic-compact/pull/82. First we did not had the support to control only read. Later the "number" sensors was added. To avoid breaking changes the old sensors was not "deleted".

dominikamann commented 2 weeks ago

Issue closed as it seems to be related to an old heater version. Please reopen if after updated it still does not work 👍