Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added actionOpenClosed for contactSensors (simulated) #154

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

iprak
Copy link

@iprak iprak commented Jul 9, 2018

Allow open/close to be conditionally invoked on simulated contact sensors. Contact sensors do not have open/close command. Simulated contact sensor with no actionable tile would be one way to update a SmartThings contact sensor through MQTT.

var cmdTopic = getTopicFor(device, property, TOPIC_COMMAND);
var writeTopic = getTopicFor(device, property, TOPIC_WRITE_STATE);
subscriptions.push(cmdTopic);
if (writeTopic !== cmdTopic) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nice catch!

@gandazgul
Copy link
Contributor

@stjohnjohnson this would be a nice one to merge.

@BrettSheleski
Copy link

Please merge this.

iprak added 2 commits May 4, 2020 05:52
Changed door to door, notify to match EspurnaGarageDoorDeviceHandlerV2
Force sent device battery status when initialized
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.

3 participants