I like to count the time per day when a specific smartphone was unlocked. The reason for that is because one of my kids has an addiction for gaming on her smartphone. At first I was counting the online time via wifi but that didn’t work, when a smartphone gets locked the wifi stays on.
So I installed the Home Assistant app on her Samsung Galaxy A51 and found out the ‘Device Locked’ binary sensor. The status of this sensor is on or off.
Can anyone help me how I can count the time per day? Or fix it otherwise?
Thanks in advance!