Testing and debugging your automation
In the process of creating an automation, many times you will create it and want to test it right away to verify it is working. In other situations, even if you can test the automation immediately, for some reason it won’t work and you will want to know what to fix. Home Assistant provides Developer Tools, which can help you to test and debug your automations. We will explore Developer Tools in the next subsections.
Setting and checking the state of entities
While I’m writing this subsection in my office, I want to test automation 1. One way to do that is to go to my garage, trigger the motion sensor, and see whether the garage lights turn on. Another option is to set the state of the motion sensor entity and check the state of the garage light entity. We can do this by using the STATES tab using the Developer Tools in Home Assistant.
Let’s test our automation 1 by setting and checking the state of the entities. We...