ZitatDort kopiere ich einfach den Code von oben rein ?
{myCalendar2Holiday("BW_Ferien","Pfingstferien")}
Zitat von: TomLee am 19 Mai 2024, 15:02:15Wenn Du bisher noch gar keine 99_myUtils.pm hast, musst zuerst eine erstellen, um die Funktion nutzen zu können.
Les dich hier mal ein: https://wiki.fhem.de/wiki/99_myUtils_anlegen
Wenn Du nicht weiter kommen solltest, frag einfach.
##############################################
# $Id: myUtilsTemplate.pm 7570 2015-01-14 18:31:44Z rudolfkoenig $
#
# Save this file as 99_myUtils.pm, and create your own functions in the new
# file. They are then available in every Perl expression.
package main;
use strict;
use warnings;
use POSIX;
sub
myUtils_Initialize($$)
{
my ($hash) = @_;
}
# Enter you functions below _this_ line.
1;
attr CCU3 ccugetvars 1800:svEnergyCounter_xyz_abc