JurajNyiri / HomeAssistant-Tapo-Control

Control for Tapo cameras as a Home Assistant component
Apache License 2.0
953 stars 80 forks source link

Feature Request: camera time sensor #511

Open Fettkeewl opened 5 months ago

Fettkeewl commented 5 months ago

Is your feature request related to a problem? Please describe. Using daily reboots on my Tapo cameras and with them having their internet access blocket from my router, I'm having to rely on a ping sensor or a time based trigger to force my cameras to sync time. As the tapo cameras use some interval for the cmaera reboot I can't effectively track the reboots to sync time as they come back online. I get periods of incorrect timestamp

Describe the solution you'd like I'd either like the Tapo integration to automatically sync time if it has a longer period of disconnect from the camera (say roughly 1 min) or expose some kind of sensor related to the camera time. So either a sensor displaying camera time or a binary sensor representing if camera time is in sync with HA/integration time (whichever is used to perform the manual time sync)

Describe alternatives you've considered Currently I have a simple automation following a ping sensor towards my cameras. When they go from "off to on" time is synced. This sync can happen even if the ping sensor momentarely goes to off, which just makes unneccesary calls if the camera is already in sync.

Additional context Add any other context or screenshots about the feature request here.