@VinistoisR wrote:
I have an MQTT integration:
- platform: mqtt name: sip2mqtt state_topic: "home/sip" value_template: '{{ value_json.verb }}' json_attributes_topic: "home/sip" - platform: mqtt name: "SIP callid" state_topic: "home/sip" value_template: '{{ value_json.caller }}'
And it shows like this in lovelace:
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!
Thanks!
Posts: 2
Participants: 2