You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
esphome_dsmr: setup wizard never passes config.host (connection_defaults declares no host key) #151
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
fix(esphome_dsmr): declare host so setup passes the entered address
fix(esphome_dsmr): declare host so setup passes the entered address
fix(esphome_dsmr): declare host so setup passes the entered address (s…