From bf1dd8d58b7caf449851f8311d22d973e3f9fe91 Mon Sep 17 00:00:00 2001 From: fhemzap <> Date: Tue, 15 Dec 2015 16:51:28 +0000 Subject: [PATCH] HMCCU: bug fixes and enhanced handling of datapoints git-svn-id: https://svn.fhem.de/fhem/trunk@10183 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/HMCCU/HMCCU_README.txt | 92 ++++++++++++++++++++++++++--- 1 file changed, 85 insertions(+), 7 deletions(-) diff --git a/fhem/contrib/HMCCU/HMCCU_README.txt b/fhem/contrib/HMCCU/HMCCU_README.txt index 295e759f5..326e6e925 100644 --- a/fhem/contrib/HMCCU/HMCCU_README.txt +++ b/fhem/contrib/HMCCU/HMCCU_README.txt @@ -3,9 +3,9 @@ *** HMCCU/HMCCUDEV - Modules for FHEM - Homematic CCU integration *** ======================================================================= -* Document covers HMCCU/HMCCUDEV/HMCCUCHN version 2.1 (RPC server) +* Document covers HMCCU/HMCCUDEV/HMCCUCHN version 2.3 * Please read carefully before using the modules. -* Last modified: 25.11.2015 +* Last modified: 15.12.2015 ---------------------------------------------- Content @@ -185,6 +185,10 @@ Get value of datapoint: get datapoint {|}. [] +Display list of channels and datapoints of a device: + + get deviceinfo {|} + Read list of devices and channels from CCU: get devicelist [dump] @@ -219,6 +223,13 @@ Get CCU variable values: 2.3 HMCCU Attributes ------------------------------------ +Set filter for datapoint readings (default is '.*'): + + attr ccureadingfilter + + Only datapoints matching the specified expression will be stored as + readings. + Set reading name format (default is 'name'): attr ccureadingformat { name | address } @@ -234,6 +245,8 @@ Control reading creation (default is 1): Set datapoint for "get/set devstate" commands (default is 'STATE'): attr statedatapoint + + The value of this datapoint is stored in internal STATE of the FHEM device. Remove character from CCU device or variable specification in set commands: @@ -276,9 +289,36 @@ Specify text substitutions for values in set commands: Note: Parameters are no regular expressions. -Specify text substitutions for values returned by get commands: +Set format of readings with floating point numbers (default is 0): + + attr stripnumber { 0 | 1 | 2 } + + 0 = Floating point numbers are stored as read from CCU (i.e. with trailing zeros). + 1 = Trailing zeros are stripped from floating point numbers except one digit. + 2 = All trailing zeros are stripped from floating point numbers. + +Specify text substitution rules for values returned by get commands: + + attr substitute [;...] + + The substitution rules are applied to values read from CCU before they are + stored as readings. The syntax of a substitution rule is: + + [!]:[,...] + + If a datapoint is specified the rule is applied only for values of this + datapoint. + + Note: Floating point numbers are ignored. Integer numbers are only substituted + if they match the complete regular expression. + + Example: Substitute values of datapoints STATE and LOWBAT. + + STATE!(1|true):on,(0|false):off;LOWBAT!(1|true):yes,(0|false):no + + Note: get commands return true/false for boolean values while RPC server + returns 1/0. - attr substitute :[,...] ------------------------------------ 2.4 HMCCU Parameter files @@ -288,7 +328,7 @@ A parameter file contains a list of CCU channel or datapoint definitions. Each line can contain a text substitution rule. A parameter file is used by command "get parfile". The format of a parfile entry is: - {|}[.] [:[,...]] + {|}[.] [ is a regular expression. Default is .* (query all datapoints of a channel). +Display list of channels and datapoints of a device: + + get deviceinfo + Get state of device: get devstate @@ -408,6 +452,13 @@ Get state of device: Client device attributes overwrite corresponding HMCCU attributes! +Set filter for datapoint readings (default is '.*'): + + attr ccureadingfilter + + Only datapoints matching the specified expression will be stored as + readings. + Set reading name format (default is 'name'): attr ccureadingformat { name | address | datapoint } @@ -444,9 +495,19 @@ Specify text substitutions for values in set commands: set switch1 off set switch1 devstate on +Set format of readings with floating point numbers (default is 0): + + attr stripnumber { 0 | 1 | 2 } + + 0 = Floating point numbers are stored as read from CCU (i.e. with trailing zeros). + 1 = Trailing zeros are stripped from floating point numbers except one digit. + 2 = All trailing zeros are stripped from floating point numbers. + Specify text substitutions for values returned by get commands: - attr substitute :[,...] + attr substitute [;...] + + For detailed information see description of HMCCU attribute 'substitute'. ==================================== @@ -509,6 +570,13 @@ Get state of device: Client device attributes overwrite corresponding HMCCU attributes! +Set filter for datapoint readings (default is '.*'): + + attr ccureadingfilter + + Only datapoints matching the specified expression will be stored as + readings. + Set reading name format (default is 'name'): attr ccureadingformat { name | address | datapoint } @@ -539,9 +607,19 @@ Specify text substitutions for values in set commands: set switch1 off set switch1 devstate on +Set format of readings with floating point numbers (default is 0): + + attr stripnumber { 0 | 1 | 2 } + + 0 = Floating point numbers are stored as read from CCU (i.e. with trailing zeros). + 1 = Trailing zeros are stripped from floating point numbers except one digit. + 2 = All trailing zeros are stripped from floating point numbers. + Specify text substitutions for values returned by get commands: - attr substitute :[,...] + attr substitute [;...] + + For detailed information see description of HMCCU attribute 'substitute'. ====================================