From 39bb61e0af3ea9725e618fce115e6c23acfebda4 Mon Sep 17 00:00:00 2001 From: fhemzap <> Date: Thu, 5 Nov 2015 18:20:15 +0000 Subject: [PATCH] HMCCU: device and channel addressing reworked, prepared for upcoming RPC version git-svn-id: https://svn.fhem.de/fhem/trunk@9792 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/HMCCU/example.cfg | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/fhem/contrib/HMCCU/example.cfg b/fhem/contrib/HMCCU/example.cfg index 28349cadd..4e1aeb88c 100644 --- a/fhem/contrib/HMCCU/example.cfg +++ b/fhem/contrib/HMCCU/example.cfg @@ -1,5 +1,5 @@ # -# Example configuration for module HMCCU +# Example configuration for modules HMCCU and HMCCUDEV # # Define device (hostname of CCU is "homematic") @@ -10,7 +10,7 @@ attr d_ccu ccureadings 1 # Parameterfile with channel/datapoints to be read from CCU # by command get parfile -attr d_ccu parfile /opt/fhem/scripts/hmvalues.pat +attr d_ccu parfile /opt/fhem/scripts/hmvalues.txt # If CCU systemvariable name ends with a ":" this character # will be removed. Applies to command set devstate only. @@ -22,6 +22,21 @@ attr d_ccu stripchar : # reading. attr d_ccu substitute false:closed,true:open -# Do not append units to values read from CCU -attr d_ccu units 0 +# Subsitute values before setting them +attr d_ccu statevals on:true,off:false + +# Define client device for door/window sensor +define d_hm_dw_window HMCCUDEV TF-WZ-Window readonly +attr d_hm_dw_window ccureadings 1 +attr d_hm_dw_window substitute false:closed,true:open + +# Define client device for subwoofer with state channel 1 +define d_hm_st_sub HMCCUDEV ST-WZ-Sub 1 +attr d_hm_st_sub ccureadings 1 +attr d_hm_st_sub statevals on:true,off:false +attr d_hm_st_sub substitute true:on,false:off + +# Update CCU readings and client devices every 10 minutes +define at_ccu at +*00:10:00 get d_ccu parfile +attr at_ccu alignTime 00:05