cancel
Showing results for 
Search instead for 
Did you mean: 

Sunset + voice command with door contact restriction

Coppenst
Community Member

Hi,

I wanted to do the following:

- When SUNSET (time.schedule = sunset) or Voice Command 'Close Bedroom Blinds' (assistant.event.OkGoogle = Close Bedroom Blinds)

- AND window contact is closed (device.state.OpenClose = 0)

- ACTION assistant.command.OkGoogle = Close Bedroom Blinds, also tried with device.command.OpenClose = 0

 

However, it works for the sunset, when the window contact is physically open (100%) then the blinds do not close

But when I am giving the voice command, they still go down

 

This was maybe because the voice command directly does the blinds, so I tried something very random as a voice command, but it will still not trigger my automation

 

 

The automation:

metadata:
name: Bedroom Blinds - Close # Choose a short name that summarizes important starters and actions, like “Sunset lights”.
description: When sunset and windows closed, close bedroom blinds # Write a detailed description that includes everything the automation does, like “At sunset, on weekdays, close blinds, turn on lights to 50%, and play the sunset playlist on certain speakers.”

 

automation:
starters:
- type: time.schedule
at: sunset

- type: assistant.event.OkGoogle
eventData: query
is: Close Bedroom Blinds


condition:
type: and

conditions:
- type: device.state.OpenClose 
state: openPercent
is: 0
device: +1 Bedroom - Window Contact Left - +1 Bedroom


 actions:
- type: assistant.command.OkGoogle
devices:
- +0 Living room display - +0 Living room
okGoogle: Close Bedroom Blinds

0 REPLIES 0