robertvandervoort / SmartThings

156 stars 241 forks source link

I can't close garage door over MQTT #27

Open maticslaszlo opened 6 years ago

maticslaszlo commented 6 years ago

I'm using https://github.com/stjohnjohnson/smartthings-mqtt-bridge, and I can open my garage door, but I can't close with MQTT I've got Aeon Garage Door - RV v0.1, MQTT bridge, and I've tried a lot of commands, like OFF, off, CLOSE, close, 0, 1, CLOS, clos

mosquitto_pub -h localhost -p 1883 -u user -P pass -t 'smartthings/garage/door/cmd' -m 'open'opens the garage door, but I couldn't send any command to close the door

maticslaszlo commented 6 years ago

UPDATE: I can close garage door with mosquitto_pub -h localhost -p 1883 -u user -P pass -t 'smartthings/garage/switch/cmd' -m 'off'command

robertvandervoort commented 6 years ago

I’m not familiar with the MQTT bridge code. Likely something to do with how they interpret the command you are publishing. Maybe try shut? Not sure. I made the handler with multiple endpoints so you could use it with various types of rules / smartapps. My doorbell code has a motion sensor capability that triggers motion when the bell is rung. Sounds weird but that allows you to use a standard ST rule to trigger an alarm when motion occurs so you could have another doorbell play a different sound when the front door is rung like if you were in the back yard.

On Tue, Jun 26, 2018 at 6:22 AM László Matics notifications@github.com wrote:

UPDATE: I can close garage door with mosquitto_pub -h localhost -p 1883 -u user -P pass -t 'smartthings/garage/switch/cmd' -m 'off' command

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/robertvandervoort/SmartThings/issues/27#issuecomment-400272737, or mute the thread https://github.com/notifications/unsubscribe-auth/AKcZlcosHppIoV_OgHAOBrNCfhVwyD2Dks5uAhmLgaJpZM4UqxPc .