5iver
(Scott Rushworth)
July 9, 2018, 6:34pm
10
I’m not sure if you were asking me or Chris, but I only use alarm_raw (with a different lock), and it’s all I need. I parse the json to understand what the lock is saying using this…
Here is my current rule for parsing alarm_raw. My locks (Schlage BE469) do not update the lock_door channel, so I use alarm_raw to update the items linked to lock_door, and base rules off of that item’s state. Maybe all locks behave this way? You’ll find several examples of using the JSONPATH transform to parse the data in the lambda. This can be tricky though, because JSONPATH will throw an exception if the element name you are searching for does not exist in the JSON. I haven’t had any issues…