Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Second Calc wont work #337

Closed
1 task done
silvar05123 opened this issue Apr 1, 2024 · 10 comments
Closed
1 task done

Second Calc wont work #337

silvar05123 opened this issue Apr 1, 2024 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@silvar05123
Copy link

What happened?

Hello,

the second calc stays on 0s but the bucket is crowing.

ID
5
Size
9,4
Throughput
3
State
automatic
Bucket
27,92

How to reproduce

start a calc via service trigger wont update the seconds sensor for the Zone

Relevant log output

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2024.3.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.12.2",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "6.6.20-haos",
    "supervisor": "2024.03.1",
    "host_os": "Home Assistant OS 12.1",
    "docker_version": "24.0.7",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "hacs": {
      "version": "1.34.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "powercalc": {
      "version": "v1.11.3",
      "requirements": [
        "numpy>=1.21.1"
      ]
    },
    "smart_irrigation": {
      "version": "v2024.3.1",
      "requirements": []
    },
    "edl21": {
      "version": "2.0.0",
      "requirements": [
        "pysml==0.0.8"
      ]
    },
    "files": {
      "version": "1.5",
      "requirements": []
    },
    "localtuya": {
      "version": "5.2.1",
      "requirements": []
    },
    "thermia": {
      "version": "1.0",
      "requirements": [
        "ThermiaOnlineAPI==4.1.1"
      ]
    },
    "dwains_dashboard": {
      "version": "3.6.0",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "smart_irrigation",
    "name": "Smart Irrigation",
    "codeowners": [
      "@jeroenterheerdt"
    ],
    "config_flow": true,
    "dependencies": [
      "http",
      "panel_custom"
    ],
    "documentation": "https://github.com/jeroenterheerdt/HASmartIrrigation",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/jeroenterheerdt/HASmartIrrigation/issues",
    "requirements": [],
    "version": "v2024.3.1",
    "is_built_in": false
  },
  "data": {
    "config": {
      "entry_id": "0e08a91dd6f4f5c633512b75359b813a",
      "version": 1,
      "minor_version": 1,
      "domain": "smart_irrigation",
      "title": "Smart Irrigation",
      "data": {
        "owm_api_key": "XXXXXXXX",
        "owm_api_version": "3.0",
        "use_owm": true,
        "name": "Bew\u00e4sserung"
      },
      "options": {},
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "user",
      "unique_id": "Bew\u00e4sserung",
      "disabled_by": null
    },
    "storage": {
      "config": {
        "calctime": "23:00",
        "units": "metric",
        "use_owm": true,
        "autocalcenabled": true,
        "autoupdateenabled": true,
        "autoupdateschedule": "hours",
        "autoupdatedelay": "0",
        "autoupdateinterval": "1",
        "autoclearenabled": true,
        "cleardatatime": "23:59",
        "starteventfiredtoday": false
      },
      "zones": [
        {
          "id": 0,
          "name": "Osten Rasen",
          "size": 50.5,
          "throughput": 20.5,
          "state": "automatic",
          "bucket": 28.01617744395816,
          "old_bucket": 24.559272823521876,
          "delta": 3.4569046204362825,
          "duration": 0,
          "module": 0,
          "multiplier": 1.0,
          "explanation": "Beachte: Diese Beschreibung nutzt '.' als Dezimalzeichen und zeigt gerundete Werte. Das Modul berechnete einen Evapotranspirationsmangel von 3.5. Der alte Vorrat war 24.6.<br/>Der maximale Vorrat ist 50.0.Der neue Vorrat ist [alter_Vorrat]+[Ver\u00e4nderung]=24.6+3.5=28.0.<br/>Wenn der Vorrat >= 0 ist, ist keine Bew\u00e4sserung n\u00f6tig und die Dauer ist gleich 0",
          "mapping": 0,
          "lead_time": 0.0,
          "maximum_duration": 3600.0,
          "maximum_bucket": 50,
          "last_calculated": "2024-04-01T13:42:50.902110"
        },
        {
          "id": 1,
          "name": "S\u00fcden Rasen",
          "size": 140.0,
          "throughput": 19.8,
          "state": "automatic",
          "bucket": 27.916177443958162,
          "old_bucket": 24.45927282352188,
          "delta": 3.4569046204362825,
          "duration": 0,
          "module": 0,
          "multiplier": 1.0,
          "explanation": "Beachte: Diese Beschreibung nutzt '.' als Dezimalzeichen und zeigt gerundete Werte. Das Modul berechnete einen Evapotranspirationsmangel von 3.5. Der alte Vorrat war 24.5.<br/>Der maximale Vorrat ist 50.0.Der neue Vorrat ist [alter_Vorrat]+[Ver\u00e4nderung]=24.5+3.5=27.9.<br/>Wenn der Vorrat >= 0 ist, ist keine Bew\u00e4sserung n\u00f6tig und die Dauer ist gleich 0",
          "mapping": 0,
          "lead_time": 0.0,
          "maximum_duration": 3600.0,
          "maximum_bucket": 50,
          "last_calculated": "2024-04-01T13:42:51.065785"
        },
        {
          "id": 2,
          "name": "Westen Rasen",
          "size": 70.0,
          "throughput": 20.0,
          "state": "automatic",
          "bucket": 27.916177443958162,
          "old_bucket": 24.45927282352188,
          "delta": 3.4569046204362825,
          "duration": 0,
          "module": 0,
          "multiplier": 1.0,
          "explanation": "Beachte: Diese Beschreibung nutzt '.' als Dezimalzeichen und zeigt gerundete Werte. Das Modul berechnete einen Evapotranspirationsmangel von 3.5. Der alte Vorrat war 24.5.<br/>Der maximale Vorrat ist 50.0.Der neue Vorrat ist [alter_Vorrat]+[Ver\u00e4nderung]=24.5+3.5=27.9.<br/>Wenn der Vorrat >= 0 ist, ist keine Bew\u00e4sserung n\u00f6tig und die Dauer ist gleich 0",
          "mapping": 0,
          "lead_time": 0.0,
          "maximum_duration": 3600.0,
          "maximum_bucket": 50,
          "last_calculated": "2024-04-01T13:42:51.259911"
        },
        {
          "id": 3,
          "name": "Terrasse Rasen",
          "size": 130.0,
          "throughput": 16.6,
          "state": "automatic",
          "bucket": 27.916177443958162,
          "old_bucket": 24.45927282352188,
          "delta": 3.4569046204362825,
          "duration": 0,
          "module": 0,
          "multiplier": 1.0,
          "explanation": "Beachte: Diese Beschreibung nutzt '.' als Dezimalzeichen und zeigt gerundete Werte. Das Modul berechnete einen Evapotranspirationsmangel von 3.5. Der alte Vorrat war 24.5.<br/>Der maximale Vorrat ist 50.0.Der neue Vorrat ist [alter_Vorrat]+[Ver\u00e4nderung]=24.5+3.5=27.9.<br/>Wenn der Vorrat >= 0 ist, ist keine Bew\u00e4sserung n\u00f6tig und die Dauer ist gleich 0",
          "mapping": 0,
          "lead_time": 0.0,
          "maximum_duration": 3600.0,
          "maximum_bucket": 50,
          "last_calculated": "2024-04-01T13:42:51.415555"
        },
        {
          "id": 4,
          "name": "Hecke",
          "size": 20.0,
          "throughput": 5.8,
          "state": "automatic",
          "bucket": 27.916177443958162,
          "old_bucket": 24.45927282352188,
          "delta": 3.4569046204362825,
          "duration": 0,
          "module": 0,
          "multiplier": 1.0,
          "explanation": "Beachte: Diese Beschreibung nutzt '.' als Dezimalzeichen und zeigt gerundete Werte. Das Modul berechnete einen Evapotranspirationsmangel von 3.5. Der alte Vorrat war 24.5.<br/>Der maximale Vorrat ist 50.0.Der neue Vorrat ist [alter_Vorrat]+[Ver\u00e4nderung]=24.5+3.5=27.9.<br/>Wenn der Vorrat >= 0 ist, ist keine Bew\u00e4sserung n\u00f6tig und die Dauer ist gleich 0",
          "mapping": 0,
          "lead_time": 0.0,
          "maximum_duration": 3600.0,
          "maximum_bucket": 50,
          "last_calculated": "2024-04-01T13:42:51.605457"
        },
        {
          "id": 5,
          "name": "Beete",
          "size": 9.4,
          "throughput": 3.0,
          "state": "automatic",
          "bucket": 27.916177443958162,
          "old_bucket": 24.45927282352188,
          "delta": 3.4569046204362825,
          "duration": 0,
          "module": 0,
          "multiplier": 1.0,
          "explanation": "Beachte: Diese Beschreibung nutzt '.' als Dezimalzeichen und zeigt gerundete Werte. Das Modul berechnete einen Evapotranspirationsmangel von 3.5. Der alte Vorrat war 24.5.<br/>Der maximale Vorrat ist 50.0.Der neue Vorrat ist [alter_Vorrat]+[Ver\u00e4nderung]=24.5+3.5=27.9.<br/>Wenn der Vorrat >= 0 ist, ist keine Bew\u00e4sserung n\u00f6tig und die Dauer ist gleich 0",
          "mapping": 0,
          "lead_time": 0.0,
          "maximum_duration": 3600.0,
          "maximum_bucket": 50,
          "last_calculated": "2024-04-01T13:42:51.762364"
        }
      ],
      "modules": [
        {
          "id": 0,
          "name": "PyETO",
          "description": "Die Berechnung der Verunstungsrate basiert auf der FAO56-Formel aus der PyETO-Bibliothek.",
          "config": {
            "forecast_days": "3"
          },
          "schema": [
            {
              "type": "boolean",
              "name": "coastal",
              "optional": true,
              "default": false
            },
            {
              "type": "select",
              "options": [
                [
                  "1",
                  "EstimateFromTemp"
                ],
                [
                  "2",
                  "EstimateFromSunHours"
                ],
                [
                  "3",
                  "DontEstimate"
                ]
              ],
              "name": "solrad_behavior",
              "required": true,
              "default": "1"
            },
            {
              "type": "integer",
              "name": "forecast_days",
              "required": true,
              "default": 0
            }
          ]
        },
        {
          "id": 1,
          "name": "Static",
          "description": "Modul mit einer statisch konfigurierbaren Verdunstungsrate..",
          "config": null,
          "schema": [
            {
              "type": "float",
              "name": "delta",
              "required": true,
              "default": 0.0
            }
          ]
        }
      ],
      "mappings": [
        {
          "id": 0,
          "name": "Standard Sensorgruppe",
          "mappings": {
            "Dewpoint": {
              "source": "owm",
              "sensorentity": "openweathermap_dew_point",
              "unit": ""
            },
            "Evapotranspiration": {
              "source": "none",
              "sensorentity": "",
              "unit": "",
              "static_value": "5"
            },
            "Humidity": {
              "source": "sensor",
              "sensorentity": "lumigarage_luftfeuchtigkeit",
              "unit": ""
            },
            "Precipitation": {
              "source": "owm",
              "sensorentity": "openweathermap_rain",
              "unit": ""
            },
            "Pressure": {
              "source": "owm",
              "sensorentity": "openweathermap_pressure",
              "unit": ""
            },
            "Solar Radiation": {
              "source": "none",
              "sensorentity": "",
              "unit": ""
            },
            "Temperature": {
              "source": "owm",
              "sensorentity": "openweathermap_forecast_temperature",
              "unit": ""
            },
            "Windspeed": {
              "source": "sensor",
              "sensorentity": "kmh",
              "unit": "km/h"
            }
          },
          "data": [],
          "data_last_updated": "2024-04-01T13:34:30.583450"
        }
      ]
    }
  }
}

Which version are you running?

v2024.3.1

Diagnostics file

  • I have attached a diagnostics file

Additional information

No response

@silvar05123 silvar05123 added the bug Something isn't working label Apr 1, 2024
@jeroenterheerdt
Copy link
Owner

jeroenterheerdt commented Apr 1, 2024 via email

@silvar05123
Copy link
Author

silvar05123 commented Apr 1, 2024 via email

@jeroenterheerdt
Copy link
Owner

jeroenterheerdt commented Apr 1, 2024 via email

@silvar05123
Copy link
Author

silvar05123 commented Apr 1, 2024 via email

@silvar05123
Copy link
Author

silvar05123 commented Apr 1, 2024 via email

@jeroenterheerdt
Copy link
Owner

ok, so at least there is no error any more. So your bucket is > 0 ,right? Then of course the duration is 0. The duration is only >0 when bucket < 0.

@silvar05123
Copy link
Author

silvar05123 commented Apr 1, 2024 via email

@jeroenterheerdt
Copy link
Owner

yes, that's how the bucket works...

@silvar05123
Copy link
Author

silvar05123 commented Apr 2, 2024 via email

@silvar05123
Copy link
Author

Missunderstood bucket calc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants