GithubHelp home page GithubHelp logo

Comments (4)

chilicheech avatar chilicheech commented on August 19, 2024

Here's what worked for me:

garage_door:
  platform: mqtt
  name: Garage Door
  state_topic: "smartthings/Garage Door Opener/contact"
  command_topic: "smartthings/Garage Door Opener/door"
  state_open: 'open'
  state_closed: 'closed'
  service_open: 'open'
  service_close: 'closed'
  retain: true

from smartthings-mqtt-bridge.

stjohnjohnson avatar stjohnjohnson commented on August 19, 2024

@chilicheech is right, the smartapp looks for certain payloads:
https://github.com/stjohnjohnson/smartthings-mqtt-bridge/blob/master/smartapps/stj/mqtt-bridge.src/mqtt-bridge.groovy#L590-L596

from smartthings-mqtt-bridge.

creamcheesehero avatar creamcheesehero commented on August 19, 2024

@stjohnjohnson last night when trying this I had the same payloads as the config @chilicheech provided and encountered the same issue, so I reverted to the defaults from HA. The major difference between this config and mine is that my state topic was door and not contact. After updating my state topic to contact and reverting back to the payloads from the example above I encountered the same issue. I changed the optimistic property to true and that seems to have done the trick in combination with the update to the state topic and payloads. I am using a GoControl/Linear GD00Z-4 Garage door opener in case this information is of value to anyone else. Here is my updated and functional config.

garage_door:
  platform: mqtt
  name: 'Garage Door'
  state_topic: 'smartthings/Garage Door/contact'
  command_topic: 'smartthings/Garage Door/door'  
  state_open: 'open'
  state_closed: 'closed'
  service_open: 'open'
  service_close: 'closed'
  retain: true
  optimistic: true

from smartthings-mqtt-bridge.

stjohnjohnson avatar stjohnjohnson commented on August 19, 2024

Interesting, so for the garage door is has both a contact and door value. Different from the docs: http://docs.smartthings.com/en/latest/capabilities-reference.html#garage-door

Thanks for the feedback!

from smartthings-mqtt-bridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.