diff --git a/packages/water_ec.yaml b/packages/water_ec.yaml index 0afe6a2039bcfa0a4014076e727b3a14181d952b..8c41b8db5f8a5f75962303c3a77cb51d23465f32 100644 --- a/packages/water_ec.yaml +++ b/packages/water_ec.yaml @@ -45,10 +45,12 @@ button: - then: - lambda: |- float buffer_solution = -1; - if (id(ec).state > 0.9 && id(ec).state < 1.9) { // recognize 1.413us/cm buffer solution + // if (id(ec).state > 0.9 && id(ec).state < 1.9) { // recognize 1.413us/cm buffer solution + if (id(ec).state < 1.9) { // recognize 1.413us/cm buffer solution ESP_LOGI("ec", "Calibrating EC with 1.413 mS/cm solution"); buffer_solution = 1.413 * (1.0 + 0.0185 * (id(water_temperature).state - 25.0)); - } else if (id(ec).state > 9 && id(ec).state < 16.8) { // recognize 12.88ms/cm buffer solution + // } else if (id(ec).state > 9 && id(ec).state < 16.8) { // recognize 12.88ms/cm buffer solution + } else if (id(ec).state > 9) { // recognize 12.88ms/cm buffer solution buffer_solution = 12.88 * (1.0 + 0.0185 * (id(water_temperature).state - 25.0)); ESP_LOGI("ec", "Calibrating EC with 12.88 mS/cm solution"); } else {