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

Nnable to add 2nd sensor #383

Closed kazikskrz closed 2 years ago

kazikskrz commented 2 years ago

Before you submit a new bug report, please check that

Describe the bug

I have added first sensor and I right after that wanted to add few more. Unfortunatelly one I click on CONFIG button it shows be config of sensor I have created already. Removed/ installed/ Restarted HA several times already. Please advise.

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.103",
    "supervisor": "2022.03.5",
    "host_os": "Home Assistant OS 7.5",
    "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.1.0",
      "requirements": []
    },
    "hacs": {
      "version": "1.24.0",
      "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.test3",
    "state": 1,
    "attributes": {
      "next_date": "2022-03-29T00:00:00+02:00",
      "days": 1,
      "last_collection": null,
      "last_updated": "2022-03-28T14:41:58.140862+02:00",
      "device_class": "garbage_collection__schedule"
    },
    "config_entry": {
      "entry_id": "dc83e9e0a0b74147fd4990fadfa7ae30",
      "version": 4.5,
      "domain": "garbage_collection",
      "title": "test3",
      "data": {
        "unique_id": "b2c62cd4-83a4-4c6d-97f4-f7a04c1fa628",
        "frequency": "weekly",
        "icon_normal": "mdi:trash-can",
        "icon_today": "mdi:delete-restore",
        "icon_tomorrow": "mdi:delete-circle",
        "first_month": "jan",
        "last_month": "dec",
        "collection_days": [
          "tue"
        ]
      },
      "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

Just click add integration and add the second entity.

kazikskrz commented 2 years ago

I'm an i***t. Sorry for reporting this as bug.