Send event/notifications through MQTT

Hi, I’m developing an Android app, in order to collect info/diagnostic data from cars, sending them to HA through MQTT ( discussion about bridge app car-HA ).

I use normal mqtt sensor in order to forward data like temperatures/speeds,etc…

But now I’d like to send:

  • error codes
  • maybe events.

In fact, I think that is not a good approach the usage of MQTT sensor as “error codes”, because I have to create a sensor for each possible error code.

Some examples of “error codes”:

  • “Transmission Fluid Level Too Low”
  • “Trasmission Low voltage”

In addition, it would be nice to send some notification, like “low level of fuel”.

Thank you,
Marco