From b2db43c739382f5acfca3b9726ad6005bc545478 Mon Sep 17 00:00:00 2001 From: zap <> Date: Sat, 4 Jan 2020 15:25:10 +0000 Subject: [PATCH] HMCCU: Do not touch state during device definition git-svn-id: https://svn.fhem.de/fhem/trunk@20880 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/88_HMCCUCHN.pm | 8 ++++---- fhem/FHEM/88_HMCCUDEV.pm | 8 ++++---- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index b6e488230..2014fae5d 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 88_HMCCU: Do not touch state during device definition - bugfix: 70_VIERA: correction of "Rolling Key" - feature: 70_VIERA: add. GetStatus after on_off command - feature: 70_BRAVIA: new attribute wolBroadcast used as address for WOL packet diff --git a/fhem/FHEM/88_HMCCUCHN.pm b/fhem/FHEM/88_HMCCUCHN.pm index eb590a077..263578812 100644 --- a/fhem/FHEM/88_HMCCUCHN.pm +++ b/fhem/FHEM/88_HMCCUCHN.pm @@ -4,9 +4,9 @@ # # $Id$ # -# Version 4.3.009 +# Version 4.3.010 # -# (c) 2019 zap (zap01 t-online de) +# (c) 2020 zap (zap01 t-online de) # ###################################################################### # Client device for Homematic channels. @@ -116,7 +116,7 @@ sub HMCCUCHN_Define ($@) # CCU not ready during FHEM start if (!defined ($hmccu_hash) || $hmccu_hash->{ccustate} ne 'active') { Log3 $name, 2, "HMCCUCHN: [$devname] Cannot detect IO device, maybe CCU not ready. Trying later ..."; - readingsSingleUpdate ($hash, "state", "Pending", 1); +# readingsSingleUpdate ($hash, "state", "Pending", 1); $hash->{ccudevstate} = 'pending'; return undef; } @@ -155,7 +155,7 @@ sub HMCCUCHN_InitDevice ($$) { $dev_hash->{ccuname} = $dn; $dev_hash->{ccutype} = $dt; - readingsSingleUpdate ($dev_hash, "state", "Initialized", 1); +# readingsSingleUpdate ($dev_hash, "state", "Initialized", 1); $dev_hash->{ccudevstate} = 'active'; return 0; diff --git a/fhem/FHEM/88_HMCCUDEV.pm b/fhem/FHEM/88_HMCCUDEV.pm index 170bb851e..6a9fb1d82 100644 --- a/fhem/FHEM/88_HMCCUDEV.pm +++ b/fhem/FHEM/88_HMCCUDEV.pm @@ -4,9 +4,9 @@ # # $Id$ # -# Version 4.3.011 +# Version 4.3.012 # -# (c) 2019 zap (zap01 t-online de) +# (c) 2020 zap (zap01 t-online de) # ###################################################################### # Client device for Homematic devices. @@ -141,7 +141,7 @@ sub HMCCUDEV_Define ($@) # CCU not ready during FHEM start if (!defined ($hmccu_hash) || $hmccu_hash->{ccustate} ne 'active') { Log3 $name, 2, "HMCCUDEV: [$devname] Cannot detect IO device, maybe CCU not ready. Trying later ..."; - readingsSingleUpdate ($hash, "state", "Pending", 1); +# readingsSingleUpdate ($hash, "state", "Pending", 1); $hash->{ccudevstate} = 'pending'; return undef; } @@ -275,7 +275,7 @@ sub HMCCUDEV_InitDevice ($$) # Inform HMCCU device about client device return 2 if (!HMCCU_AssignIODevice ($dev_hash, $hmccu_hash->{NAME}, undef)); - readingsSingleUpdate ($dev_hash, "state", "Initialized", 1); +# readingsSingleUpdate ($dev_hash, "state", "Initialized", 1); $dev_hash->{ccudevstate} = 'active'; return 0;