[Custom Integration] Discogs Enhanced Integration - Track Your Collection Value!

Hello to all,

I’m sharing a new custom integration based on the official (legacy) discogs integration: Discogs Enhanced Integration.

This integration builds upon the solid foundation of the existing official Home Assistant Discogs integration, providing some additional features for avid music collectors such as me.

What’s New & Why Use It?

While the core Discogs integration is excellent for tracking your collection and wantlist counts, I, like many of you, wanted deeper insights into the monetary value of my collection. This enhanced version addresses that by adding:

  • Collection Value (Minimum): A sensor displaying the estimated minimum market value of your Discogs collection.
  • Collection Value (Median): A sensor displaying the estimated median market value of your Discogs collection.
  • Collection Value (Maximum): A sensor displaying the estimated maximum market value of your Discogs collection.

These sensors dynamically show the value in the currency provided by Discogs.

Acknowledgment & Development

This project stands on the shoulders of giants :wink: . It is heavily based on and inspired by the official Home Assistant Discogs integration originally developed by the talented @thibmaek. A huge thank you to them for their foundational work!

As someone without extensive development experience, this integration was brought to life with significant assistance from AI , which helped in understanding Home Assistant’s architecture, refactoring the code, and implementing these new features.

Installation (via HACS Custom Repository)

You can easily install this integration using HACS:

  1. Open HACS in your Home Assistant instance.
  2. Go to Integrations.
  3. Click the three dots (...) in the top right corner and select “Custom repositories”.
  4. Enter the URL: https://github.com/andreasc1/homeassistant-discogs-enhanced
  5. Select “Category”: Integration.
  6. Click “ADD”.
  7. Once added, search for “Discogs Enhanced Integration” in HACS and click “Download”.
  8. Restart Home Assistant after downloading.

Quick Link to Add to HACS:
Add to HACS

Configuration Example

After installation and restarting Home Assistant, add the following to your configuration.yaml:

# Example configuration.yaml entry
sensor:
  - platform: discogs_enhanced
    token: YOUR_DISCOGS_API_TOKEN
    name: My Discogs Collection # Optional, defaults to "Discogs"
    monitored_conditions:
      - collection
      - wantlist
      - random_record
      - collection_value_min
      - collection_value_median
      - collection_value_max

I’ve added this and the first three sensors work just as the original integration. However the collection values are all zero - it’s been installed for a few days so it can’t be lag or anything. Any hints?

Here is the error log - any hints please :slight_smile:

This error originated from a custom integration.

Logger: custom_components.discogs_enhanced.sensor
Source: custom_components/discogs_enhanced/sensor.py:145
integration: Discogs Enhanced (documentation, issues)
First occurred: 17:56:34 (1 occurrence)
Last logged: 17:56:34

Failed to fetch Discogs collection values. Ensure your Discogs account has collection items with values. Error: 'User' object has no attribute 'collection_value'

It’s resolved with version 1.0.2 :slight_smile:

1 Like

sorry for not replying, yes is now resolved, thanks for trying.

1 Like

i released v1.0.3 with some changes.
provides better numerical values and also providing 2 new entities, one for the number of vinyl and one for the number of cds in a collection.
@thibmaek your feedback is welcome.