When a new MQTT message comes in, the word “disconnected” changes to “incoming”, and the CallerID shows the data I’m interested in. Perfect.
The issue is it only flashes the message for 1/2 second, and then the MQTT message goes back to “disconnected” and the callerID is blank. I can’t make it stay around longer… its just the nature of it (we have to answer the call eventually, and when we do, the system drops the connection that drives the mqtt script)
What I really want is a list of the 10 most recent callers, the most frequent caller today, etc. I assume I can just poll the history, go to the last time the state changed, and display the data. But I have no clue how to implement that!