From 7d755ddad5e3e6060b3fd01ffa4852a15e10c818 Mon Sep 17 00:00:00 2001 From: andi291 <> Date: Sun, 19 Aug 2018 12:45:19 +0000 Subject: [PATCH] =?UTF-8?q?10=5FKNX:=20updated=20link=20in=20doku,=20chang?= =?UTF-8?q?ed=20(dpt16$)=20to=20dpt16=20in=20set,=20tried=20to=20fix=20?= =?UTF-8?q?=C3=B6ast-sender=20(replaced=20bulk=20by=20single=20in=20decodi?= =?UTF-8?q?ng=20loop)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.fhem.de/fhem/trunk@17174 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_KNX.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/10_KNX.pm b/fhem/FHEM/10_KNX.pm index b287642f1..708d6f7ba 100644 --- a/fhem/FHEM/10_KNX.pm +++ b/fhem/FHEM/10_KNX.pm @@ -30,6 +30,7 @@ # ABU 20180626 fixed last changes # ABU 20180706 changed eval, removed stateCopy # ABU 20180706 fixed doku: changed readonly in listenonly +# ABU 20180815 updated link in doku, changed (dpt16$) to dpt16 in set, tried to fix öast-sender (replaced bulk by single in decoding loop) package main; @@ -807,7 +808,7 @@ KNX_Set($@) { elsif ($cmd =~ m/$STRING/i) { my $code = $hash->{GADDETAILS}{$targetGadName}{MODEL}; - return "\"string\" only allowed for dpt16" if (not($code =~ m/(dpt16$)/i)); + return "\"string\" only allowed for dpt16" if (not($code =~ m/dpt16/i)); return "no data for cmd $cmd" if ($lastArg < 2); $cmd = $a[2]; @@ -1203,7 +1204,7 @@ KNX_Parse($$) { #message invalid if (not defined($transval) or ($transval eq "")) { - readingsBulkUpdate($deviceHash, "last-sender", KNX_hexToName($src)); + readingsSingleUpdate($deviceHash, "last-sender", KNX_hexToName($src), 1); Log3 ($deviceName, 2, "parse device hash (wpi): $deviceHash name: $deviceName, message could not be decoded - see log for details"); next; } @@ -2071,7 +2072,7 @@ KNX_decodeByDpt ($$$) {

KNX

KNX is a standard for building automation / home automation. It is mainly based on a twisted pair wiring, but also other mediums (ip, wireless) are specified.

-

For getting started, please refer to this document: KNX-Basics

+

For getting started, please refer to this document: KNX-Basics

While the module TUL represents the connection to the KNX network, the KNX modules represent individual KNX devices.
This module provides a basic set of operations (on, off, toggle, on-until, on-for-timer) to switch on/off KNX devices and to send values to the bus. 

Sophisticated setups can be achieved by combining a number of KNX module instances. Therefore you can define a number of different GAD/DPT combinations per each device.