It’s hard to read unformatted YAML. Use preformatted text
But it looks like you’re looking for “not_home” as a state for sensor.c200, yet your value_template will return “Online” or “Offline”. So the state will never be “not_home”.
Also - I’m assuming that your value_template has no errors. Have you checked it in the template dev tool?