Closed felipecrs closed 1 year ago
Frigate 0.12 has no memory and will not set based on MQTT retained values (because it clears them). So if this is happening on reboot it is due to an automation or something running on frigate startup. I'd suggest enabling mqtt debug logs, restart frigate, and see where the topic is being set
Documentation does not mention how to enable mqtt logs, is it like following:
logger:
default: info
logs:
mqtt: debug
Ops my bad, it actually mentions here:
https://deploy-preview-4055--frigate-docs.netlify.app/configuration/advanced
I was looking at the full config file.
Sorry I meant logs on your mqtt broker, but frigate mqtt logs will probably hold the same data
Hm, deleting this topic in MQTT fixed the issue:
Thanks!
That's odd, we would expect that to be cleared on startup automatically
Maybe that's a small bug then... Well, I'd recommend not spending time on it unless someone else complains.
I have the same issue, Frigate disables the recording and snapshot, even tough I enabled them in the config. I think it is indeed in my case MQTT related.
Having same issue with reolink camera. The only one with screenshots disabled after restart.
2023-05-09 20:09:39.259394676 [2023-05-09 20:09:39] frigate.app INFO : Camera processor started for eufy1: 695
2023-05-09 20:09:39.264027776 [2023-05-09 20:09:39] frigate.app INFO : Camera processor started for eufy2: 696
2023-05-09 20:09:39.280436919 [2023-05-09 20:09:39] frigate.app INFO : Camera processor started for eufy3: 698
2023-05-09 20:09:39.280786056 [2023-05-09 20:09:39] frigate.app INFO : Capture process started for reolink: 699
2023-05-09 20:09:39.280989158 [2023-05-09 20:09:39] frigate.app INFO : Capture process started for eufy1: 702
2023-05-09 20:09:39.281171250 [2023-05-09 20:09:39] frigate.app INFO : Capture process started for eufy2: 706
2023-05-09 20:09:39.285632917 [2023-05-09 20:09:39] frigate.app INFO : Capture process started for eufy3: 709
...
2023-05-09 20:09:39.301448665 [2023-05-09 20:09:39] frigate.comms.dispatcher INFO : Turning on snapshots for eufy1
2023-05-09 20:09:39.302145637 [2023-05-09 20:09:39] frigate.comms.dispatcher INFO : Turning on snapshots for eufy2
2023-05-09 20:09:39.303604270 [2023-05-09 20:09:39] frigate.comms.dispatcher INFO : Turning on snapshots for eufy3
Also from HA:
https://ss.codeone.pl/ss-2023-05-09-22-17-37-1683663457-CBAakp1b.png (marked manual "turn on" on screen).
I have this same issue also, and deleting the topic in MQTT has no effect (have deleted all retains I could find).
I'm reopening my own issue, following my own comment:
Maybe that's a small bug then... Well, I'd recommend not spending time on it unless someone else complains.
For clarity, I have two Tapo cameras, and it only affects one of them. Exact same behaviour as described above otherwise. I will have more time to investigate on MQTT explorer this weekend, but after a few hours of going through logs and troubleshooting last night, I'm at a loss (but I'm in no way am expert!).
I have noticed on my wyze and foscam that snapshots are also disabled after restart
I have the same issue. My setup has 5 Reolink cameras and one other. On startup, it always defaults to snapshots disabled for three cameras and I have to toggle it On in the UI. Setting snapshots to enabled in the config (under each camera --> mqtt) has no effect. I'm on the latest stable version.
Setting snapshots to enabled in the config (under each camera --> mqtt) has no effect
That's the wrong place in the config that you would enable snapshots, so seems like that would be the issue
Maybe I got it wrong; I have
Snapshots --> Enabled : True
in my config file, but also the mqtt setting under each camera, as explained here
Is that not how to do it?
Here are actual snippets from my config file:
snapshots:
retain:
default: 180
and
cameras:
familyroom:
record:
enabled: true
mqtt:
enabled: True
ffmpeg:
I don't see snapshots -> enabled in your example, that is the only part that would matter.
Ah! For some reason, I mistakenly thought the default value was True. Setting it explicitly to true fixed all the cameras. D'oh! 🤦 Thanks!
I am going to close this, users experiencing this issue should create their own separate issue and provide the config file, logs, etc. so it will be immediately obvious what the problem is.
In my case the issue was caused by a retain flag at MQTT level
Hm, deleting this topic in MQTT fixed the issue: MQTT_Explorer_fyMJ8KBXgy.mp4
Thanks!
This topic deletion also solved the issue in my config, thanks for the detailed answer !
Describe the problem you are having
It's enabled in the config file
When Frigate starts, the snapshots comes disabled:
If I enabled from UI it only stays enabled before next reboot
Same if I change from the Home Assistant switch
https://user-images.githubusercontent.com/29582865/220140216-4238c74e-f0f2-48a4-8c0b-1e17197e0cf7.mp4
Version
Latest dev branch, but it was happening before
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
No response
Operating system
HassOS
Install method
HassOS Addon
Coral version
USB
Network connection
Wired
Camera make and model
Dahua VTO2202F-P-S2
Any other information that may be helpful
No response