August lock lovelace implementation?

Does anyone have any working examples? I saw this from a reddit post, but i wouldn’t know how to implement it in lovelace ui

https://jsfiddle.net/yu84amcq/1/

What is it.

bones of a javascript file for an unfinished august lock ui, it just needs some finishing touches (dont know javascript or css to implement)