#August Smart Locks: Locking Door Issues when already locked
1 messages · Page 1 of 1 (latest)
is there any way to add a script whenever something calls lock.frontdoor to check its status first? internally within the August/Yale integration
Use a condition in your automation. either as a main condition, or if your automation does other stuff too then you can just use an if block and set it as a condition for that specific action.
Can you please share how to do this?
Can you share your current automation yaml?
@distant spear To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.
I can't find the correct tick on my iPhone sorry. I was wondering if there is a way in the device settings script when lock is called so it's global whenever lock entity is called instead of specific automation
If you post the ticks in a message I might be able to copy and paste them
`
Fixed thank you
ok so you look like this currently (with less errors)
add an if block to actions
move the lock action into the block as "else"
then add a condition in the box. this condition needs to check that the state of the lock is set to LOCKED. I cant show exactly how it would look as I don't have the device.
so the flow is:
trigger - check if do is locked - if locked do nothing - else send lock door command.
hopefully that all makes sense.
@autumn kite i am at my desk now reviewing this. however, from my scripting knowledge, won't an "and if...x", like for if not unlocked - stop the whole automation? for example, i have security alarm also turning on. so if the door is locked, won't this prohibit the full automation from running its remaining tasks
@autumn kite I'll just make separate automation instances though