cancel
Showing results for 
Search instead for 
Did you mean: 

Aplicação on/off pode afetar a segurança e/ou da sua familia

paulobennertz
Community Member

Comando on/off não permite em alguns dispositivos.

Eu até entendo que é para nossa segurança, porém eu tenho um controle remoto universal conecado em uma tomada intligente.
O que eu quero executar: quando eu falar qualquer comando que envolva o ar condicionado, devera ligar a tomada, após alguns segundos enviar o comando que eu falei para o ar condicionado e desligar a tomada novamente apos 45 segundos.

 

telagoogle.png

 - starters:
 - type: assistant.event.OkGoogle

eventData: query
is: Turn on the AC
actions:
- type: device.command.OnOff
devices:
- Tomada Cabeceira Cama - Quarto
on: true
- starters:
- type: assistant.event.OkGoogle
eventData: query
is: Turn on the AC
actions:
- type: time.delay
for: 10sec
- type: device.command.OnOff
devices:
- Ar - Quarto
on: true

 

Existe alguma forma de eu controlar a tomada pelo script?

Muito Obrigado

 

1 REPLY 1

Derickf
Community Specialist
Community Specialist

Hi @paulobennertz,

 

Thank you for reaching out to the community, and you for your interest in creating your own scripts using the developing tool, but it seems that there is no way to change the script to avoid getting the warning you are receiving.

For more information, you can take a look at the following links:Validation errors and warnings, Write scripted automations with the script editor.

I hope that helps.

 

Best regards.

Derick.