Skip to content

esphome_dsmr: setup wizard never passes config.host (connection_defaults declares no host key) #151

Closed

Description

@Vortitron

esphome_dsmr (1.0.6) requires config.host, but its DRIVER.connection_defaults block holds only a comment. FTW's setup wizard (web/setup.js) seeds config.host from the entered IP only when the catalog entry's connection_defaults has a host key, so a meter added through the wizard should fail at init with esphome_dsmr: config.host is required, and the site meter then goes stale.

I hit exactly this with remne_p1ib in #150, which started from the same empty block. Declaring host = "" fixed it: FTW's catalog parser records the key with an empty value, and the wizard then passes the IP.

Not reproduced with an ESPHome DSMR reader itself; I don't have one. The suggested change is one line in connection_defaults, plus a test that the key stays declared (#150 has one in test_remne_p1ib.lua).

Activity

  1. added 2 commits that reference this issue on Oct 1, 2026
    094d269
    b685f89
  2. added a commit that references this issue on Nov 10, 2026
    f868555
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions