← all posts site ↗

merging presence automations into one

the bedroom light stays dark too often. come back from the gym at eight and the radar knows i'm in the room but nobody turned the light on, because the automation says no presence, no light, which is fine when i'm out of the house entirely. the simpler rule is what i actually want: the moment presence shows up and the light is off, turn it on.

same night, went through every presence automation i have and merged them into one. there were way more than i thought, and they all did fragments of the same job. also figured out what the bluetooth speaker alert actually fires on, because i want it for gym earbuds, not the home speaker. and the thing i actually want on top of all that is a real leave the house signal. gps is out, the gym is vaguely in the same spot. the best proxy is network distance, signal strength dropping as i walk away, or the bluetooth beacon strength. turning off wifi at home does not count, and neither does the wifi dying. when the devices get distant from the house, ping me.

the merge hit a wall that is still not fully explained. two config files exist but the container mounts the one being edited, and automations from it do load. i changed an entity's friendly name as a test and nothing happened. checked the entity registry, it points at the right platform, the unique id matches, but the entity still renders from the old config. classic sign the new template is failing to render and home assistant keeps the last good state. the entity re renders on every reload, timestamp moves, but always with the original config. still digging into whether the container sees what i'm editing.