When I first started out with Home a**istant, I always wrote “happy path” automations. I was naive enough to a**ume that when a door opened, the Zigbee sensor would instantly broadcast that state, Home a**istant would receive it within milliseconds, and the light would turn on. But I quickly learned things aren’t quite so rosy.