Increase the variety of sensors that can be exposed to Google Home

I know that there is a community built app for this, but I am not having luck getting it to work for me. When I have time, I am willing to troubleshoot this with the community, but I'd also love to see an integrated solution from Hubitat as well.

With Google increasing the capabilities in Google Home, I was wondering if we'd see an expansion in the variety of Hubitat sensors that could be exposed to Google Home. I'd love to be able to expose my contact sensors and motion sensors to Google Home, for example.

2 Likes

Same here

@akwing12 @oldcomputerwiz

Use this. Will allow you to expose contacts as switches to google..

metadata {
definition (name: "Virtual contact with Switch", namespace: "cwilson08", author: "cwwilson08") {
capability "Sensor"
capability "Contact Sensor"
capability "Switch"
}
}

def on() {
sendEvent(name: "contact", value: "closed")
sendEvent(name: "switch", value: "on")
}

def off() {
sendEvent(name: "contact", value: "open")
sendEvent(name: "switch", value: "off")
}

def installed() {
}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.