coldfire84 / node-red-alexa-home-skill-v3-web

Web Service/ API for Alexa and Google Home Node-RED Smart Home Control
https://red.cb-net.co.uk/
Apache License 2.0
51 stars 7 forks source link

Support for contact sensors in Google Home #144

Open stwalkerster opened 3 years ago

stwalkerster commented 3 years ago

Please can support for contact sensors be added to the Google Home side of the integrations?

It looks like the "OpenClose" API action is likely suitable here: https://developers.google.com/assistant/smarthome/traits/openclose

From what I can understand of the documentation, a basic magnetic contact sensor would need these two values set:

{
  "discreteOnlyOpenClose": true,
  "queryOnlyOpenClose": true,
}

I don't know if this is something that has already been proposed and rejected - I couldn't see anything relevant in the issues list so apologies if this has already been raised.