coolchip / node-red-contrib-luxtronik2

Node-RED node, that reads heat pumps based on the Luxtronik 2.0 contol unit. Supports for example Alpha Innotec and Siemens Novelan (WRP NET).
MIT License
7 stars 2 forks source link

Energy consumption #14

Open mojo2012 opened 1 year ago

mojo2012 commented 1 year ago

With the new firmware 2.88, the luxtronik device logs the consumed electricity. It would be nice to have those values available as well. I don't know if that is even possible - but it would be nice to actually reset them. That doesn't seem to be possible via the device though.

coolchip commented 7 months ago

Would be nice but I have an older pump. Unfortunatelly I cannot use the newer firmware.

Nexus1212 commented 4 months ago

Hello, I would also be very happy about this extension.

I understand the problem that your pump can't do that. How could we support this development?

mojo2012 commented 4 months ago

I found a nice way to estimate the used energy by multiplying the hot gas temperature with a factor, depending on the mode the pump is running in:

// this factor is estimated by observation
const factor = hotWaterProductionRunning
    ? 44 // hot water
    : 37; // heating

const estimatedHeatPumpEnergyUsage = (hotGasTemperature ?? 0) * factor;

This works surprisingly well!

I'm determining the state of the pump with this code:

const heatPumpRunning = 
    msg.payload?.values?.heatpump_state3 == 0 || // heizbetrieb
    msg.payload?.values?.heatpump_state3 == 8 || // pumpenvorlauf
    msg.payload?.values?.heatpump_state3 == 17 ||  // elek. zusatzheizung
    msg.payload?.values?.heatpump_state3 == 18;  // elek. zusatzheizung
const hotWaterProductionRunning = 
    msg.payload?.values?.heatpump_state3 == 5 || // brauchwasser
    msg.payload?.values?.heatpump_state3 == 9 || // thermische desinfektion
    msg.payload?.values?.heatpump_state3 == 19;  // warmwasser nachheizung

I know it is not always correct, but worked good enough for me. There is also the possibility of interpreting the german status text though.

coolchip commented 4 months ago

@mojo2012 Thats better than nothing. Looks good. Do you want to send me a pull request?

mojo2012 commented 4 months ago

I don't know if I have enough time in the next weeks, but I can try.

mojo2012 commented 2 weeks ago

I added a PR in the luxtronik2 repo: https://github.com/coolchip/luxtronik2/pull/53