Hi, since a while Zone is a trait availble fot Google Asssistant, this makes the Vacuum cleaners possible todo zone control
Like:
Hey Google, Vacuum the kitchen
now we can only control start/stop/pause
https://developers.google.com/actions/smarthome/traits/startstop
=> additional zone with start/stop
Is someone able to make this PR?
it should be quite easy, i already loaded it as a custom to google assistant, but i am not a coder, and also the vacuum component should be changed to add additional zones, so they can be used with GA
thnx in advance
example code:
def sync_attributes(self):
"""Return StartStop attributes for a sync request."""
return {'pausable':
self.state.attributes.get(ATTR_SUPPORTED_FEATURES, 0)
& vacuum.SUPPORT_PAUSE != 0,
'availableZones':['kitchen', 'living room']}
async def execute(self, command, data, params):
"""Execute a StartStop command."""
if command == COMMAND_STARTSTOP:
if params['start']:
if params.get('zone') is not None:
ZONES = {
'kitchen': [14600,17800,20450,21700],
'living room': [25480,17400,29530,22250],
}