defmod Abfall BSR
attr Abfall addrKey <HIER addrkey EINTRAGEN>
attr Abfall comment HM = Hausmüll (Restmüll)\
BI = Biotonne\
WS = Wertstofftonne (Gelber Sack/Tonne)\
LT = Laubtonne (falls vorhanden)\
WB = Weihnachtsbaum
attr Abfall intervalDays 14
attr Abfall stateFormat -
und ich lasse mir Telegram zusenden sowie im Raum "Info" in rot anzeigen, ob was abgeholt wird:defmod Abfall_notify notify Abfall:next_BI:.* {\
my $tomorrow = strftime("%Y-%m-%d",localtime(time+86400));;\
my @cats = ('HM','BI','WS','LT', 'WB');;\
my %names = (HM=>"Hausmüll",BI=>"Biotonne",WS=>"Wertstofftonne",LT=>"Laubtonne", WB=>"Weihnachtsbaum");;\
my @morgen;;\
foreach my $c(@cats){my $v = ReadingsVal("Abfall","next_$c","");;\
push @morgen,$names{$c} if $v eq $tomorrow\
};;\
if (@morgen) {\
my $display = join(", ",@morgen);;\
my $telegram = 'Morgen: '.$display;;\
fhem("attr -silent Abfall stateFormat <span style='color:#cc0000'>$display</span>");;\
fhem("attr -silent Abfall room Info");;;;fhem("set TelegramBot _msg 🚮: $telegram");;\
} else { \
fhem("attr -silent Abfall stateFormat -");;\
fhem("deleteattr -silent Abfall room");;}\
}
attr Abfall_notify event-min-interval .*:7200
Was bei dir nicht stimmte, kann ich dir allerdings nicht sagen.INFO: Preparing initial container setup
INFO: Updating existing FHEM installation in /opt/fhem
INFO: Patching fhem.cfg Logfile configuration
INFO: Initial container setup done
INFO: Preparing user environment
INFO: Creating group 'fhem' with GID 6061
INFO: Enforcing GID for group 'bluetooth' to 6001
INFO: Creating user 'fhem' with UID 6061
INFO: Creating log directory /opt/fhem/log
INFO: Creating PID directory /opt/fhem/log
INFO: Enforcing user and group ownership for /opt/fhem to fhem:fhem
INFO: Enforcing file and directory permissions for /opt/fhem
INFO: Correcting group ownership for /dev/tty*
INFO: Found GPIO: Correcting group permissions in /dev and /sys to 'gpio' with GID 6002
INFO: Found I2C: Correcting group permissions in /dev to 'i2c' with GID 6003
INFO: Updating /etc/sudoers.d/fhem-docker
INFO: Patching /etc/hosts file with DOCKER_HOST and DOCKER_GW'
INFO: Adding 192.168.178.1 host.docker.internal to /etc/hosts
192.168.178.1 host.docker.internal
INFO: Adding 192.168.178.1 gateway.docker.internal to /etc/hosts
192.168.178.1 gateway.docker.internal
INFO: Pre-authorizing SSH to Docker host for user 'fhem'
INFO: Updating SSH key pinning and SSH client permissions for user 'fhem'
INFO: Preparing user environment done
INFO: Starting FHEM
2025.12.29 22:28:03 3: logfile is readonly, it is set in the FHEM_GLOBALATTR environment
2025.12.29 22:28:05 1: PERL WARNING: "my" variable $string masks earlier declaration in same scope at ./FHEM/99_myUtils.pm line 244.
2025.12.29 22:28:05.034 3: pidfilename is readonly, it is set in the FHEM_GLOBALATTR environment
2025.12.29 22:28:08.076 0: [echodevice_Define] load ECHO Devicename=Echo_Schlafzimmer Devicetype=A2H4LV5GIZ1JFT Devicemodel=Echo Dot Gen4 with Clock
2025.12.29 22:28:08.079 0: [echodevice_Define] load ECHO Devicename=Echo_Wohnzimmer Devicetype=A2U21SRK4QGSE1 Devicemodel=Echo Dot Gen4
2025.12.29 22:28:54.175 0: [echodevice_Define] load ECHO Devicename=Echo_Kueche Devicetype=ASQZWP4GPYUT7 Devicemodel=Echo Plus 2
2025.12.29 22:28:54.180 0: [echodevice_Define] load ECHO Devicename=ECHO_G0G2HN033146003G Devicetype=ASQZWP4GPYUT7 Devicemodel=Echo Plus 2
ERROR: Fatal: No message from FHEM since 60 seconds that server has started.
INFO: Stopping container. Bye!
INFO: Preparing user environment
INFO: Creating group 'fhem' with GID 6061
INFO: Enforcing GID for group 'bluetooth' to 6001
INFO: Creating user 'fhem' with UID 6061
INFO: Creating log directory /opt/fhem/log
INFO: Creating PID directory /opt/fhem/log
INFO: Enforcing user and group ownership for /opt/fhem to fhem:fhem
INFO: Enforcing file and directory permissions for /opt/fhemERROR: Fatal: No message from FHEM since 60 seconds that server has started.ZitatErklärung
DOIF A reagiert auf das Event on
DOIF B reagiert korrekt auf das Event moving