I am using MQTTCarPresence to sense the car, it’s used to automatically switch on the outside light and it works fine.
I would like to add a icon to the dashboard to say if the car is ‘home’ or ‘away’. As CarPresence only gives a signal when the ignition is on (d1 mini wired to the ignition) I need to configure HA to toggle between states ie Signal = Car Home…Signal = Car Away… Signal = Car Home.
I have tried googling but I am not sure what to google to find an answer, can anyone help?