[SYS] Add HASS_UNIT_PPM to availableHASSUnits array#2279
Open
bafulton wants to merge 1 commit into1technophile:developmentfrom
Open
[SYS] Add HASS_UNIT_PPM to availableHASSUnits array#2279bafulton wants to merge 1 commit into1technophile:developmentfrom
bafulton wants to merge 1 commit into1technophile:developmentfrom
Conversation
HASS_UNIT_PPM is defined in config_mqttDiscovery.h but was missing from the availableHASSUnits validation array in mqttDiscovery.cpp. This caused unit_of_measurement to be silently dropped for CO2 sensors (like the Govee H5140) during MQTT discovery, resulting in Home Assistant warnings about invalid units.
bafulton
added a commit
to bafulton/homelab
that referenced
this pull request
Jan 27, 2026
Temporary fix for missing unit_of_measurement on Govee H5140 CO2 sensor. Workaround until 1technophile/OpenMQTTGateway#2279 is merged and released. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
bafulton
added a commit
to bafulton/homelab
that referenced
this pull request
Jan 27, 2026
Use customize to set unit_of_measurement for Govee H5140 CO2 sensor. HA still logs a validation warning but the unit displays correctly. Workaround until 1technophile/OpenMQTTGateway#2279 is merged and released. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.
Description
HASS_UNIT_PPMis defined inconfig_mqttDiscovery.hbut was missing from theavailableHASSUnitsvalidation array inmqttDiscovery.cpp.This caused
unit_of_measurementto be silently dropped for CO2 sensors during MQTT discovery, resulting in Home Assistant warnings:This fixes the unit_of_measurement for CO2 sensors like the Govee H5140 (added in theengs/decoder#684).
Checklist