Feature Request: MQTT Trigger Support for IoT and Smart Home Integration #1842
andyching168
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I propose adding MQTT trigger support to KeyMapper, enabling users to trigger key maps through MQTT messages. This would unlock powerful IoT and smart home automation capabilities while maintaining KeyMapper's existing functionality.
Motivation
Why MQTT?
MQTT is the de facto standard protocol for IoT communication. Adding MQTT support would allow KeyMapper to integrate with:
Real-World Use Cases
Smart Home Automation
IoT Sensor Integration
Remote Control
Conditional Automation
Proposed Implementation
I have already implemented a complete, working solution with the following features:
✅ Core Features
HiveMQ MQTT Client Integration (v1.3.3)
4 Message Matching Modes
Dynamic Subscription Management
Full UI Integration
🏗️ Architecture
The implementation follows KeyMapper's existing patterns:
📦 Dependencies
Only one new dependency:
implementation("com.hivemq:hivemq-mqtt-client:1.3.3")🎯 Design Principles
Code Quality
Screenshots
MQTT Settings Page
MQTT Trigger Setup
Trigger in Action
Testing
Tested with:
All test scenarios working correctly:
Documentation
Complete technical documentation available:
Impact Assessment
Pros
Cons
Implementation Status
🎉 100% Complete and Working
All code is ready, tested, and documented. The implementation:
freeandprobuild flavors (uses only FOSS libraries)debug,release,ci)I'm ready to contribute this following your development workflow:
feature/mqtt-triggeroffdevelopOr alternatively:
Questions for Maintainers
freevsproflavor compatibility?Alternative Approaches Considered
Why not use Android's built-in MQTT support?
Android doesn't have built-in MQTT support. We need a client library.
Why HiveMQ instead of Eclipse Paho?
Why not make this a plugin/extension?
KeyMapper's current architecture doesn't support plugins. This requires core integration to access KeyMap trigger system.
Related Issues/Discussions
I couldn't find any existing issues about MQTT support. This appears to be a new feature request.
Community Feedback Welcome
I'd love to hear thoughts from the community:
Note: I have the complete implementation ready and can provide:
Looking forward to your feedback! 🙏
Beta Was this translation helpful? Give feedback.
All reactions