This is helper functions for the Home Assistant integrations (recommendation systems).