keymaster icon indicating copy to clipboard operation
keymaster copied to clipboard

ISSUE: User Automation stopping at first condition.

Open spuggy1968 opened this issue 11 months ago • 1 comments

When I have Lock Notifications turned off, but the User Notifications turned on for each of my codes, the User Notification Automation stops when it does the first Condition. The Condition:

value_template: "{{ trigger.event.data.code_slot > 0 }}" <----- from the common yaml file in packages

is always coming up false, and stops. My codes are 3 - 12 (0 is manual use, codes 1 & 2 are the locks default codes included with the lock)

I am using HA 2025.2, and Schlage BE469 Zwave Lock.

Any ideas would be most helpful!

Shawn

spuggy1968 avatar Feb 20 '25 17:02 spuggy1968

I’ve solved my own problem, I don’t remember if there was a change in HA that you have to define the variable (or event data), but I had to update the first condition with “| int” before the “> 0”, and now everything works. It would appear that the default coming out of the code number is not a integer, so the logic always failed.

spuggy1968 avatar Feb 20 '25 21:02 spuggy1968