Split MQTT sensor reading to two sensors based

Hi! Long story short, I’ve got an OBD2 sensor that i want to use to monitor wife’s car and mine. I am using AndrOBD and pushing via AndrOBD MQTT Plugin values to my MQTT broker. So, for example, i receive messages on topics like “androbd/fuel_level” or “androbd/engine_speed”.

I can customize the prefix (androbd/) but i have to enter app preferences every time so i thought: i’ve got the topic androbd/status_egr_system_test that always returns 257 on my wife’s car and 1 on my own. Do you think it would be possible to read this topic and by the payload of its message populate new sensors (i.e. sensor.wifes_car_fuel_level if androbd/status_egr_system_test is 257 or sensor.my_car_fuel_level if androbd/status_egr_system_test is 0). I managed only to create an input_select that by this topic payload selects the correct car.

Ideas are very welcome :slight_smile:

Thanks