Comments (4)
Ouch that's annoying. So what about changing the values here: https://github.com/SmartThingsCommunity/SmartThingsPublic/blob/master/devicetypes/smartthings/aeon-minimote.src/aeon-minimote.groovy#L70
to read something like "held $button" and "pushed $button"
That should end up making it more consistent with your ZWN-SC7, and it gives you an opportunity to parse the information in Home Assistant.
The alternative would be to send over the entire jsonData with each event, and it's unclear how to actually do that without wrapping the whole event in a data structure that needs to be parsed every time on the HA side.
from smartthings-mqtt-bridge.
Closing because the proposed workaround works.
from smartthings-mqtt-bridge.
That sure is annoying! It's not something that impacts me directly but I ran across it after a user of an ST SmartApp I wrote pointed it out as an issue with my own project.
Changing the Minimote code should in fact address the issue directly, but it's also an annoying fix as the code is a first-party ST driver which can create challenges merging updates to the codebase later. The overall problem is that there doesn't appear to be a well-defined standard for reporting both "press"/"hold" actions while also reporting the specific button being pressed.
I honestly don't know what I'm expecting here, other than surfacing the issue for you fellas to think about and maybe if you come up with an elegant solution I can steal it for my own app 😀
from smartthings-mqtt-bridge.
I'm reopening this as Issue #120 since this issue occurs for other button controllers, not just the Aeon Minimote.
Using a GoControl WA00Z-1 Z-Wave Wireless Light Switch with two buttons, each button push event results in the same MQTT message, making it impossible to discern which button was pushed.
The fact that this item was closed "because the proposed workaround works" only applies to the Aeon Minimiote, while this issue affects all button devices. (Since the workaround was a modified Aeon Minimote device handler, this should really be addressed at the bridge level, to cover all devices.)
from smartthings-mqtt-bridge.
Related Issues (20)
- New Smartthings restful API HOT 5
- Device Network ID collision with another DTH HOT 5
- Socket error on client <unknown>, disconnecting
- Continued support HOT 1
- trying to get this running as a service in windows 10 powershell HOT 1
- Unsure where to add IP / port / MAC to the IDE settings? HOT 2
- Set process.title HOT 1
- SmartApp triggers ok, but bridge.deviceNotification(json) not triggered HOT 1
- Issue during Docker installation with "-v /opt/mqtt-bridge:/config" HOT 1
- Questions... questions... and more questions HOT 1
- Release of new Bridge based on smartthings-mqtt-bridge HOT 5
- MQTT on different port HOT 4
- Python HOT 3
- Docker Exits when starting HOT 1
- the bridge works but nothing on HA HOT 1
- Cant uninstall anything .. HOT 3
- config.yml file does not exist
- New Smartthings app/platform HOT 8
- Config.yml help HOT 1
- No HUB, but using ST cloud
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartthings-mqtt-bridge.