segalion / raspipool

Swimming Pool Automation Systen with Raspberry Pi + Home Assistant
MIT License
393 stars 73 forks source link

Free Chlorine Sensor #33

Open cloudbr34k84 opened 1 year ago

cloudbr34k84 commented 1 year ago

I already have sensor that that are calculating the Temp, pH and ORP.

I'm trying to understand your FC sensor and struggling to understand how the template. What does the ('input_number.e_fc_adjust')

I dont know what the FC is, hence i was hoping this template would give me that? What am i missing?

        value_template: "{{ ( 0.23 * (1 + states('input_number.e_fc_adjust')|float / 100 ) * ( 14 - states('sensor.ph_mean')|float) ** ( 1 / (400 - states('sensor.orp_mean')|float) ) * ( states('sensor.ph_mean')|float -4.1) ** ( ( states('sensor.orp_mean')|float - 516)/145) + 10.0 ** ( (states('sensor.orp_mean')|float + states('sensor.ph_mean')|float * 70 -1282) / 40 ) ) |round(1) }}"