2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-12 16:46:35 +00:00

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
This commit is contained in:
fhemzap 2015-11-05 18:20:15 +00:00
parent aadc423e77
commit 39bb61e0af

View File

@ -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