bruxy70 / Garbage-Collection

🗑 Custom Home Assistant sensor for scheduling garbage collection (or other regularly re-occurring events - weekly on given days, semi-weekly or monthly)
MIT License
382 stars 90 forks source link

Sensor doesn't gets updated #386

Closed kazikskrz closed 2 years ago

kazikskrz commented 2 years ago

Before you submit a new bug report, please check that

Describe the bug

Created few sensors but non of them gets other values than null. What am I going wrong?

2022-04-06 21_47_47-Clipboard

Configuration

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.3.7",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.9.9",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Warsaw",
    "os_name": "Linux",
    "os_version": "5.10.108",
    "supervisor": "2022.03.5",
    "host_os": "Home Assistant OS 7.6",
    "docker_version": "20.10.9",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "daikin_residential": {
      "version": "2.2.0",
      "requirements": [
        "oic==1.2.1"
      ]
    },
    "dahua": {
      "version": "0.5.0",
      "requirements": []
    },
    "tauron_amiplus": {
      "version": "v2.0.4",
      "requirements": [
        "requests"
      ]
    },
    "webrtc": {
      "version": "v2.2.0",
      "requirements": []
    },
    "solis": {
      "version": "2.2.0",
      "requirements": []
    },
    "hacs": {
      "version": "1.24.3",
      "requirements": [
        "aiogithubapi>=21.11.0"
      ]
    },
    "garbage_collection": {
      "version": "4.6",
      "requirements": [
        "python-dateutil>=2.8.2"
      ]
    }
  },
  "integration_manifest": {
    "domain": "garbage_collection",
    "name": "Garbage Collection",
    "version": "4.6",
    "documentation": "https://github.com/bruxy70/Garbage-Collection/",
    "issue_tracker": "https://github.com/bruxy70/Garbage-Collection/issues",
    "iot_class": "calculated",
    "dependencies": [],
    "config_flow": true,
    "codeowners": [
      "@bruxy70"
    ],
    "requirements": [
      "python-dateutil>=2.8.2"
    ],
    "is_built_in": false
  },
  "data": {
    "entity_id": "sensor.bio",
    "state": "",
    "attributes": {
      "next_date": null,
      "days": null,
      "last_collection": null,
      "last_updated": null,
      "device_class": "garbage_collection__schedule"
    },
    "config_entry": {
      "entry_id": "fbbb0b24cdc1bcd1a7c52c7ffd6a805b",
      "version": 4.5,
      "domain": "garbage_collection",
      "title": "bio",
      "data": {
        "unique_id": "11855286-ca51-4505-9b88-3fb700b1a566",
        "frequency": "even-weeks",
        "icon_normal": "mdi:trash-can",
        "icon_today": "mdi:delete-restore",
        "icon_tomorrow": "mdi:delete-circle",
        "manual_update": true,
        "first_month": "jan",
        "last_month": "dec",
        "collection_days": [
          "fri"
        ],
        "verbose_state": true,
        "verbose_format": "on {date}, in {days} days",
        "date_format": "%d-%b-%Y"
      },
      "options": {},
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "user",
      "unique_id": null,
      "disabled_by": null
    }
  }
}

Debug logs

.
bruxy70 commented 2 years ago

You have configured it for manual update. I suppose you either did not configure the manual update automation, or it does not work.

kazikskrz commented 2 years ago

Please advise how to proceed to autoupdate sensors, thx

bruxy70 commented 2 years ago

I suppose you enabled the manual update for a reason? If yes, check the documentation. If not, disable the manual update.