DeBugging?

Greetings all,

I’ll be the first one to admit, I’m completely befuddled by all this.

I’ve written code in more languages than I care to admit, and I simply cannot wrap my head around the way YAML works.

The primary impediment is debugging. Unfortunately as a self-taught programmer, my typical process involves, writing some code, stepping through it and watching as things work (or don’t work)…

My goal, today, is to assemble an Alarm Clock as described here but without the Alexa bit. I’ve got a Sleep number bed which has 4 lights that I can toggle through HASS.

I’ve entered the code EXACTLY as in the website, and the alarm is inop. I can run the automation, and yea verily it toggles the light.

I’ve gone through the Developer tools and everything looks ok, yet it’s still inop.

How do I step through this to find the issue? Or are there other tools which can help?

Thank you in advance.

Yaml is not really a programming language, it is a lightweight data-interchange format. The best thing to do is look at the trace of your automation.

Check log for any issues.
Use YAML Validator
Post your .yaml configuration, people will see it and can give you advice.

Sigh,

I had not loaded the time integration.

Once that was done, the trace on the automation worked and I found a typo in the automation code.

Thanks for the feedback!