@Skye wrote:
I’m using an A2DP sensor to see how long my commutes are (phone connected to car = sensor is ‘on’).
I would like to push a notification to my phone telling me how long I’ve driven at the moment the A2DP sensor turns to ‘off’.To be able to do so I would need to know the duration of the previous state (which is ‘on’). Things coming to mind is starting/stopping a timer, using input fields to store the timestamps , perhaps a statistics sensor?
But perhaps there is an easier way to grab this data as HA is already recording it and the History graph card can show it?
Posts: 1
Participants: 1