mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-17 11:26:03 +00:00
73_AutoShuttersControl: fix ASC_twilightDevice
git-svn-id: https://svn.fhem.de/fhem/trunk@17734 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
664f274dd8
commit
45da4584cf
@ -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: 73_AutoShuttersControl: fix ASC_twilightDevice
|
||||
- bugfix: 73_AutoShuttersControl: fix setPosSetCmd Object
|
||||
- bugfix: 73_AutoShuttersControl: fix parts of Commandref
|
||||
- bugfix: 98_SmarterCoffee: fix Undefined subroutine &SmarterCoffee::fhem
|
||||
|
@ -38,7 +38,7 @@ package main;
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
my $version = "0.2.0.3";
|
||||
my $version = "0.2.0.4";
|
||||
|
||||
sub AutoShuttersControl_Initialize($) {
|
||||
my ($hash) = @_;
|
||||
@ -365,7 +365,10 @@ sub Notify($$) {
|
||||
CommandDeleteReading( undef, $name . ' selfDefence' )
|
||||
if ( ReadingsVal( $name, 'selfDefence', 'none' ) ne 'none' )
|
||||
; # temporär kann später entfernt werden.
|
||||
CommandAttr( undef, $name . ' ASC_twilightDevice ' . ( devspec2array('TYPE=(Astro|Twilight)'))[0] ) if ( AttrVal($name,'ASC_twilightDevice','none') eq 'none' );
|
||||
if ( devspec2array('TYPE=(Astro|Twilight)') > 0 ) {
|
||||
CommandAttr( undef, $name . ' ASC_twilightDevice ' . ( devspec2array('TYPE=(Astro|Twilight)'))[0] )
|
||||
if ( AttrVal($name,'ASC_twilightDevice','none') eq 'none' );
|
||||
}
|
||||
|
||||
# Ist der Event ein globaler und passt zum Rest der Abfrage oben wird nach neuen Rolläden Devices gescannt und eine Liste im Rolladenmodul sortiert nach Raum generiert
|
||||
ShuttersDeviceScan($hash)
|
||||
|
Loading…
x
Reference in New Issue
Block a user