Commit Graph

106 Commits

Author SHA1 Message Date
Holger Friedrich
de74eb51e9 Prepare for OH 5.0.0 (#17906)
* Switch to 5.0.0-SNAPSHOT
* Fix spotless after unleash
* resolve itest runbundles

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:34 +02:00
openhab-bot
7778934d07 [unleash-maven-plugin] Preparation for next development cycle.
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:34 +02:00
Andrew Fiddian-Green
760ba2c0e4 Normalize thread names (2) (#17849)
* Normalize thread names

Signed-off-by: AndrewFG <software@whitebear.ch>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:32 +02:00
David Masshardt
aa13775a79 Various Onvif fixes for IpCamera (#17732)
I made various changes and fixes to the ONVIF connection in the IpCamera binding.

Signed-off-by: David Masshardt <david@masshardt.ch>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:28 +02:00
Matthew Skinner
d20144d932 Update openhab controls by asking camera for states. (#17639)
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:25 +02:00
mesetka
a77c98ec3a [ipcamera] Add new channels for Dahua API-based doorphones (#13313)
* Made all changes requested by codeowner, added additional useful channels, fixing changes before going to channels organizing into groups and dynamic channels deletion.

Signed-off-by: mesetka <yarkiyluch@gmail.com>
Co-authored-by: Matthew Skinner <matt@pcmus.com>
Co-authored-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:25 +02:00
Matthew Skinner
473aa59aed [ipcamera] Fix Reolink will not update a new token after a disconnect. (#17629)
* Fix: Reolink will not update a new token after a disconnect.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:24 +02:00
Matthew Skinner
d8cace5459 [ipcamera] Add support to change MJPEG source to a different RTSP sub stream to lower CPU usage (#17591)
* Add support to change MJPEG sources to different RTSP sub streams

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:24 +02:00
Matthew Skinner
46f3e9aa8c [ipcamera] Fix Reolink does not detect bad user or passwords. (#17589)
* Fix Reolink does not detect bad user or password.
* Improve logging to include URL

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:22 +02:00
Matthew Skinner
c178939c91 [ipcamera] Fix Reolink events do not auto restart (#17581)
* Fix Reolink events do not auto restart.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:22 +02:00
Matthew Skinner
143d072c85 Fix bug where port numbers in URL stop MJPEG from working (#17551)
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:20 +02:00
Matthew Skinner
0133881465 fix mjpeg does not work if overridden (#17544)
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:20 +02:00
Matthew Skinner
0e09fac688 [ipcamera] Improve onvif events with an auto restart feature (#17518)
* Refactor and improve onvif events with auto restart.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:20 +02:00
Ronny Grun
17d03903e0 [ipcamera| add autoTracking channel for reolink camera (#17488)
Signed-off-by: Ronny Grun <ronny.grun@t-online.de>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:18 +02:00
lsiepel
3b474220fb Multiple binding markdown fixes (#17422)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:17 +02:00
Matthew Skinner
87303e4356 [ipcamera] Add motion and alarm support for Axis branded cameras (#17419)
* Add support for Axis motion detection
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:15 +02:00
Matthew Skinner
3338e39557 Add another motion detection topic for VivoTek FD9388-HTV (#17388)
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:13 +02:00
lsiepel
90da4e40cc Apply Spotless after release (#17016)
* Spotless

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:00 +02:00
openhab-bot
5fa59d316f [unleash-maven-plugin] Preparation for next development cycle.
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:00 +02:00
Matthew Skinner
38f2751512 [ipcamera] Fix ONVIF alarms streams may stop and not restart on some cameras. (#16777)
* Fault find stream

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:51 +02:00
Matthew Skinner
dab52f4e58 Add new AI alarms for Foscam (#16775)
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:51 +02:00
Simmon Yau
da56333001 Updated whiteLED channel for reolink ipcamera so that when the (#16663)
light is turned on, it will stay on forever and if the light is
turned off, it will stay off forever.

Signed-off-by: Simmon Yau <simmonyau@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:49 +02:00
Holger Friedrich
efa53248ac [ipcamera] Addon info for suggestions (#16090)
* [ipcamera] Addon info for suggestions

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:34 +02:00
Matthew Skinner
0c2b95e48f Allow ONVIF to come online if they dont support events. (#16332)
Remove commented out code.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:31 +02:00
Matthew Skinner
543721aa1b [ipcamera] Add white LED controls for Dahua and also Email and Push for Reolink with v20 command support (#16144)
* New reolink channels
* extra channel for Dahua.
* Reolink NPE fix
* Fix LED modes and auto.
* Handle NVR channels for new channels
* add nvr channels to Dahua.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:29 +02:00
Wouter Born
ef59934e9c Use diamond operator and remove redundant type arguments (#16249)
Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:25 +02:00
Wouter Born
d1d6e817af Remove redundant feature dependencies (#16204)
* Remove redundant feature dependencies

The following features are already dependencies of openhab-runtime-base:

* openhab-core-base
* openhab-core-model-item
* openhab-core-model-script
* openhab-transport-mdns

See also: https://github.com/openhab/openhab-addons/pull/16202#issuecomment-1876875456

* Remove redundant openhab.tp-jackson and openhab.tp-jaxb feature dependencies

Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:25 +02:00
J-N-K
fc8fa6d119 Adapt to core changes (ThingHandlerService) (#16107)
Related to: https://github.com/openhab/openhab-core/pull/3957

Signed-off-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:24 +02:00
Jacob Laursen
92145428df Update license headers to 2024 (#16168)
* Update copyright year in configuration
* Update license headers
* Manually update nibeheatpump headers (.cpp/.h/.ino)
* Manually update smsmodem header
* Manually update hueemulation header
* Manually update addon-header.xml header

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:23 +02:00
Matthew Skinner
cc0abdc082
Remove channels and checking IO status when camera does not support IO (#16081)
Signed-off-by: Matthew Skinner <matt@pcmus.com>
2023-12-23 18:47:12 +01:00
Holger Friedrich
533cc666ab
Apply spotless after release (#16097)
* Apply spotless after release
* itests: resolve bundles

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-22 23:30:38 +01:00
openhab-bot
83e0485219 [unleash-maven-plugin] Preparation for next development cycle. 2023-12-22 14:37:48 +00:00
Stefan Triller
e4c4d03167
[ipcamera] Fix Hikvision cameras stay offline when a 401 reply is given with no www-authenticate header (#15613)
Signed-off-by: Stefan Triller <github@stefantriller.de>
2023-12-17 06:58:34 +01:00
Matthew Skinner
50801be9d5
Fix Reloink alarms not working after reconnect. (#15943)
Signed-off-by: Matthew Skinner <matt@pcmus.com>
2023-11-23 13:39:07 +01:00
Kai Kreuzer
9a85fca6cb
[ipcamera] Handle empty snapshotUrls and XML encoded characters (#15707)
* [ipcamera] Handle empty snapshotUrls and XML encoded characters
* use unescape method from StringUtils

---------

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-10-18 19:00:49 +02:00
Kai Kreuzer
1e090bddae
[ipcamera] Fix warnings and improve logging (#15703)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-10-17 16:03:25 +02:00
tb4jc
fef9680af5
[ipcamera] Fix connection checks with ONVIF cameras with no snapshots (#15119)
* Added connection check via IdleStateHandler events for sent onvif requests.
Also checking connect errors and setting new states connectError or refusedError accordingly.
On connect, only one request is sent to have less parallel actions in case of reconnect, timeout.
Moved GetCapabilities call to GetSystemDateAndTime response handler part.
Added support to disable automatic polling at startup.

* Fixed call of sendOnvifRequest (missed to remove one call of requestBuilder).

---------

Signed-off-by: Thomas Burri <th@thonojato.ch>
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Co-authored-by: Matthew Skinner <matt@pcmus.com>
2023-09-27 08:54:15 +02:00
Holger Friedrich
edaf17b345
Java 17 features (H-M) (#15520)
- add missing @override
- Java style array syntax
- remove redundant modifiers
- always move String constants to left side in comparisons
- simplify lambda expressions and return statements
- use replace instead of replaceAll w/o regex
- instanceof matching and multiline strings
- remove null check before instanceof

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-09-08 14:36:59 +02:00
Holger Friedrich
95ac2eb80b
Use SecureRandom instead of Random (#15459)
Make sure that SecureRadom is used whenever the random number
is used for cryptographic operations, e.g. as nonce/salt.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-08-20 21:29:37 +02:00
Kai Kreuzer
72607d3bee Apply spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-07-24 01:20:31 +02:00
openhab-bot
809fceaff3 [unleash-maven-plugin] Preparation for next development cycle. 2023-07-23 19:19:01 +00:00
Matthew Skinner
8701b86a37
[ipcamera] FIX: TAPO branded cameras require xAddr port to be different (#15073)
* FIX TAPO branded cameras require xAddr port to be different from the
main ONVIF PORT
* Fix for old API instar cameras.

---------

Signed-off-by: Matthew Skinner <matt@pcmus.com>
2023-07-16 13:32:40 +02:00
Matthew Skinner
1f78f9ac7b
[ipcamera] Fix discovery crashes when networks have access rights issues in docker (#15059)
* Fix discovery crashes if network use is blocked by docker.
* Change log levels to be more useful.
* add better reolink discovery check

Signed-off-by: Matthew Skinner <matt@pcmus.com>
2023-07-02 09:11:06 +02:00
Matthew Skinner
01add04f9e
[ipcamera] Add Reolink API support (#14728)
Signed-off-by: Matthew Skinner <matt@pcmus.com>
2023-05-13 12:31:39 +02:00
tb4jc
a2dcf2fcef
[ipcamera] Fix orphan ffmpeg process after stopping stream URL (#14909)
* Setting ffmpeg reference 'ffmpegMjpeg' to null after stopping convertion to fix automatic restart of ffmpeg process.

---------

Signed-off-by: Thomas Burri <th@thonojato.ch>
2023-05-08 11:43:49 +02:00
mlobstein
6e2dddfe73
Declare connection for bindings G thru M (#14902)
* Declare connection for bindings G-M

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2023-04-29 20:24:54 +02:00
Robert Eckhoff
4d5be1f64c
[ipcamera] Fix servlet exceptions due to non unique names (#14872)
* [ipcamera] Fix servlet exceptions due to non unique names

[IP camera] on OH4 has the same servlet issue that was fixed by PR #14554.  This PR uses that PR as a template to fix the issue in the IPcamera binding.  (That issue being that only one camera was able to stream.) This was tested locally on OH4M2 and it works.

Signed-off-by: Bob Eckhoff  <katmandodo@yahoo.com>
2023-04-23 21:23:42 +02:00
Wouter Born
50cdd02447
[ipcamera] Make sure created Servlet supports async (#14552)
Fixes the folowing errors:

```
HTTP ERROR 500 java.lang.IllegalStateException: !asyncSupported: NotAsync:org.ops4j.pax.web.service.spi.servlet.OsgiInitializedServlet@536b0858
URI:	/ipcamera/192168493/ipcamera.jpg
STATUS:	500
MESSAGE:	java.lang.IllegalStateException: !asyncSupported: NotAsync:org.ops4j.pax.web.service.spi.servlet.OsgiInitializedServlet@536b0858
SERVLET:	org.openhab.binding.ipcamera.internal.servlet.CameraServlet
CAUSED BY:	java.lang.IllegalStateException: !asyncSupported: NotAsync:org.ops4j.pax.web.service.spi.servlet.OsgiInitializedServlet@536b0858
Powered by Jetty:// 9.4.50.v20221201
```

See:

* https://community.openhab.org/t/openhab-4-0-snapshot-discussion/142322/226
* https://groups.google.com/g/ops4j/c/E9p7tPydPmo
* https://github.com/ops4j/org.ops4j.pax.web/issues/1767

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-08 17:20:08 +01:00
J-N-K
89d0689e36
fix i18n for bindings (#14235)
Also-By: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-21 12:14:51 +01:00
J-N-K
5f8214f08a
Adapt to core changes (addon.xml) (#13289)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-15 20:31:42 +01:00