Skip to content

platformio_override.sample.ini -D USERMOD_DALLASTEMPERATURE incorrect. #5643

Closed

Description

@mike-s123

What happened?

platformio_override.sample.ini contains multiple examples including "-D USERMOD_DALLASTEMPERATURE". This does not work.

To Reproduce Bug

Compiling with -D USERMOD_DALLASTEMPERATURE does not result in Dallas DS18B20 temperature support being included.

Expected Behavior

Temperature support should be included in the compiled binary.

Install Method

Self-Compiled

What version of WLED?

WLED 16.0.0 release

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

Anything else?

To include DS18B20 support, the correct configuration in platformio_override.sample.ini should be similar to:

custom_usermods = ${env:esp32dev.custom_usermods}
Temperature

This is documented in https://github.com/wled/WLED/blob/main/usermods/Temperature/readme.md

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. DedeHai commented on May 23, 2026

    @DedeHai
    Collaborator

    @coderabbitai is there an open PR that updates platformio_override.sample.ini to fix this?

  2. coderabbitai commented on May 23, 2026

    @coderabbitai
    Contributor
    🧩 Analysis chain

    🏁 Script executed:

    #!/bin/bash
    # First, let's look at the issue to understand what it's about
    gh issue view 5643 --repo wled/WLED
    
    echo "---"
    # Search for open PRs mentioning platformio_override.sample.ini
    gh pr list --repo wled/WLED --state open --search "platformio_override.sample.ini" --json number,title,url,createdAt
    
    echo "---"
    # Also search for PRs that might reference issue `#5643`
    gh pr list --repo wled/WLED --state open --search "5643" --json number,title,url,createdAt
    
    echo "---"
    # Search for any PRs (open or closed) that touch platformio_override.sample.ini
    gh pr list --repo wled/WLED --state all --search "platformio_override.sample.ini" --json number,title,url,state,createdAt --limit 10
    

    Length of output: 5276


    🏁 Script executed:

    #!/bin/bash
    # Check PR `#5190` details - "platformio sample cleanup"
    gh pr view 5190 --repo wled/WLED
    
    echo "=== FILES CHANGED ==="
    gh pr diff 5190 --repo wled/WLED -- platformio_override.sample.ini 2>/dev/null || echo "No diff output for that file"
    
    echo "=== ALL FILES IN PR ==="
    gh pr view 5190 --repo wled/WLED --json files --jq '.files[].path'
    

    Length of output: 999


    🏁 Script executed:

    #!/bin/bash
    # Get the full diff of PR `#5190`
    gh pr diff 5190 --repo wled/WLED | head -200
    
    echo "=== SEARCH FOR DALLAS IN PR DIFF ==="
    gh pr diff 5190 --repo wled/WLED | grep -i "dallas\|DALLASTEMPERATURE\|Temperature\|custom_usermods" || echo "No matches found"
    

    Length of output: 6150


    @DedeHai, based on my search, there is no open PR that specifically fixes the -D USERMOD_DALLASTEMPERATURE issue described in this ticket.

    The closest open PR is #5190 "platformio sample cleanup" by @netmindz, which does modify platformio_override.sample.ini, but its scope is limited to removing legacy/bespoke board configurations — it does not address the incorrect USERMOD_DALLASTEMPERATURE build flag. You've already approved that PR, but the Dallas Temperature fix still needs to be applied separately.

    The fix would involve replacing occurrences of -D USERMOD_DALLASTEMPERATURE in platformio_override.sample.ini with the correct custom_usermods approach:

    custom_usermods = ${env:esp32dev.custom_usermods}
        Temperature

    Would you like me to open a new issue to track this fix, or would you prefer to handle it directly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions