google-home / smart-home-nodejs

A sample of the Smart Home device control APIs in Actions on Google
Apache License 2.0
894 stars 292 forks source link

Any chance to add public support for rooms in actions #440

Closed veonua closed 5 years ago

veonua commented 5 years ago

went through all of Google Home docs and can't see how instruct vacuum to clean specific rooms with voice commands. AKA "Hey Google, clean the living room.”

https://www.theverge.com/circuitbreaker/2018/9/6/17817220/irobot-roomba-i7-robot-vacuum-empties-itself-maps-house

devunwired commented 5 years ago

This sounds like a great feature request for the platform! Feel free to file it in the public issue tracker so we can assign it to the right people to evaluate.

Fleker commented 5 years ago

To do this, you must use the StartStop trait and pass in the room names to the "availableZones" attribute. Then you will receive the zone in the EXECUTE request. The phrase "vacuum the living room" maps to a StartStop command if the device type if a Vacuum.

veonua commented 5 years ago

Thank you, Nick

I thought it could be part of https://developers.google.com/actions/smarthome/traits/locator

Are availablezones could be any string, or there are predefined names as mode and toggle names

On 15 Aug 2019, at 16:29, Nick notifications@github.com wrote:

To do this, you must use the StartStop trait and pass in the room names to the "availableZones" attribute. Then you will receive the zone in the EXECUTE request. The phrase "vacuum the living room" maps to a StartStop command if the device type if a Vacuum.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Fleker commented 5 years ago

Available zones can be any set of names that you want, and not just limited to rooms. (Sprinkler systems may have several logical zones for different plants or parts of your lawn)

The Locator trait is for finding things.

veonua commented 5 years ago

Sending robots to places and finding them usually connected.

Zones worked fine, thank you

On 15 Aug 2019, at 22:10, Nick notifications@github.com wrote:

Available zones can be any set of names that you want, and not just limited to rooms. (Sprinkler systems may have several logical zones for different plants or parts of your lawn)

The Locator trait is for finding things.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

jcyh0120 commented 5 years ago

Available zones can be any set of names that you want, and not just limited to rooms. (Sprinkler systems may have several logical zones for different plants or parts of your lawn)

The Locator trait is for finding things.

Thanks for providing this information. @Fleker Could you provide an example phrase for a sprinkler with target zone? I tried saying: smart sprinkler "room name".

But didn't get the zone parameter printed out in DEBUG request.