home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.14k stars 29.82k forks source link

SCAPE integration fails to update after scan_interval #123976

Open mrh270188 opened 4 weeks ago

mrh270188 commented 4 weeks ago

The problem

When using the SCAPE integration, I observe the following behavior:

  1. The value is correctly received when the integration starts.
  2. After the scan_interval has elapsed, the value becomes "unknown".
  3. The value remains "unknown" until Home Assistant or the integration is restarted.

Expected behavior: The integration should update regularly according to the set scan_interval, without requiring a restart.

What version of Home Assistant Core has the issue?

core-2024.8.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

scape

Link to integration documentation on our website

https://www.home-assistant.io/integrations/scrape/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.scrape.sensor
Source: components/scrape/sensor.py:189
integration: Scrape (documentation, issues)
First occurred: 09:19:05 (11 occurrences)
Last logged: 10:26:40

Index '0' not found in sensor.dualsense_edge_stick_module
Index '1' not found in sensor.dualsense_edge_stick_module
Index '2' not found in sensor.dualsense_edge_stick_module
Index '3' not found in sensor.dualsense_edge_stick_module
Index '4' not found in sensor.dualsense_edge_stick_module

Additional information

No response

home-assistant[bot] commented 4 weeks ago

Hey there @fabaff, @gjohansson-st, mind taking a look at this issue as it has been labeled with an integration (scrape) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `scrape` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign scrape` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


scrape documentation scrape source (message by IssueLinks)

gjohansson-ST commented 4 weeks ago

Could you provide your full config?

mrh270188 commented 4 weeks ago

I've configured the integration from GUI, but this is the generated config from the core.config_entries and some screenshots. Please let me know if you need something else:

    {
    "created_at": "2024-08-14T17:22:22.536968+00:00",
    "data": {},
    "disabled_by": null,
    "domain": "scrape",
    "entry_id": "01J58YJZP83316JVMJJWEDEFQM",
    "minor_version": 1,
    "modified_at": "2024-08-15T08:16:40.467875+00:00",
    "options": {
      "resource": "https://direct.playstation.com/nl-nl/buy-accessories/stick-module-for-dualsense-edge-wireless-controller",
      "method": "GET",
      "verify_ssl": false,
      "timeout": 10.0,
      "encoding": "UTF-8",
      "sensor": [
        {
          "name": "Dualsense Edge Stick Module",
          "select": ".productHero-info .js-out-stock-wrpr .sony-text-body-1",
          "index": 0,
          "unique_id": "c469b3e4-5a61-11ef-ba4e-001e064369d5"
        }
      ]
    }

resource sensor