mbuchber / ha_heliotherm

Home Assistant Custom Component for Heliotherm Heatpumps
16 stars 5 forks source link

Register 41 additional Value #33

Open cypher0815 opened 2 weeks ago

cypher0815 commented 2 weeks ago

Hi, could you please add value 40 with description "Extern" for Register 41? Brötje Neo 18 has an external heating circuit. When used the output of Register 41 is 40.

cypher0815 commented 4 days ago

I have to review. I changed this via try and error in init.py and it works for me:

    verdichteranforderung = modbusdata.registers[31]
    self.data["verdichteranforderung"] = (
        "unbekannt"
        if (verdichteranforderung == 10)
        else "Heizen"
        if (verdichteranforderung == 20)
        else "Warmwasser"
        if (verdichteranforderung == 30)
        else "Externe Anforderung"
        if (verdichteranforderung == 40)
        else "Keine"
    )