{"id":1179,"date":"2021-12-22T21:55:05","date_gmt":"2021-12-23T02:55:05","guid":{"rendered":"https:\/\/robotsbench.com\/?p=1179"},"modified":"2022-09-11T21:07:18","modified_gmt":"2022-09-12T02:07:18","slug":"home-assistant-automation-sun-condition","status":"publish","type":"post","link":"https:\/\/robotsbench.com\/home-assistant-automation-sun-condition\/","title":{"rendered":"How to code a Home Assistant automation sun condition"},"content":{"rendered":"
I hope that the products recommended here will help you build great projects. Just so you know, if you buy through the links on this page on Amazon or Banggood (among others), RobotsBench may get a small share of the sale (as an Amazon affilate, I earn from qualifying purchases). This helps to keep the site alive and allow me to write more articles. Thank you!<\/div>\n

In Home Assistant, an automation is a action that runs one time when a condition is reached. The condition itself is called a trigger<\/em>.<\/p>\n\n\n\n

There are many types of trigger available such as:<\/p>\n\n\n\n