Skip to content

Fix POWER, LIGHT and MODE NULL values in IRHVAC data#464

Merged
Apollon77 merged 4 commits intomasterfrom
copilot/fix-276
Sep 7, 2025
Merged

Fix POWER, LIGHT and MODE NULL values in IRHVAC data#464
Apollon77 merged 4 commits intomasterfrom
copilot/fix-276

Conversation

Copy link
Contributor

Copilot AI commented Sep 6, 2025

  • Fix POWER, LIGHT and MODE NULL values in IRHVAC data
  • 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
  • Add changelog entry for the fix

Problem

When receiving MQTT messages from Tasmota devices with IR remote data, the fields Power, Light, and Mode were being set to NULL in ioBroker states, while other fields like Temp worked 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.

- 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
Copilot AI requested a review from Apollon77 September 6, 2025 21:27
Copy link
Collaborator

@Apollon77 Apollon77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot add the missing changelog entry too

Co-authored-by: Apollon77 <11976694+Apollon77@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Sep 7, 2025

@copilot add the missing changelog entry too

Added changelog entry for the IRHVAC fix in commit da74256.

@Apollon77 Apollon77 marked this pull request as ready for review September 7, 2025 14:16
@Apollon77 Apollon77 merged commit 36ea2b3 into master Sep 7, 2025
17 checks passed
@Apollon77 Apollon77 deleted the copilot/fix-276 branch September 7, 2025 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants