sleepInfo is not defined

first pic is the sample code from Axyll/js at master · reinvantveer/Axyll · GitHub

and I would like to write the sleep status, here is my code

but it cant work, is there something wrong?
Thank you so much~

We have reported this to the relevant team.

Thank you