Fix MAP12/MAP3E HA discovery after WB 2606 MQTT convention change#54
Open
thebestbaduser wants to merge 1 commit into
Open
Fix MAP12/MAP3E HA discovery after WB 2606 MQTT convention change#54thebestbaduser wants to merge 1 commit into
thebestbaduser wants to merge 1 commit into
Conversation
Wiren Board wb-2606 changed MAP templates to type value with separate units metadata. Without device aliases and MAP12 channel name patterns, wb-engine published bare value_state sensors without device_class and unit_of_measurement, breaking Home Assistant graphs and energy counters.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
map12e,wb-map12e,wb-map12e-fw2,wb-map12h,wb-map3et,wb-map3ev) so wb-map3e control rules apply to MAP12 and updated MAP3 templatesUrms L1,Ch N Irms L1,Ch N Total AP energy, etc.)value_templateforvoltagetype)unitsfrom MQTT control meta (WB 2606 conventions)Problem
After updating Wiren Board to wb-2606, MAP meters stopped publishing correct Home Assistant MQTT discovery payloads.
wb-mqtt-serialchanged MAP templates from deprecated control types (voltage,current, ...) to universaltype: valuewith separateunitsmetadata (see wb-2606 changelog).wb-engine then published bare sensors like:
{ "default_entity_id": "value_state.wb-map12e_244_urms_l1", "state_topic": "/devices/wb-map12e_244/controls/Urms L1" }Without
device_class,unit_of_measurement, orstate_class, Home Assistant treated values as plain text states — no graphs, no kWh counters.Test plan
wb-map12e_244) after wb-2606 updateUrms L1publishes withdevice_class: voltage,unit_of_measurement: V, line graphs restoredCh N Total AP energypublishes withdevice_class: energy,unit_of_measurement: kWh,state_class: total_increasing