### The problem
I have a generic wlan camera with an rtsp stream (no snapshout …url). I have an automation making snapshots every day an writing them to disk.
```
action:
- service: camera.snapshot
data:
entity_id: camera.c3
filename: '/home/nuc/snapshots/img{{ as_timestamp(now())|timestamp_custom("%y%m%d%H%M") }}.jpg'
```
The image files are there with the correct date, so the automation runs fine. But the jpeg-file always contains the image from the previous day. That is, img2207291200.jpg contains the image from 220728. I can see this because the camera makes a timestamp into the picture (the timestamp and the camera clock are fine). So it looks like the images are buffered and not written out to file.
See also #22460
### What version of Home Assistant Core has the issue?
core-2022.6.7
### What was the last working version of Home Assistant Core?
_No response_
### What type of installation are you running?
Home Assistant Core
### Integration causing the issue
camera
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/camera/
### Diagnostics information
{
"home_assistant": {
"installation_type": "Unknown",
"version": "2022.6.7",
"dev": false,
"hassio": false,
"virtualenv": false,
"python_version": "3.9.5",
"docker": false,
"arch": "x86_64",
"timezone": "Europe/Berlin",
"os_name": "Linux",
"os_version": "5.15.0-41-generic",
"run_as_root": false
},
"custom_components": {
"waste_collection_schedule": {
"version": "1.22.0",
"requirements": [
"icalendar",
"recurring_ical_events",
"icalevents",
"bs4"
]
},
"smart_thermostat": {
"version": "2021.11.1",
"requirements": []
},
"evapotranspiration": {
"version": "1.0.0",
"requirements": []
},
"filter": {
"version": "1",
"requirements": []
},
"cir": {
"version": "1.0",
"requirements": []
},
"alexa_media": {
"version": "4.0.3",
"requirements": [
"alexapy==1.26.1",
"packaging>=20.3",
"wrapt>=1.12.1"
]
},
"dmx": {
"version": "0.1.4",
"requirements": []
},
"shelly": {
"version": "0.3.5",
"requirements": [
"pyShelly==0.3.5",
"paho-mqtt==1.6.1",
"websocket-client"
]
},
"smart_irrigation": {
"version": "0.0.76",
"requirements": []
},
"dewpoint": {
"version": "0.1.0",
"requirements": [
"psychrolib==2.1.0"
]
},
"rki_covid": {
"version": "1.5.6",
"requirements": [
"rki-covid-parser>=1.2.4"
]
},
"notify_line": {
"version": "2021.1.1",
"requirements": []
}
},
"integration_manifest": {
"domain": "generic",
"name": "Generic Camera",
"config_flow": true,
"requirements": [
"av==9.2.0",
"pillow==9.1.1"
],
"documentation": "https://www.home-assistant.io/integrations/generic",
"codeowners": [
"@davet2001"
],
"iot_class": "local_push",
"is_built_in": true
},
"data": {
"title": "C3",
"data": {},
"options": {
"name": "C3",
"still_image_url": null,
"stream_source": "rtsp://****:****@192.168.178.49:554/****",
"authentication": "basic",
"username": null,
"password": null,
"limit_refetch_to_url_change": false,
"content_type": "image/jpeg",
"framerate": 2,
"verify_ssl": true
}
}
}
### Example YAML snippet
```yaml
action:
- service: camera.snapshot
data:
entity_id: camera.c3
filename: '/home/nuc/snapshots/img{{ as_timestamp(now())|timestamp_custom("%y%m%d%H%M") }}.jpg'
```
### Anything in the logs that might be useful for us?
```txt
the log does not show anything about the camera
```
### Additional information
_No response_