From b294aa1548cd231ed6ee5efe2ad75e7c39da9147 Mon Sep 17 00:00:00 2001 From: zap Date: Wed, 24 Nov 2021 08:19:28 +0000 Subject: [PATCH] HMCCU: Several bug fixes git-svn-id: https://svn.fhem.de/fhem/trunk@25257 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/88_HMCCUCHN.pm | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/fhem/FHEM/88_HMCCUCHN.pm b/fhem/FHEM/88_HMCCUCHN.pm index 0976b7b86..d276f2741 100644 --- a/fhem/FHEM/88_HMCCUCHN.pm +++ b/fhem/FHEM/88_HMCCUCHN.pm @@ -30,7 +30,7 @@ sub HMCCUCHN_Set ($@); sub HMCCUCHN_Get ($@); sub HMCCUCHN_Attr ($@); -my $HMCCUCHN_VERSION = '5.0 213201747'; +my $HMCCUCHN_VERSION = '5.0 213261849'; ###################################################################### # Initialize module @@ -183,7 +183,7 @@ sub HMCCUCHN_InitDevice ($$) my $rc = 0; - if ($init_done) { + if ($init_done && !HMCCU_IsDelayedInit ($ioHash)) { my $detect = HMCCU_DetectDevice ($ioHash, $da, $di); # Interactive device definition @@ -524,7 +524,13 @@ sub HMCCUCHN_Get ($@) Readings 'state' and 'control' are not deleted. With option 'reset' all readings and all internally stored device parameter values are deleted.
-
  • set <name> config [device|<receiver>] <parameter>=<value>[:<type>] [...]
    +
  • set <name> close
    + [blind] Set level of a shutter or blind to 0%. +

  • +
  • set <name> color <color-name>
    + [light] Set color of LED light. +

  • +
  • set <name> config [device|<receiver>] <parameter>=<value>[:<type>] [...]
    Set multiple config (parameter set MASTER) or link (parameter set LINKS) parameters. If neither 'device' nor receiver is specified, configuration parameters of current channel are set. With option 'device' configuration parameters of the device @@ -583,8 +589,11 @@ sub HMCCUCHN_Get ($@) format HH:MM or HH:MM:SS. This command is only available if channel contains a datapoint ON_TIME.

  • +
  • set <name> open
    + [blind] Set level of a shutter or blind to 100%. +

  • set <name> pct <value> [<ontime> [<ramptime>]]
    - [dimmer] Set datapoint LEVEL of a channel to the specified value. Optionally a ontime + [dimmer,blind] Set datapoint LEVEL of a channel to the specified value. Optionally a ontime and a ramptime (both in seconds) can be specified. This command is only available if channel contains at least a datapoint LEVEL and optionally datapoints ON_TIME and RAMP_TIME. The parameter ontime can be specified in seconds or as timestamp in @@ -593,6 +602,9 @@ sub HMCCUCHN_Get ($@) Example: Turn dimmer on for 600 second. Increase light to 100% over 10 seconds
    set myswitch pct 100 600 10

  • +
  • set <name> pctSlats <value>
    + [blind] Like command 'set pct', but changes the level of slats (if available). +

  • set <name> readingFilter <datapoint-list>
    Set attribute ccureadingfilter by selecting a list of datapoints. Parameter datapoint-list is a comma seperated list of datapoints.