I have updated the doc/CameraActions.md file in the tree with an example of how a ThingAction can be triggered to fire a new event. All of the implemented camera ThingActions to date are documented here.
Thanks so much for this. Frigate seems to be such thoughtful and well designed code it is great to see it being supported here.
Iām having an issue, with 4.1.1 and the newly released .jar file running in docker. The bridge flaps between online and offline every few minutes:
2024-03-17 21:14:47.406 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from OFFLINE (COMMUNICATION_ERROR): Frigate server went offline to ONLINE
2024-03-17 21:15:47.603 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-03-17 21:15:47.603 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from OFFLINE (BRIDGE_OFFLINE) to OFFLINE (COMMUNICATION_ERROR): Frigate server went offline
2024-03-17 21:15:52.668 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from OFFLINE (COMMUNICATION_ERROR): Frigate server went offline to ONLINE
2024-03-17 21:27:58.928 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-03-17 21:27:58.929 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from OFFLINE (BRIDGE_OFFLINE) to OFFLINE (COMMUNICATION_ERROR): Frigate server went offline
2024-03-17 21:28:03.906 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from OFFLINE (COMMUNICATION_ERROR): Frigate server went offline to ONLINE
2024-03-17 21:31:13.164 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-03-17 21:31:13.164 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from OFFLINE (BRIDGE_OFFLINE) to OFFLINE (COMMUNICATION_ERROR): Frigate server went offline
2024-03-17 21:31:18.201 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from OFFLINE (COMMUNICATION_ERROR): Frigate server went offline to ONLINE
2024-03-17 21:31:34.416 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-03-17 21:31:34.416 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from OFFLINE (BRIDGE_OFFLINE) to OFFLINE (COMMUNICATION_ERROR): Frigate server went offline
2024-03-17 21:31:39.451 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from OFFLINE (COMMUNICATION_ERROR): Frigate server went offline to ONLINE
2024-03-17 21:32:31.925 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-03-17 21:32:31.926 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from OFFLINE (BRIDGE_OFFLINE) to OFFLINE (COMMUNICATION_ERROR): Frigate server went offline
2024-03-18 06:47:49.658 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from OFFLINE (COMMUNICATION_ERROR): Frigate server went offline to ONLINE
2024-03-18 06:50:06.625 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-03-18 06:50:06.626 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from OFFLINE (BRIDGE_OFFLINE) to OFFLINE (COMMUNICATION_ERROR): Frigate server went offline
2024-03-18 06:50:11.653 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:birds-192-168-0-2155000' changed from OFFLINE (COMMUNICATION_ERROR): Frigate server went offline to ONLINE
During the overnight stretch I disabled the server to not generate alerts.
Where should I start troubleshooting? Might it have something to do with the MQTT client ID? I changed in the thing configuration but it wouldnāt start as a result. I know MQTT gets funny with duplicate IDsā¦
Interesting - this behaviour would suggest a problem with the keepalive. Do you only have the one Frigate camera āThingā? What is the Frigate server āThingā and the MQTT bridge doing: do they stay online?
During the period over which the camera Thing is online, does it generate valid data on its channels?
I have set up 5 cameras, but Iām just getting started so I can easily reduce to one for testing purposes.
It appears that when the server thing restarts it is sending old/retained data, I think. It was a busy weekend so I havenāt had much time to look into it but plan on doing so once I get my day started here today.
2024-03-18 07:00:33.111 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from dog to person
2024-03-18 07:07:29.587 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from person to dog
2024-03-18 07:07:55.539 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from dog to person
2024-03-18 07:36:16.801 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from person to dog
2024-03-18 07:36:36.791 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from dog to person
2024-03-18 07:36:36.791 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from person to dog
2024-03-18 07:37:23.263 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from dog to person
2024-03-18 07:37:23.263 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from person to dog
2024-03-18 07:37:42.233 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from dog to person
2024-03-18 07:42:18.264 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from person to dog
2024-03-18 07:43:27.127 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from dog to person
2024-03-18 07:44:10.864 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from person to dog
2024-03-18 07:44:49.749 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from dog to person
2024-03-18 07:47:09.340 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from person to dog
2024-03-18 07:47:13.075 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from dog to person
2024-03-18 07:49:52.810 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from person to dog
2024-03-18 07:52:39.478 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from dog to person
2024-03-18 07:56:17.686 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from person to dog
2024-03-18 07:58:55.549 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from dog to person
2024-03-18 08:07:50.887 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from person to dog
Iām guessing it has to do with docker networkingā¦the keepalive must not be able to reach? Iād love to have all these services on the same docker network, but UPNP needs to be on the host for my Sonos setup
It could be to do with docker if this somehow interferes with HTTP between the server āthingā and the Frigate server - and this could cause issues with the keepalive. I know very little about docker as I donāt use it (except for the pre-packaged Frigate version).
If you turn on debug logging (best to switch off all the live image streams if you do this as these will flood the log) it might help.
Welp, that wasnāt it. From the shell in the OpenHAB container:
root@openhab:/openhab# wget http://192.168.0.215:5000/api
--2024-03-18 10:43:42-- http://192.168.0.215:5000/api
Connecting to 192.168.0.215:5000... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://192.168.0.215:5000/api/ [following]
--2024-03-18 10:43:42-- http://192.168.0.215:5000/api/
Reusing existing connection to 192.168.0.215:5000.
HTTP request sent, awaiting response... 200 OK
Length: 38 [text/html]
Saving to: āapiā
api 100%[=======================================================>] 38 --.-KB/s in 0s
2024-03-18 10:43:42 (2.07 MB/s) - āapiā saved [38/38]
root@openhab:/openhab# cat api
Frigate is running. Alive and healthy!
root@openhab:/openhab#
Will continue to try to chip away on other troubleshooting
Anything in here look interesting:
2024-03-18 11:17:43.988 [DEBUG] [r.internal.servlet.frigateSVRServlet] - validity checks complete: 127.0.0.1
2024-03-18 11:17:44.384 [DEBUG] [ternal.servlet.streams.FFmpegManager] - ffmpeg: frame=128075 fps=2.5 q=5.0 size=N/A time=17:47:15.50 bitrate=N/A dup=45403 drop=422638 speed=1.27x
2024-03-18 11:17:44.499 [DEBUG] [r.internal.servlet.frigateSVRServlet] - validity checks complete: 127.0.0.1
2024-03-18 11:17:44.992 [DEBUG] [r.internal.servlet.frigateSVRServlet] - validity checks complete: 127.0.0.1
2024-03-18 11:17:44.993 [DEBUG] [ternal.servlet.streams.FFmpegManager] - ffmpeg: frame=128077 fps=2.5 q=5.0 size=N/A time=17:47:16.50 bitrate=N/A dup=45403 drop=422643 speed=1.27x
2024-03-18 11:17:45.497 [DEBUG] [r.internal.servlet.frigateSVRServlet] - validity checks complete: 127.0.0.1
2024-03-18 11:17:45.591 [DEBUG] [ternal.servlet.streams.FFmpegManager] - ffmpeg: frame=128078 fps=2.5 q=5.0 size=N/A time=17:47:17.00 bitrate=N/A dup=45403 drop=422647 speed=1.27x
2024-03-18 11:17:46.034 [DEBUG] [ternal.servlet.streams.FFmpegManager] - ffmpeg: frame=128079 fps=2.5 q=5.0 size=N/A time=17:47:17.50 bitrate=N/A dup=45403 drop=422651 speed=1.27x
2024-03-18 11:17:46.034 [DEBUG] [r.internal.servlet.frigateSVRServlet] - validity checks complete: 127.0.0.1
2024-03-18 11:17:46.501 [DEBUG] [r.internal.servlet.frigateSVRServlet] - validity checks complete: 127.0.0.1
2024-03-18 11:17:46.684 [DEBUG] [ternal.servlet.streams.FFmpegManager] - ffmpeg: frame=128080 fps=2.5 q=5.0 size=N/A time=17:47:18.00 bitrate=N/A dup=45403 drop=422656 speed=1.27x
==> /openhab/events.log <==
2024-03-18 11:17:47.595 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Sensor_Bedroom_BlueAir_VOCDensity' changed from 248 to 301
2024-03-18 11:17:47.857 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateServer:mosquitto:frigate1' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Unable to establish communication with Frigate HTTP server
2024-03-18 11:17:47.861 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:driveway-192-168-0-2155000' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-03-18 11:17:47.861 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:driveway-192-168-0-2155000' changed from OFFLINE (BRIDGE_OFFLINE) to OFFLINE (COMMUNICATION_ERROR): Frigate server went offline
==> /openhab/openhab.log <==
2024-03-18 11:17:46.996 [DEBUG] [r.internal.servlet.frigateSVRServlet] - validity checks complete: 127.0.0.1
2024-03-18 11:17:47.186 [DEBUG] [ternal.servlet.streams.FFmpegManager] - ffmpeg: frame=128081 fps=2.5 q=5.0 size=N/A time=17:47:18.50 bitrate=N/A dup=45403 drop=422660 speed=1.27x
2024-03-18 11:17:47.488 [DEBUG] [r.internal.servlet.frigateSVRServlet] - validity checks complete: 127.0.0.1
2024-03-18 11:17:47.707 [DEBUG] [ternal.servlet.streams.FFmpegManager] - ffmpeg: frame=128082 fps=2.5 q=5.0 size=N/A time=17:47:19.00 bitrate=N/A dup=45403 drop=422664 speed=1.27x
2024-03-18 11:17:47.756 [DEBUG] [nal.handlers.frigateSVRServerHandler] - keep-alive: device is online
2024-03-18 11:17:47.856 [ERROR] [nternal.helpers.frigateSVRHTTPHelper] - TimeoutException: Call to Frigate Server timed out after 100 msec
2024-03-18 11:17:47.856 [DEBUG] [nal.handlers.frigateSVRServerHandler] - server-thing: keepalive - stopping streaming server
2024-03-18 11:17:47.856 [INFO ] [r.internal.servlet.frigateSVRServlet] - StopServer called: stopping streaming server
2024-03-18 11:17:47.858 [DEBUG] [nal.handlers.frigateSVRCameraHandler] - cam driveway: Received trimmed server message status (pfxSvrAll test)
2024-03-18 11:17:47.858 [DEBUG] [nal.handlers.frigateSVRCameraHandler] - handling server state change - old state: online new state : offline
2024-03-18 11:17:47.858 [INFO ] [nal.handlers.frigateSVRCameraHandler] - camera: SetOffline called, stopping streamer
2024-03-18 11:17:47.858 [INFO ] [nal.handlers.frigateSVRCameraHandler] - camera driveway: unsubscribing from MQTT
2024-03-18 11:17:47.858 [DEBUG] [nal.handlers.frigateSVRCameraHandler] - offlining device
2024-03-18 11:17:47.954 [INFO ] [r.internal.servlet.frigateSVRServlet] - StopServer called: stopping streaming server
2024-03-18 11:17:47.995 [DEBUG] [r.internal.servlet.frigateSVRServlet] - validity checks complete: 127.0.0.1
2024-03-18 11:17:48.188 [DEBUG] [ternal.servlet.streams.FFmpegManager] - ffmpeg: frame=128083 fps=2.5 q=5.0 size=N/A time=17:47:19.50 bitrate=N/A dup=45403 drop=422668 speed=1.27x
2024-03-18 11:17:48.522 [DEBUG] [r.internal.servlet.frigateSVRServlet] - validity checks complete: 127.0.0.1
2024-03-18 11:17:48.704 [DEBUG] [ternal.servlet.streams.FFmpegManager] - ffmpeg: frame=128084 fps=2.5 q=5.0 size=N/A time=17:47:20.00 bitrate=N/A dup=45403 drop=422672 speed=1.27x
2024-03-18 11:17:48.990 [DEBUG] [r.internal.servlet.frigateSVRServlet] - validity checks complete: 127.0.0.1
2024-03-18 11:17:49.311 [DEBUG] [ternal.servlet.streams.FFmpegManager] - ffmpeg: frame=128085 fps=2.5 q=5.0 size=N/A time=17:47:20.50 bitrate=N/A dup=45403 drop=422677 speed=1.27x
2024-03-18 11:17:49.515 [DEBUG] [r.internal.servlet.frigateSVRServlet] - validity checks complete: 127.0.0.1
2024-03-18 11:17:49.788 [DEBUG] [ternal.servlet.streams.FFmpegManager] - ffmpeg: frame=128086 fps=2.5 q=5.0 size=N/A time=17:47:21.00 bitrate=N/A dup=45403 drop=422681 speed=1.27x
2024-03-18 11:17:49.990 [DEBUG] [r.internal.servlet.frigateSVRServlet] - validity checks complete: 127.0.0.1
2024-03-18 11:17:50.390 [DEBUG] [ternal.servlet.streams.FFmpegManager] - ffmpeg: frame=128087 fps=2.5 q=5.0 size=N/A time=17:47:21.50 bitrate=N/A dup=45403 drop=422686 speed=1.27x
2024-03-18 11:17:50.504 [DEBUG] [r.internal.servlet.frigateSVRServlet] - validity checks complete: 127.0.0.1
==> /openhab/events.log <==
2024-03-18 11:17:51.750 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Sensor_RecRoom_Brightness' changed from 4352 to 4608
==> /openhab/openhab.log <==
2024-03-18 11:17:51.050 [DEBUG] [ternal.servlet.streams.FFmpegManager] - ffmpeg: frame=128089 fps=2.5 q=5.0 size=N/A time=17:47:22.50 bitrate=N/A dup=45403 drop=422691 speed=1.27x
2024-03-18 11:17:51.050 [DEBUG] [r.internal.servlet.frigateSVRServlet] - validity checks complete: 127.0.0.1
2024-03-18 11:17:51.507 [DEBUG] [r.internal.servlet.frigateSVRServlet] - validity checks complete: 127.0.0.1
2024-03-18 11:17:51.688 [DEBUG] [ternal.servlet.streams.FFmpegManager] - ffmpeg: frame=128090 fps=2.5 q=5.0 size=N/A time=17:47:23.00 bitrate=N/A dup=45403 drop=422696 speed=1.27x
==> /openhab/events.log <==
2024-03-18 11:17:52.867 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateServer:mosquitto:frigate1' changed from OFFLINE (COMMUNICATION_ERROR): Unable to establish communication with Frigate HTTP server to ONLINE
2024-03-18 11:17:52.869 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:frigateCamera:mosquitto:driveway-192-168-0-2155000' changed from OFFLINE (COMMUNICATION_ERROR): Frigate server went offline to ONLINE
2024-03-18 11:17:52.874 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from dog to person
2024-03-18 11:17:52.897 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Output_Camera_Driveway_DetectedObject' changed from person to dog
==> /openhab/openhab.log <==
2024-03-18 11:17:51.998 [DEBUG] [r.internal.servlet.frigateSVRServlet] - validity checks complete: 127.0.0.1
2024-03-18 11:17:52.204 [DEBUG] [ternal.servlet.streams.FFmpegManager] - ffmpeg: frame=128091 fps=2.5 q=5.0 size=N/A time=17:47:23.50 bitrate=N/A dup=45403 drop=422700 speed=1.27x
2024-03-18 11:17:52.489 [DEBUG] [r.internal.servlet.frigateSVRServlet] - validity checks complete: 127.0.0.1
2024-03-18 11:17:52.857 [INFO ] [nal.handlers.frigateSVRServerHandler] - - Frigate server is offline
2024-03-18 11:17:52.866 [DEBUG] [nal.handlers.frigateSVRServerHandler] - have configuration block
2024-03-18 11:17:52.866 [DEBUG] [eConfig.frigateSVRFrigateConfigBlock] - Adding camera :atrium
2024-03-18 11:17:52.866 [DEBUG] [eConfig.frigateSVRFrigateConfigBlock] - Adding camera :birds
2024-03-18 11:17:52.866 [DEBUG] [eConfig.frigateSVRFrigateConfigBlock] - Adding camera :dogfood
2024-03-18 11:17:52.866 [DEBUG] [eConfig.frigateSVRFrigateConfigBlock] - Adding camera :driveway
2024-03-18 11:17:52.866 [DEBUG] [eConfig.frigateSVRFrigateConfigBlock] - Adding camera :garages
2024-03-18 11:17:52.867 [INFO ] [nal.handlers.frigateSVRServerHandler] - onlining server thing
2024-03-18 11:17:52.867 [DEBUG] [nal.handlers.frigateSVRServerHandler] - publishing status message on frigateSVRALL/mqtt:frigateServer:mosquitto:frigate1/status
2024-03-18 11:17:52.867 [DEBUG] [nal.handlers.frigateSVRServerHandler] - keep-alive: device is online
2024-03-18 11:17:52.867 [DEBUG] [nal.handlers.frigateSVRCameraHandler] - cam driveway: Received trimmed server message status (pfxSvrAll test)
2024-03-18 11:17:52.868 [DEBUG] [nal.handlers.frigateSVRCameraHandler] - handling server state change - old state: offline new state : online
2024-03-18 11:17:52.868 [INFO ] [nal.handlers.frigateSVRCameraHandler] - camera driveway: server state change: online: Number of cams: 5
2024-03-18 11:17:52.868 [INFO ] [nal.handlers.frigateSVRCameraHandler] - Camera driveway onlining complete
2024-03-18 11:17:52.869 [DEBUG] [nal.handlers.frigateSVRCameraHandler] - cam driveway: Received trimmed server message driveway/motion_contour_area/state (pfxSvrMsg test)
2024-03-18 11:17:52.869 [DEBUG] [nal.handlers.frigateSVRCameraHandler] - cam driveway: Received trimmed server message driveway/snapshots/state (pfxSvrMsg test)
2024-03-18 11:17:52.869 [DEBUG] [nal.handlers.frigateSVRCameraHandler] - cam driveway: Received trimmed Frigate server->camera message :motion_contour_area/state
2024-03-18 11:17:52.869 [DEBUG] [nal.handlers.frigateSVRCameraHandler] - cam driveway: Received trimmed server message driveway/motion_threshold/state (pfxSvrMsg test)
2024-03-18 11:17:52.869 [DEBUG] [nal.handlers.frigateSVRCameraHandler] - cam driveway: Received trimmed server message driveway/person/snapshot (pfxSvrMsg test)
2024-03-18 11:17:52.869 [DEBUG] [nal.handlers.frigateSVRCameraHandler] - cam driveway: Received trimmed Frigate server->camera message :motion_threshold/state
2024-03-18 11:17:52.869 [DEBUG] [nal.handlers.frigateSVRCameraHandler] - cam driveway: Received trimmed Frigate server->camera message :person/snapshot
2024-03-18 11:17:52.869 [INFO ] [nal.handlers.frigateSVRCameraHandler] - received snapshot for cam driveway object person
2024-03-18 11:17:52.869 [DEBUG] [al.structures.frigateSVRChannelState] - Channel - updating raw type
2024-03-18 11:17:52.869 [DEBUG] [nal.handlers.frigateSVRCameraHandler] - cam driveway: Received trimmed server message driveway/dog/snapshot (pfxSvrMsg test)
2024-03-18 11:17:52.869 [DEBUG] [nal.handlers.frigateSVRCameraHandler] - cam driveway: Received trimmed Frigate server->camera message :dog/snapshot
2024-03-18 11:17:52.869 [DEBUG] [nal.handlers.frigateSVRCameraHandler] - cam driveway: Received trimmed Frigate server->camera message :snapshots/state
2024-03-18 11:17:52.870 [DEBUG] [nal.handlers.frigateSVRCameraHandler] - cam driveway: Received trimmed server message driveway/improve_contrast/state (pfxSvrMsg test)
2024-03-18 11:17:52.870 [DEBUG] [nal.handlers.frigateSVRCameraHandler] - cam driveway: Received trimmed Frigate server->camera message :improve_contrast/state
2024-03-18 11:17:52.870 [INFO ] [nal.handlers.frigateSVRCameraHandler] - received snapshot for cam driveway object dog
It looks like there is some problem accessing the Frigate HTTP API from the binding. The line " ```
TimeoutException: Call to Frigate Server timed out after 100 msec" suggests that the call is timing out. Now this could be simply that your configuration canāt respond in 100ms and this perhaps may be down to some of the docker networking stuff?
In v2.0 of the binding you can increase this timeout. In the āAdvancedā configuration of the server āThingā you will find a configuration parameter āFrigate API HTTP timeout (ms)ā. By default this is 100ms. Try increasing it and see if the problem disappears.
I thought it was working but it timed out after 1000ms. Data is flowing while it is working, and the frigate container looks to be in good shape. Maybe Iāll try messing with shm size in the docker container.
This is looking like it is something to do with your specific configuration. The binding is not receiving the response to the version query (which is used to determine if the HTTP API on Frigate is up) within the timeout, causing the server Thing to offline the cameras.
Still havenāt sorted this out (busy week) but some findings:
My home and business are connected via a tailscale site-to-site VPN. Both have OH and Frigate running in docker containers.
I can point the home OH to the biz Frigate and it eventually times out as well
but
I can point the biz OH to the home Frigate and it works fine
The biz OH instance is about 10x simpler than the home one.
I wonder if I need to adjust a java memory setting or something? I might rip all things and items out, remove binding, reboot and start again?
Iām no expert on Java configuration, or docker, but this doesnāt look like an issue with the binding itself, especially if you can communicate in one direction but not the other. It may indeed be worth playing with the VM settings to try and narrow this down further.
My apologies if this was already answered, but does this binding require OpenHab 4+?
I installed the binding and am on OpenHab 3.4.3 and it does not go into Active mode.
So Iām wondering if the problem is my version
The binding is build against 4.1.1.
See Releases Ā· jgow/org.openhab.binding.mqtt.frigatesvr Ā· GitHub
Hello @jgow is the binding compatible with the upcoming version 0.14 and can you please create it directly against oh 4.2?
You should now find a version built against OH v4.2.0 in the āReleasesā section on Github
Thanks, the binding also works for me with OH 4.2.1 and Frigate 0.14.
Thanks for the binding - I just found it while searching for Frigate integration into OpenHAB.
Are there any plans to commit this binding to the mainline for easier access via the UI?
Thereās a pre-built jar available now, built against OH 4.2.