elupus / esphome-nibe

Esphome components for nibe heat pumps
MIT License
69 stars 20 forks source link

RMU40 Sensor #47

Closed delabrava closed 1 year ago

delabrava commented 1 year ago

Great work, just one thing I miss, and that's the possibility to emulate a room sensor. Reviewing how that is done in the nibepi project I see it's done by emulate a RMU40 where it writes the room temperature to register 10060.

How can we access same register using this integration(esphome-nibe), is the limitation of registers maybe within the scope of the nibegw project?

{"register":"10060","factor":10,"size":"s16","mode":"R/W","titel":"RMU Temp S1","info":"","unit":"°C","min":"0","max":"0"},

elupus commented 1 year ago

Its within scope. Just not figured our a good API yet. I might cheat and fix it with home assistant sensors.

delabrava commented 1 year ago

Thanks for you reply.

Not sure what you mean by cheating, 😊 maybe it's the same thing as I'm doing already? I've created a template sensor to calculate the heatcurve offset and updating it using an automation.

I'm closing this, was mostly curios if there where some plans of implementing RMU40 registers or not.

egisz commented 1 year ago

calculate the heatcurve offset and updating it using an automation.

Hi, I'm new to esphome-nibe and I would like to automate based on 3rd party room temperature sensor (Shelly H&H Plus) as I don't have installed Nibe room sensor... Is your case same? Could you share sensor template and automation code?

Or even better, it would be nice to fake RMU40 and send 3rd party sensors temperature pretending as RMU40. This way maybe we don't need HA automation, but configure in Nibe itself. As I understand in README, full config last lines does that, just constant temperature, right?

    # Constant fixed temperature to avoid pump going into alarm.
    - address: RMU40_S4
      token: RMU_WRITE
      data: [
            0x06, # Temperature
            0x14, # degrees low
            0x00, # degrees high
      ]
elupus commented 1 year ago

Yup. I am split. On one hand i want the gw unlt to be as simple as possible. On the other hand pretending to be a RMU within standard esphome infra would also be cool.

egisz commented 1 year ago

I replaced RMU40_S4 to RMU40_S1, enabled in Nibe 5.2.4 menu and it now shows 1C indoor temperature. According RMU40 manual it ignores RMU40 if BT50 is connected and it seems it must start from id 1 to be read. I cannot understand why it shows such small number, but in general it proves that it works. Could you explain how to encode right temperature?

egisz commented 1 year ago

I managed to fake RMU40 sensor, created PR#52. Feedback is very welcome.