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
74.08k stars 31.09k forks source link

CUPS doesn't work with no errors #114268

Open 532910 opened 8 months ago

532910 commented 8 months ago

The problem

configuration.yaml:

sensor:
  - platform: cups
    host: ### 192.168.5.6
    printers: [ samsung ]

log shows:

% grep -i cups home-assistant_2024-03-26T20-29-08.706Z.log
2024-03-26 22:04:27.304 INFO (SyncWorker_6) [homeassistant.loader] Loaded cups from homeassistant.components.cups
2024-03-26 22:04:27.368 INFO (MainThread) [homeassistant.components.sensor] Setting up cups.sensor

What version of Home Assistant Core has the issue?

core-2024.3.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

simowilso commented 7 months ago

I've just noticed this too. not sure when it stopped working, but my CUPS sensor no longer exists.

image

simowilso commented 7 months ago

@fabaff any chance you could take a look please?

simowilso commented 7 months ago

Still an issue in 2024.4.4

home-assistant[bot] commented 7 months ago

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

Code owner commands Code owners of `cups` 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 cups` 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)


cups documentation cups source (message by IssueLinks)

simowilso commented 6 months ago
still an issue :(
simowilso commented 5 months ago

No one else who can look at this?

simowilso commented 5 months ago

still not working in 2024.6.4

simowilso commented 4 months ago

Well, it turns our for me it was a configuration error. I found the following error in my logfile:

Logger: homeassistant.util.yaml.loader Source: util/yaml/loader.py:474 First occurred: 24 July 2024 at 18:05:19 (16 occurrences) Last logged: 24 July 2024 at 19:13:48

YAML file /config/configuration.yaml contains duplicate key "sensor". Check lines 140 and 211

And indeed the CUPS sensor wasn't being created.

All working again for me now.

issue-triage-workflows[bot] commented 1 month ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

532910 commented 1 month ago

Stale is not a reason to close issues.