Fix POWER, LIGHT and MODE NULL values in IRHVAC data#464
Merged
Conversation
- Add path-based type lookup in checkData function - Add specific IRHVAC datapoint definitions to prevent type conflicts - Modify addObject function to handle path-based type keys - Add comprehensive test case for IRHVAC message processing Co-authored-by: Apollon77 <11976694+Apollon77@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] POWER, LIGHT and MODE in IRHVAC is NULL
Fix POWER, LIGHT and MODE NULL values in IRHVAC data
Sep 6, 2025
Co-authored-by: Apollon77 <11976694+Apollon77@users.noreply.github.com>
Contributor
Author
Apollon77
approved these changes
Sep 7, 2025
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.
Problem
When receiving MQTT messages from Tasmota devices with IR remote data, the fields
Power,Light, andModewere being set to NULL in ioBroker states, while other fields likeTempworked correctly.Solution
Enhanced the type lookup system to check for path-based datapoint definitions first before falling back to generic field definitions. Added 15 new IRHVAC-specific datapoint definitions with correct string types to prevent conflicts with existing boolean/number definitions.
Testing
All 32 tests pass with no regressions to existing functionality.
Addresses #276.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.