Commit Graph

23 Commits

Author SHA1 Message Date
8524d188d7 Add UTF-8 encoding for reading bulk updates
This commit introduces the use of the `Encode` module to ensure that
values being processed in the `WriteReadings` subroutine are correctly
encoded in UTF-8. The previous implementation did not account for
potential non-UTF-8 encoded data which could lead to issues when
updating readings.

The change specifically checks if the value (`$v`) is marked as UTF-8
using `Encode::is_utf8()`. If it is, the value is re-encoded to UTF-8
before being passed to `::readingsBulkUpdate()`. This adjustment
ensures that all data written to readings maintains proper character
encoding, improving compatibility and preventing potential data
corruption.

No breaking changes are introduced, but it is important for users
to validate that their readings correctly display any special
characters post-update.
2025-10-15 06:44:38 +02:00
7c45784c1f Update Nuki Bridge and Device to version 2.1.0
The Nuki Bridge and Device modules have been updated to version 2.1.0.
Key changes include enhancements to the command handling within the
Bridge module, replacing the `given/when` construct with a more
flexible hash-based dispatcher for clarity and maintainability.

Additionally, minor refinements have been made in the Device module,
including improved reading updates and handling of last known
device states. The experimental feature switch has been commented
out, ensuring compatibility with standard Perl versions.

These updates improve the overall robustness and readability of the
code, making it easier to maintain and extend in future versions.
No breaking changes have been introduced.
2025-10-14 10:45:26 +02:00
a95cbbcaba Fix HTTP 503 Unavailable message in encode_json
[Ticket: none]
2022-09-26 12:07:12 +02:00
d1171bd14a fix negativ tag count in commandref 2021-12-17 12:43:44 +01:00
2f61d7c408 complete the commandref and change version for modules and minimal perl version 2021-12-17 11:57:40 +01:00
288646a882 german translation for commandref 2021-12-16 19:04:24 +01:00
f919bab524 revision of the commandref from bridge modul 2021-12-11 19:10:53 +01:00
168c29f444 fix critical error 2021-12-10 21:59:48 +01:00
6b75e5c9dc make all modules perlcritic level3 conform 2021-12-10 20:24:31 +01:00
f1418ca195 rewrite code perlcritic level3 conform 2021-12-10 13:27:53 +01:00
bac765ac85 change GetCallBridgeAlive Endpoint because of a bug
https://developer.nuki.io/t/support-for-new-smart-lock-3-0-3-0-pro/12842/12?u=leongaultier
2021-12-05 12:14:50 +01:00
f86aa29419 add README.md 2021-11-30 10:02:49 +01:00
269da4d4f2 fix Undefined subroutine &FHEM::Devices::Nuki::Bridge::Log3 2021-11-28 16:48:15 +01:00
99fcb221d8 fix little bugs 2021-11-28 00:31:39 +01:00
4489744f90 add configAuth option enable/disable publication of the local IP and
port via discovery URL
2021-11-27 23:34:28 +01:00
efbea2f987 Merge branch 'patch-implemntationAllModelAndFunctions' into patch-discoveryAuthorization 2021-11-27 22:57:15 +01:00
25a682224b change model and fix problems 2021-11-27 22:51:25 +01:00
e87f03fe63 Merge branch 'devel' into patch-discoveryAuthorization 2021-11-27 21:38:11 +01:00
05e5322b42 change model name for smartlock 3.0 api conform. fix little bugs 2021-11-27 21:32:19 +01:00
e634cf4437 code clean and new battery readings 2021-11-27 18:45:00 +01:00
a8ea6814ab add discovery and full automation define bridge with host and port from
fetch API information via /auth endpoint
2021-11-27 18:08:27 +01:00
c21bd2479a fix uninitialized value $iodev in hash element line 221 2021-11-27 09:52:55 +01:00
3755e1b236 add support für fhem update command 2021-11-26 19:45:29 +01:00