LavermanJJ / home-assistant-solarfocus

🏡 Solarfocus eco manager touch integration for Home Assistant
Apache License 2.0
14 stars 4 forks source link

Add new Biomass boiler registers from v22.090 and v23.010 #42

Closed LavermanJJ closed 1 year ago

LavermanJJ commented 1 year ago

Add sensors and a button for the following entities: https://github.com/LavermanJJ/pysolarfocus/blob/7f40d0df8b71c5666b8526cbbb9c239a045ad06b/pysolarfocus/components/pellets_boiler.py#L25-L34

       if api_version.greater_or_equal(ApiVersions.V_22_090.value):
            self.sweep_function_start_stop = DataValue(address=10,register_type=RegisterTypes.Holding)
            self.sweep_function_extend = DataValue(address=11,register_type=RegisterTypes.Holding)

        if api_version.greater_or_equal(ApiVersions.V_23_010.value):
            self.pellet_usage_last_fill = DataValue(address=14,count=2,multiplier=0.1)
            self.pellet_usage_total = DataValue(address=16,count=2,multiplier=0.1)
            self.heat_energy_total = DataValue(address=18,count=2,multiplier=0.1)            

            self.pellet_usage_reset = DataValue(address=12,register_type=RegisterTypes.Holding)
LavermanJJ commented 1 year ago

@lein1013 would you like to contribute the sensor part from your fork?

https://github.com/LavermanJJ/home-assistant-solarfocus/blob/8713c2e4580c34a1cfdd1277fcd5d24f2f0b1628/custom_components/solarfocus/sensor.py#L551-L572

lein1013 commented 1 year ago

sure, I'll have a look to sync my fork and prepare a PR, You can assign the issue to me

LavermanJJ commented 1 year ago

Great, thanks!

lein1013 commented 1 year ago

@LavermanJJ I think the issue can be closed