2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-26 10:34:52 +00:00

98_weekprofile: HMCCU-HM send profile without prefix (Forum #1104569)

git-svn-id: https://svn.fhem.de/fhem/trunk@23351 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Risiko 2020-12-14 18:06:58 +00:00
parent 6fc7b3966d
commit eb7cb41cdf
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # 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. # Do not insert empty lines here, update check depends on it.
- bugfix: 98_weekprofile: HMCCU-HM send profile without prefix (Forum #1104569)
- bugfix: 70_DENON_AVR: serial connection issues - bugfix: 70_DENON_AVR: serial connection issues
- feature: 77_SMAEM: attr serialNumber may contain multiple serial numbers - feature: 77_SMAEM: attr serialNumber may contain multiple serial numbers
- feature: 57_SSCal: handle multiline code in description field if automatic - feature: 57_SSCal: handle multiline code in description field if automatic

View File

@ -177,14 +177,13 @@ sub weekprofile_getDeviceType($$;$)
Log3 $me, 4, "$me(getDeviceType): $devHash->{NAME} is readonly - ignored"; Log3 $me, 4, "$me(getDeviceType): $devHash->{NAME} is readonly - ignored";
return undef; return undef;
} }
my $model = $devHash->{ccutype};
my $model = $devHash->{ccutype};
if (!defined($model)) { if (!defined($model)) {
Log3 $me, 2, "$me(getDeviceType): ccutype not defined - take HM-xxx (HMCCU_HM)"; Log3 $me, 2, "$me(getDeviceType): ccutype not defined - take HM-xxx (HMCCU_HM)";
$model = "HM-xxx"; $model = "HM-xxx";
} }
Log3 $me, 5, "$me(getDeviceType): $devHash->{NAME}, $model"; Log3 $me, 5, "$me(getDeviceType): $devHash->{NAME}, $model";
$type = "HMCCU_IP" if ( $model =~ m/HmIP.*/ ); $type = "HMCCU_IP" if ( $model =~ m/HmIP.*/ );
$type = "HMCCU_HM" if ( $model =~ m/HM-.*/ ); $type = "HMCCU_HM" if ( $model =~ m/HM-.*/ );
} }
@ -479,6 +478,7 @@ sub weekprofile_sendDevProfile(@)
my $k=0; my $k=0;
my $dayCnt = scalar(@dayToTransfer); my $dayCnt = scalar(@dayToTransfer);
my $prefix = weekprofile_get_prefix_HM($device,"ENDTIME_SUNDAY_1",$me); my $prefix = weekprofile_get_prefix_HM($device,"ENDTIME_SUNDAY_1",$me);
$prefix = "" if ($type eq "HMCCU_HM"); # no prefix by set see topic,46117.msg1104569.html#msg1104569
if (!defined($prefix)) { if (!defined($prefix)) {
Log3 $me, 3, "$me(sendDevProfile): no prefix found"; Log3 $me, 3, "$me(sendDevProfile): no prefix found";
$prefix = ""; $prefix = "";