12-19-2024 05:02 PM
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.
- 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
12-26-2024 11:37 PM
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.