Track count of messages that are sent using Google Firebase cloud messaging?

There is a 500 message (out of HA network) limit as per

Is there any way that I can monitor that in Home Assistant so that I can modify messages sent if it approaches that 500 limit for any device? Kinda just want to keep an eye on it too, just in case I ever make some change that is not ideal for that 500 limit.

I did add this under notifications in the Configuration.yaml, but was not sure where to look for that log, and if that can be done from an automation.
== homeassistant.components.mobile_app.notify: info

I also looked in the App Configuration in the companion app. I can see the count sent in there. I looked through the “Manage Sensors” hoping that there was an option to send that back to HA, but I could not find anything. There is an “Active Notificaiton Count”, but that is how many notifications are displayed right now.

Thanks

Create a counter:

Increment it every time you send a message.

Use an automation to reset the counter at midnight UTC.

Use another automation to alert you if the counter gets up to 450 (90% of your allocation). Or 449 if you count that message too :slight_smile: