From 926d56913bd4d5c651c512617303c49ebdbd87d6 Mon Sep 17 00:00:00 2001 From: fhemzap <> Date: Fri, 16 Oct 2015 16:34:34 +0000 Subject: [PATCH] HMCCUDEV: minor changes git-svn-id: https://svn.fhem.de/fhem/trunk@9466 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/HMCCU/88_HMCCUDEV.pm | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/fhem/contrib/HMCCU/88_HMCCUDEV.pm b/fhem/contrib/HMCCU/88_HMCCUDEV.pm index 05a225d72..3b7c19524 100644 --- a/fhem/contrib/HMCCU/88_HMCCUDEV.pm +++ b/fhem/contrib/HMCCU/88_HMCCUDEV.pm @@ -10,7 +10,7 @@ # ################################################################ # -# define HMCCUDEV [ readonly ] +# define HMCCUDEV [readonly] # # set datapoint . # set devstate @@ -83,7 +83,6 @@ sub HMCCUDEV_Define ($$) } # Inform HMCCU device about client device - Log 1, "HMCCUDEV: Assigning IO Port"; AssignIoPort ($hash); readingsSingleUpdate ($hash, "state", "Initialized", 1); @@ -248,6 +247,10 @@ sub HMCCUDEV_Get ($@) } } +##################################### +# Set error status +##################################### + sub HMCCUDEV_SetError ($$) { my ($hash, $text) = @_; @@ -268,7 +271,8 @@ sub HMCCUDEV_SetError ($$)

HMCCUDEV

    - The module implements client devices for HMCCU. + The module implements client devices for HMCCU. A HMCCU device must exist + before a client device can be defined.

    Define @@ -303,8 +307,14 @@ sub HMCCUDEV_SetError ($$)
  • set <Name> <StateValue>
    State of a CCU device channel is set to state value. Channel must - be defined as attribute statechannel. State values can - be replaced by setting attribute stateval. + be defined as attribute statechannel. State values can be replaced + by setting attribute stateval. +

    + + attr myswitch statechannel 1 + attr myswitch stateval on:true,off:false + set myswitch on +

  • set <Name> datapoint <channel.datapoint> <Value>