98_MSwitch - Support

Begonnen von Byte09, 25 März 2018, 12:19:58

Vorheriges Thema - Nächstes Thema

Byte09



Zitat von: khk123 am 26 November 2019, 17:44:28
Hi Byte09,

kann ich mit MSwitch nur an einem bestimmten Datum schalten?

Beispiel mit at:

define ZaehlerReset at *07:15:00 {if($year==2019 && $month==1 && $mday==1) {fhem("set Zaehler reset")} }


Nein, das geht derzeit nicht... bzw. nur über Umwege..  nicht wirklich sinnig .. wäre eine ähnliche lösung wie beim AT. es löst im Grunde jeden tag aus und überprüft erst dann auf das Datum im ausführenden teil. Ich kann aber die Tage schauen ob ich es sinnvoll einbauen kann.

gruss Byte09

Gesendet von meinem ELE-L29 mit Tapatalk


Byte09

@khk123


ich werde mit dem nächsten Update die Variablen $year etc. in den Schaltbedingungen verfügbar machen , dann sollte es problemlos gehen.


wird aber wohl übermorgen werden.

gruss Byte09

khk123

Das ist ja ein blitzschneller Service. Herzlichen Dank dafür! :)
Vlg
Karlheinz
FHEM6.2, RasPi4, RasPi Zero W,
CUL V3, HM, ZWave, IT, vcontrol, owntracks, alexa

khk123

Hi Byte09,

Schaltbedingung => [Daemmerung:twilight] > 79 and [WZ_Beleuchtung_Manuell] eq "off" läuft auf folgenden Fehler:
2019.11.27 14:21:39 1: Weihnachtsbeleuchtung_aus ERROR: Bareword "WZ_Beleuchtung_Manuell" not allowed while "strict subs" in use at (eval 129745) line 1.
9267

So funktioniert es: [Daemmerung:twilight] > 79 and [WZ_Beleuchtung_Manuell:state] eq "off"

Ist das gewollt?

Gruß
Karlheinz
FHEM6.2, RasPi4, RasPi Zero W,
CUL V3, HM, ZWave, IT, vcontrol, owntracks, alexa

Byte09

#904
Zitat von: khk123 am 27 November 2019, 14:34:11
Hi Byte09,

Schaltbedingung => [Daemmerung:twilight] > 79 and [WZ_Beleuchtung_Manuell] eq "off" läuft auf folgenden Fehler:
2019.11.27 14:21:39 1: Weihnachtsbeleuchtung_aus ERROR: Bareword "WZ_Beleuchtung_Manuell" not allowed while "strict subs" in use at (eval 129745) line 1.
9267

So funktioniert es: [Daemmerung:twilight] > 79 and [WZ_Beleuchtung_Manuell:state] eq "off"

Ist das gewollt?

Gruß
Karlheinz

gewollt ist zuviel gesagt , aber nicht anders vorgesehen , zumal ich Ausdrücke dieser Art [.*] ohne Vorkommen eines Doppelpuntes für Andere Funktionen (z.b: [Tendenz][Differenz][Average] [Increase])
nutze und die Unterscheidung dann erheblich komplizierter werden würde ( im modulcode ). Eine Bedingungsabfrage muss hier immer das abgefragte Reading enthalten . Bei 'nichtvorhandensein' eines Readings wird dieses nicht automatisch durch eine Anfrage auf 'state' ersetzt.

Die Fehlermeldung werde ich ggf. anderweitig abfangen.

gruss Thomas

PS: die Änderungen bezüglich oben angesprochener Variablen habe ich soweit fertig,wenn mir heute nicht noch etwas garavierendes auffällt ist es im morgigen Update. ( Es wird hier mehrere Mögliche Syntaxformen geben: $day [DAY] [$DAY] etc. - führt alles zum gleichen Ergebniss )


Byte09

#905
da ich mir nicht 100% sicher bin , das die Änderungen nicht unerwünschte Nebeneffekte habe , habe ich die V2.8 erstmal nur in das GIT geladen.

Update mit :update all https://raw.githubusercontent.com/Byte009/FHEM-MSwitch/master/controls_mswitch.txt

sollten doch Probleme auftreten ist ein Backup auf 2.7 über das 'normale' Fhemupdate möglich.

gruss Byte09

khk123

Hi Byte09,

ist es möglich in einem bestimmten Zeitraum abhängig von anderen Devicereadings zu schalten?
Z.B. soll in der Zeit zw. 8 Uhr und 1 Uhr in Abhängigkeit des Zustandes der Lampe1 und des twilight-Wertes ein Cmd ausgeführt werden.

Folgende Schaltbedingung stelle ich mir vor: [08:00:00]-[01:00:00] and [Lampe1:state] eq "off" and [Daemmerung:twilight] < 80

Vlg
Karlheinz
FHEM6.2, RasPi4, RasPi Zero W,
CUL V3, HM, ZWave, IT, vcontrol, owntracks, alexa

Byte09

#907
Zitat von: khk123 am 28 November 2019, 18:07:12
Hi Byte09,

ist es möglich in einem bestimmten Zeitraum abhängig von anderen Devicereadings zu schalten?
Z.B. soll in der Zeit zw. 8 Uhr und 1 Uhr in Abhängigkeit des Zustandes der Lampe1 und des twilight-Wertes ein Cmd ausgeführt werden.

Folgende Schaltbedingung stelle ich mir vor: [08:00:00]-[01:00:00] and [Lampe1:state] eq "off" and [Daemmerung:twilight] < 80

Vlg
Karlheinz


[08:00-01:00] AND [Lampe1:state] eq "off" AND [Daemmerung:twilight] < 80

in den Schaltbedingungen sollte gehen

gruss thomas


PS: hast du mal die Version aus dem GIT versucht, ob das passt mit den Variablen ( $day etc. )


Edit: Die Helpfunktion kennst Du ? ( ATTR MSwitch_Help 1 )

ZitatHelp: condition

Hier kann die Angabe von Bedingungen erfolgen, die erfüllt sein müssen um den Schaltbefehl auszuführen.
Diese Bedingunge sind eng an DOIF- Bedingungen angelehnt.

Zeitabhängiges schalten: [19.10-23:00] - Schaltbefehl erfolgt nur in angegebenem Zeitraum
Readingabhängiges schalten [Devicename:Reading] =/>/< X oder [Devicename:Reading] eq "x" - Schaltbefehl erfolgt nur bei erfüllter Bedingung.
Achtung! Bei der Abfrage von Readings nach Strings ( on,off,etc. ) ist statt "=" "eq" zu nutzen und der String muss in "x" gesetzt werden!
Die Kombination mehrerer Bedingungen und Zeiten ist durch AND oder OR möglich:
[19.10-23:00] AND [Devicename:Reading] = 10 - beide Bedingungen müssen erfüllt sein
[19.10-23:00] OR [Devicename:Reading] = 10 - eine der Bedingungen muss erfüllt sein.
Es ist auf korrekte Eingabe der Leerzeichen zu achten.

sunset - Bedingungen werden mit zusätzlichen {} eingefügt z.B. : [{ sunset() }-23:00].

Variable $we:
Die globlae Variable $we ist nutzbar und muss {} gesetzt werden .
{ !$we } löst den Schaltvorgang nur Werktagen aus
{ $we } löst den Schaltvorgang nur Wochenenden, Feiertagen aus

Soll nur an bestimmten Wochentagen geschaltet werden, muss eine Zeitangsbe gemacht werden und durch z.B. |135 ergänzt werden.
[10:00-11:00|13] würde den Schaltvorgang z.B nur Montag und Mitwoch zwischen 10 uhr und 11 uhr auslösen. Hierbei zählen die Wochentage von 1-7 für Montag-Sonntag.
Achtung: Bei Anwendung der geschweiften Klammern zur einletung eines Perlasdrucks ist unbedingt auf die Leerzeichen hinter und vor der Klammer zu achten !
Überschreitet die Zeitangabe die Tagesgrenze (24.00 Uhr ), so gelten die angegebenen Tage noch bis zum ende der angegebenen Schaltzeit , d.H. es würde auch am Mitwoch noch der schaltvorgang erfolgen, obwohl als Tagesvorgabe Dienstag gesetzt wurde.

$EVENT Variable: Die Variable EVENT enthält den auslösenden Trigger, d.H. es kann eine Reaktion in direkter Abhängigkeit zum auslösenden Trigger erfolgen.
[$EVENT] eq "state:on" würde den Kommandozweig nur dann ausführen, wenn der auslösende Trigger "state:on" war.
Wichtig ist dieses, wenn bei den Triggerdetails nicht schon auf ein bestimmtes Event getriggert wird, sondern hier durch die Nutzung eines wildcards (*) auf alle Events getriggert wird, oder auf alle Events eines Readings z.B. (state:*)

Bei eingestellter Delayfunktion werden die Bedingungen je nach Einstellung sofort,verzögert oder sowohl-als-auch überprüft, d.H hiermit sind verzögerte Ein-, und Ausschaltbefehle möglich die z.B Nachlauffunktionen oder verzögerte Einschaltfunktionen ermöglichen, die sich selbst überprüfen. z.B. [wenn Licht im Bad an -> schalte Lüfter 2 Min später an -> nur wenn Licht im Bad noch an ist]

Anstatt einer Verzögerung kann hier auch eine festgelegte Schaltzeit erfolgen.

Sonderfunktionen:

Tendenz: Beschreibung im Wiki
Differenz: Beschreibung im Wiki
Average Beschreibung im Wiki
Increase Beschreibung im Wiki


khk123

#908
Hi Thomas,

nein, hab ich noch nicht, da ich noch am Umstellen diverser ATs und DOIFs bin. Mache ich aber in Kürze.

Ja, die Helpfunktion kenne ich, hab es aber wohl bei Condition übersehen bzw. nicht aktiviert gehabt.

Vlg
Karlheinz
FHEM6.2, RasPi4, RasPi Zero W,
CUL V3, HM, ZWave, IT, vcontrol, owntracks, alexa

Panik

Hallo,

ich habe gerade mal

$month < 4 OR $month > 10

getestet und es klappt.

weitere Zeit-Variablen noch nicht getestet.

Kam zur richtigen Zeit. Danke!

Panik
Raspberry3+,  CUL USB V3 mit V 1.66 CUL868, TRXRFX433, HM-MOD-UART, Phoscon-GW

Tommy82

Hi,
ich habe heute folgende Meldung im LOg
2019.11.28 11:32:47.390 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/98_MSwitch.pm line 8604.
2019.11.28 11:32:47.391 1: stacktrace:
2019.11.28 11:32:47.392 1:     main::__ANON__                      called by ./FHEM/98_MSwitch.pm (8604)
2019.11.28 11:32:47.392 1:     main::MSwitch_Checkcond_state       called by ./FHEM/98_MSwitch.pm (8525)
2019.11.28 11:32:47.392 1:     main::MSwitch_checkcondition        called by ./FHEM/98_MSwitch.pm (3138)
2019.11.28 11:32:47.393 1:     main::MSwitch_Notify                called by fhem.pl (3754)
2019.11.28 11:32:47.393 1:     main::CallFn                        called by fhem.pl (3674)
2019.11.28 11:32:47.393 1:     main::DoTrigger                     called by fhem.pl (4737)
2019.11.28 11:32:47.394 1:     main::readingsEndUpdate             called by ./FHEM/37_echodevice.pm (2790)
2019.11.28 11:32:47.394 1:     main::echodevice_Parse              called by FHEM/HttpUtils.pm (634)
2019.11.28 11:32:47.394 1:     main::__ANON__                      called by fhem.pl (751)


2019.11.28 12:46:06.614 1: PERL WARNING: Bareword found where operator expected at (eval 5539876) line 1, near ""currentTitle:Christmas Is The Time To Say "I"
2019.11.28 12:46:06.615 1: stacktrace:
2019.11.28 12:46:06.616 1:     main::__ANON__                      called by (eval 5539876) (1)
2019.11.28 12:46:06.616 1:     (eval)                              called by ./FHEM/98_MSwitch.pm (8556)
2019.11.28 12:46:06.617 1:     main::MSwitch_checkcondition        called by ./FHEM/98_MSwitch.pm (3138)
2019.11.28 12:46:06.617 1:     main::MSwitch_Notify                called by fhem.pl (3754)
2019.11.28 12:46:06.618 1:     main::CallFn                        called by fhem.pl (3674)
2019.11.28 12:46:06.618 1:     main::DoTrigger                     called by fhem.pl (4737)
2019.11.28 12:46:06.619 1:     main::readingsEndUpdate             called by ./FHEM/37_echodevice.pm (2790)
2019.11.28 12:46:06.619 1:     main::echodevice_Parse              called by FHEM/HttpUtils.pm (634)
2019.11.28 12:46:06.620 1:     main::__ANON__                      called by fhem.pl (751)
2019.11.28 12:46:06.621 1: PERL WARNING: (Missing operator before I?)
2019.11.28 12:46:06.621 1: stacktrace:
2019.11.28 12:46:06.621 1:     main::__ANON__                      called by (eval 5539876) (1)
2019.11.28 12:46:06.622 1:     (eval)                              called by ./FHEM/98_MSwitch.pm (8556)
2019.11.28 12:46:06.623 1:     main::MSwitch_checkcondition        called by ./FHEM/98_MSwitch.pm (3138)
2019.11.28 12:46:06.623 1:     main::MSwitch_Notify                called by fhem.pl (3754)
2019.11.28 12:46:06.624 1:     main::CallFn                        called by fhem.pl (3674)
2019.11.28 12:46:06.624 1:     main::DoTrigger                     called by fhem.pl (4737)
2019.11.28 12:46:06.625 1:     main::readingsEndUpdate             called by ./FHEM/37_echodevice.pm (2790)
2019.11.28 12:46:06.625 1:     main::echodevice_Parse              called by FHEM/HttpUtils.pm (634)
2019.11.28 12:46:06.626 1:     main::__ANON__                      called by fhem.pl (751)
2019.11.28 12:46:06.627 1: PERL WARNING: String found where operator expected at (eval 5539876) line 1, near "You"""
2019.11.28 12:46:06.627 1: stacktrace:
2019.11.28 12:46:06.628 1:     main::__ANON__                      called by (eval 5539876) (1)
2019.11.28 12:46:06.628 1:     (eval)                              called by ./FHEM/98_MSwitch.pm (8556)
2019.11.28 12:46:06.629 1:     main::MSwitch_checkcondition        called by ./FHEM/98_MSwitch.pm (3138)
2019.11.28 12:46:06.629 1:     main::MSwitch_Notify                called by fhem.pl (3754)
2019.11.28 12:46:06.630 1:     main::CallFn                        called by fhem.pl (3674)
2019.11.28 12:46:06.630 1:     main::DoTrigger                     called by fhem.pl (4737)
2019.11.28 12:46:06.631 1:     main::readingsEndUpdate             called by ./FHEM/37_echodevice.pm (2790)
2019.11.28 12:46:06.632 1:     main::echodevice_Parse              called by FHEM/HttpUtils.pm (634)
2019.11.28 12:46:06.632 1:     main::__ANON__                      called by fhem.pl (751)
2019.11.28 12:46:06.633 1: Echocontrol ERROR: syntax error at (eval 5539876) line 1, near ""currentTitle:Christmas Is The Time To Say "I Love "
8559
2019.11.28 12:46:06.634 1: Echocontrol if ("currentTitle:Christmas Is The Time To Say "I Love You"" =~ m/(.*)(lautstärke|volume|lauter)(.*)/){$answer = 'true';} else {$answer = 'false';}  8560
2019.11.28 12:46:40.124 1: [Freezemon] myFreezemon: possible freeze starting at 12:46:39, delay is 1.111 possibly caused by: no bad guy found :-(
2019.11.28 12:46:45.879 1: [Freezemon] myFreezemon: possible freeze starting at 12:46:41, delay is 4.876 possibly caused by: tmr-echodevice_GetSettings(ECHO_G090U50784160HFP)
2019.11.28 12:47:06.621 1: PERL WARNING: Bareword found where operator expected at (eval 5540436) line 1, near ""currentTitle:Christmas Is The Time To Say "I"
2019.11.28 12:47:06.621 1: stacktrace:
2019.11.28 12:47:06.622 1:     main::__ANON__                      called by (eval 5540436) (1)
2019.11.28 12:47:06.622 1:     (eval)                              called by ./FHEM/98_MSwitch.pm (8556)
2019.11.28 12:47:06.623 1:     main::MSwitch_checkcondition        called by ./FHEM/98_MSwitch.pm (3138)
2019.11.28 12:47:06.623 1:     main::MSwitch_Notify                called by fhem.pl (3754)
2019.11.28 12:47:06.624 1:     main::CallFn                        called by fhem.pl (3674)
2019.11.28 12:47:06.624 1:     main::DoTrigger                     called by fhem.pl (4737)
2019.11.28 12:47:06.624 1:     main::readingsEndUpdate             called by ./FHEM/37_echodevice.pm (2790)
2019.11.28 12:47:06.624 1:     main::echodevice_Parse              called by FHEM/HttpUtils.pm (634)
2019.11.28 12:47:06.625 1:     main::__ANON__                      called by fhem.pl (751)
2019.11.28 12:47:06.625 1: PERL WARNING: (Missing operator before I?)
2019.11.28 12:47:06.625 1: stacktrace:
2019.11.28 12:47:06.626 1:     main::__ANON__                      called by (eval 5540436) (1)
2019.11.28 12:47:06.626 1:     (eval)                              called by ./FHEM/98_MSwitch.pm (8556)
2019.11.28 12:47:06.626 1:     main::MSwitch_checkcondition        called by ./FHEM/98_MSwitch.pm (3138)
2019.11.28 12:47:06.627 1:     main::MSwitch_Notify                called by fhem.pl (3754)
2019.11.28 12:47:06.627 1:     main::CallFn                        called by fhem.pl (3674)
2019.11.28 12:47:06.627 1:     main::DoTrigger                     called by fhem.pl (4737)
2019.11.28 12:47:06.628 1:     main::readingsEndUpdate             called by ./FHEM/37_echodevice.pm (2790)
2019.11.28 12:47:06.628 1:     main::echodevice_Parse              called by FHEM/HttpUtils.pm (634)
2019.11.28 12:47:06.628 1:     main::__ANON__                      called by fhem.pl (751)
2019.11.28 12:47:06.629 1: PERL WARNING: String found where operator expected at (eval 5540436) line 1, near "You"""
2019.11.28 12:47:06.629 1: stacktrace:
2019.11.28 12:47:06.629 1:     main::__ANON__                      called by (eval 5540436) (1)
2019.11.28 12:47:06.630 1:     (eval)                              called by ./FHEM/98_MSwitch.pm (8556)
2019.11.28 12:47:06.630 1:     main::MSwitch_checkcondition        called by ./FHEM/98_MSwitch.pm (3138)
2019.11.28 12:47:06.631 1:     main::MSwitch_Notify                called by fhem.pl (3754)
2019.11.28 12:47:06.631 1:     main::CallFn                        called by fhem.pl (3674)
2019.11.28 12:47:06.631 1:     main::DoTrigger                     called by fhem.pl (4737)
2019.11.28 12:47:06.632 1:     main::readingsEndUpdate             called by ./FHEM/37_echodevice.pm (2790)
2019.11.28 12:47:06.632 1:     main::echodevice_Parse              called by FHEM/HttpUtils.pm (634)
2019.11.28 12:47:06.632 1:     main::__ANON__                      called by fhem.pl (751)
2019.11.28 12:47:06.633 1: Echocontrol ERROR: syntax error at (eval 5540436) line 1, near ""currentTitle:Christmas Is The Time To Say "I Love "


Fhem Cubitruck  Armbian Buster with Linux 5.3.9-sunxi
HM-CC_RT-DN, HM-Sec-RHS,HM-Sec-SD, HM-Sec-SCo,IT1500,1xIT GRR-3500 Fritz!Dect200,Powerline546E,Enigma2 Modul mit 3 Vu+,Wol Modul für WinServer2016 und WinServer 2019,FB6590
Allnetl Wandtablett mit FTUI

Byte09

ok... ich sehe das Problem und beheben das morgen.

gruss Byte09

Gesendet von meinem ELE-L29 mit Tapatalk


Byte09

Zitat von: Tommy82 am 28 November 2019, 20:24:56
Hi,
ich habe heute folgende Meldung im LOg
2019.11.28 11:32:47.390 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/98_MSwitch.pm line 8604.
2019.11.28 11:32:47.391 1: stacktrace:
2019.11.28 11:32:47.392 1:     main::__ANON__                      called by ./FHEM/98_MSwitch.pm (8604)
2019.11.28 11:32:47.392 1:     main::MSwitch_Checkcond_state       called by ./FHEM/98_MSwitch.pm (8525)
2019.11.28 11:32:47.392 1:     main::MSwitch_checkcondition        called by ./FHEM/98_MSwitch.pm (3138)
2019.11.28 11:32:47.393 1:     main::MSwitch_Notify                called by fhem.pl (3754)
2019.11.28 11:32:47.393 1:     main::CallFn                        called by fhem.pl (3674)
2019.11.28 11:32:47.393 1:     main::DoTrigger                     called by fhem.pl (4737)
2019.11.28 11:32:47.394 1:     main::readingsEndUpdate             called by ./FHEM/37_echodevice.pm (2790)
2019.11.28 11:32:47.394 1:     main::echodevice_Parse              called by FHEM/HttpUtils.pm (634)
2019.11.28 11:32:47.394 1:     main::__ANON__                      called by fhem.pl (751)


2019.11.28 12:46:06.614 1: PERL WARNING: Bareword found where operator expected at (eval 5539876) line 1, near ""currentTitle:Christmas Is The Time To Say "I"
2019.11.28 12:46:06.615 1: stacktrace:
2019.11.28 12:46:06.616 1:     main::__ANON__                      called by (eval 5539876) (1)
2019.11.28 12:46:06.616 1:     (eval)                              called by ./FHEM/98_MSwitch.pm (8556)
2019.11.28 12:46:06.617 1:     main::MSwitch_checkcondition        called by ./FHEM/98_MSwitch.pm (3138)
2019.11.28 12:46:06.617 1:     main::MSwitch_Notify                called by fhem.pl (3754)
2019.11.28 12:46:06.618 1:     main::CallFn                        called by fhem.pl (3674)
2019.11.28 12:46:06.618 1:     main::DoTrigger                     called by fhem.pl (4737)
2019.11.28 12:46:06.619 1:     main::readingsEndUpdate             called by ./FHEM/37_echodevice.pm (2790)
2019.11.28 12:46:06.619 1:     main::echodevice_Parse              called by FHEM/HttpUtils.pm (634)
2019.11.28 12:46:06.620 1:     main::__ANON__                      called by fhem.pl (751)
2019.11.28 12:46:06.621 1: PERL WARNING: (Missing operator before I?)
2019.11.28 12:46:06.621 1: stacktrace:
2019.11.28 12:46:06.621 1:     main::__ANON__                      called by (eval 5539876) (1)
2019.11.28 12:46:06.622 1:     (eval)                              called by ./FHEM/98_MSwitch.pm (8556)
2019.11.28 12:46:06.623 1:     main::MSwitch_checkcondition        called by ./FHEM/98_MSwitch.pm (3138)
2019.11.28 12:46:06.623 1:     main::MSwitch_Notify                called by fhem.pl (3754)
2019.11.28 12:46:06.624 1:     main::CallFn                        called by fhem.pl (3674)
2019.11.28 12:46:06.624 1:     main::DoTrigger                     called by fhem.pl (4737)
2019.11.28 12:46:06.625 1:     main::readingsEndUpdate             called by ./FHEM/37_echodevice.pm (2790)
2019.11.28 12:46:06.625 1:     main::echodevice_Parse              called by FHEM/HttpUtils.pm (634)
2019.11.28 12:46:06.626 1:     main::__ANON__                      called by fhem.pl (751)
2019.11.28 12:46:06.627 1: PERL WARNING: String found where operator expected at (eval 5539876) line 1, near "You"""
2019.11.28 12:46:06.627 1: stacktrace:
2019.11.28 12:46:06.628 1:     main::__ANON__                      called by (eval 5539876) (1)
2019.11.28 12:46:06.628 1:     (eval)                              called by ./FHEM/98_MSwitch.pm (8556)
2019.11.28 12:46:06.629 1:     main::MSwitch_checkcondition        called by ./FHEM/98_MSwitch.pm (3138)
2019.11.28 12:46:06.629 1:     main::MSwitch_Notify                called by fhem.pl (3754)
2019.11.28 12:46:06.630 1:     main::CallFn                        called by fhem.pl (3674)
2019.11.28 12:46:06.630 1:     main::DoTrigger                     called by fhem.pl (4737)
2019.11.28 12:46:06.631 1:     main::readingsEndUpdate             called by ./FHEM/37_echodevice.pm (2790)
2019.11.28 12:46:06.632 1:     main::echodevice_Parse              called by FHEM/HttpUtils.pm (634)
2019.11.28 12:46:06.632 1:     main::__ANON__                      called by fhem.pl (751)
2019.11.28 12:46:06.633 1: Echocontrol ERROR: syntax error at (eval 5539876) line 1, near ""currentTitle:Christmas Is The Time To Say "I Love "
8559
2019.11.28 12:46:06.634 1: Echocontrol if ("currentTitle:Christmas Is The Time To Say "I Love You"" =~ m/(.*)(lautstärke|volume|lauter)(.*)/){$answer = 'true';} else {$answer = 'false';}  8560
2019.11.28 12:46:40.124 1: [Freezemon] myFreezemon: possible freeze starting at 12:46:39, delay is 1.111 possibly caused by: no bad guy found :-(
2019.11.28 12:46:45.879 1: [Freezemon] myFreezemon: possible freeze starting at 12:46:41, delay is 4.876 possibly caused by: tmr-echodevice_GetSettings(ECHO_G090U50784160HFP)
2019.11.28 12:47:06.621 1: PERL WARNING: Bareword found where operator expected at (eval 5540436) line 1, near ""currentTitle:Christmas Is The Time To Say "I"
2019.11.28 12:47:06.621 1: stacktrace:
2019.11.28 12:47:06.622 1:     main::__ANON__                      called by (eval 5540436) (1)
2019.11.28 12:47:06.622 1:     (eval)                              called by ./FHEM/98_MSwitch.pm (8556)
2019.11.28 12:47:06.623 1:     main::MSwitch_checkcondition        called by ./FHEM/98_MSwitch.pm (3138)
2019.11.28 12:47:06.623 1:     main::MSwitch_Notify                called by fhem.pl (3754)
2019.11.28 12:47:06.624 1:     main::CallFn                        called by fhem.pl (3674)
2019.11.28 12:47:06.624 1:     main::DoTrigger                     called by fhem.pl (4737)
2019.11.28 12:47:06.624 1:     main::readingsEndUpdate             called by ./FHEM/37_echodevice.pm (2790)
2019.11.28 12:47:06.624 1:     main::echodevice_Parse              called by FHEM/HttpUtils.pm (634)
2019.11.28 12:47:06.625 1:     main::__ANON__                      called by fhem.pl (751)
2019.11.28 12:47:06.625 1: PERL WARNING: (Missing operator before I?)
2019.11.28 12:47:06.625 1: stacktrace:
2019.11.28 12:47:06.626 1:     main::__ANON__                      called by (eval 5540436) (1)
2019.11.28 12:47:06.626 1:     (eval)                              called by ./FHEM/98_MSwitch.pm (8556)
2019.11.28 12:47:06.626 1:     main::MSwitch_checkcondition        called by ./FHEM/98_MSwitch.pm (3138)
2019.11.28 12:47:06.627 1:     main::MSwitch_Notify                called by fhem.pl (3754)
2019.11.28 12:47:06.627 1:     main::CallFn                        called by fhem.pl (3674)
2019.11.28 12:47:06.627 1:     main::DoTrigger                     called by fhem.pl (4737)
2019.11.28 12:47:06.628 1:     main::readingsEndUpdate             called by ./FHEM/37_echodevice.pm (2790)
2019.11.28 12:47:06.628 1:     main::echodevice_Parse              called by FHEM/HttpUtils.pm (634)
2019.11.28 12:47:06.628 1:     main::__ANON__                      called by fhem.pl (751)
2019.11.28 12:47:06.629 1: PERL WARNING: String found where operator expected at (eval 5540436) line 1, near "You"""
2019.11.28 12:47:06.629 1: stacktrace:
2019.11.28 12:47:06.629 1:     main::__ANON__                      called by (eval 5540436) (1)
2019.11.28 12:47:06.630 1:     (eval)                              called by ./FHEM/98_MSwitch.pm (8556)
2019.11.28 12:47:06.630 1:     main::MSwitch_checkcondition        called by ./FHEM/98_MSwitch.pm (3138)
2019.11.28 12:47:06.631 1:     main::MSwitch_Notify                called by fhem.pl (3754)
2019.11.28 12:47:06.631 1:     main::CallFn                        called by fhem.pl (3674)
2019.11.28 12:47:06.631 1:     main::DoTrigger                     called by fhem.pl (4737)
2019.11.28 12:47:06.632 1:     main::readingsEndUpdate             called by ./FHEM/37_echodevice.pm (2790)
2019.11.28 12:47:06.632 1:     main::echodevice_Parse              called by FHEM/HttpUtils.pm (634)
2019.11.28 12:47:06.632 1:     main::__ANON__                      called by fhem.pl (751)
2019.11.28 12:47:06.633 1: Echocontrol ERROR: syntax error at (eval 5540436) line 1, near ""currentTitle:Christmas Is The Time To Say "I Love "


moin,

ich habe eben einen FIX in das GIT geladen. Bitte mal ein Update auf diese Version machen und testen ob das Problem damit behoben ist .

update all https://raw.githubusercontent.com/Byte009/FHEM-MSwitch/master/controls_mswitch.txt

gruss Byte09

Byte09

Zitat von: Panik am 23 November 2019, 18:26:51
...

@Byte09: Ist es möglich, hinter dem CMD1/2 einen Testbutton zu setzen, der nur diese eine Aktion testweise auslöst?

Bin ich jetzt dran , ist in der nächsten Version vorhanden.

gruss Thomas

khk123

Hi Thomas,

hab jetzt mit condition "$year = 2019 AND $month = 11 AND $day = 30" und "$year = 2019 AND $month = 11 AND $day = 29" getestet. Alles ok. Hab bisher auch keine Nebeneffekte entdeckt. Danke für die Änderung.

Aber beim Testen fielen mir folgende Meldungen im Log auf:

Eingabe: define meterReset MSwitch


2019.11.29 16:28:17 1: PERL WARNING: "my" variable $inhalt masks earlier declaration in same scope at ./FHEM/98_MSwitch.pm line 302.
2019.11.29 16:28:17 1: PERL WARNING: Useless use of concatenation (.) or string in void context at ./FHEM/98_MSwitch.pm line 5160.
2019.11.29 16:28:17 1: PERL WARNING: Useless use of private array in void context at ./FHEM/98_MSwitch.pm line 6066.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value $id in concatenation (.) or string at ./FHEM/98_MSwitch.pm line 4098.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value $id in numeric gt (>) at ./FHEM/98_MSwitch.pm line 4099.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value $id in concatenation (.) or string at ./FHEM/98_MSwitch.pm line 4123.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value $id in numeric gt (>) at ./FHEM/98_MSwitch.pm line 4124.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value $testtimestroff in string ne at ./FHEM/98_MSwitch.pm line 7636.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value $testtimestroff in substitution (s///) at ./FHEM/98_MSwitch.pm line 7642.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value $testtimestroff in string ne at ./FHEM/98_MSwitch.pm line 7643.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value in substr at ./FHEM/98_MSwitch.pm line 7645.
2019.11.29 16:28:17 1: PERL WARNING: Argument "" isn't numeric in multiplication (*) at ./FHEM/98_MSwitch.pm line 7645.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value in substr at ./FHEM/98_MSwitch.pm line 7646.
2019.11.29 16:28:17 1: PERL WARNING: substr outside of string at ./FHEM/98_MSwitch.pm line 7646.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value in multiplication (*) at ./FHEM/98_MSwitch.pm line 7646.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value in substr at ./FHEM/98_MSwitch.pm line 7647.
2019.11.29 16:28:17 1: PERL WARNING: substr outside of string at ./FHEM/98_MSwitch.pm line 7647.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value in multiplication (*) at ./FHEM/98_MSwitch.pm line 7647.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value $testtimestron in string ne at ./FHEM/98_MSwitch.pm line 7656.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value $testtimestron in substitution (s///) at ./FHEM/98_MSwitch.pm line 7658.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value $testtimestron in string ne at ./FHEM/98_MSwitch.pm line 7659.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value $testtimestroff in string ne at ./FHEM/98_MSwitch.pm line 7659.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value $detailarray[8] in string ne at ./FHEM/98_MSwitch.pm line 7661.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value in substr at ./FHEM/98_MSwitch.pm line 7666.
2019.11.29 16:28:17 1: PERL WARNING: Argument "" isn't numeric in multiplication (*) at ./FHEM/98_MSwitch.pm line 7666.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value in substr at ./FHEM/98_MSwitch.pm line 7667.
2019.11.29 16:28:17 1: PERL WARNING: substr outside of string at ./FHEM/98_MSwitch.pm line 7667.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value in multiplication (*) at ./FHEM/98_MSwitch.pm line 7667.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value in substr at ./FHEM/98_MSwitch.pm line 7668.
2019.11.29 16:28:17 1: PERL WARNING: substr outside of string at ./FHEM/98_MSwitch.pm line 7668.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value in multiplication (*) at ./FHEM/98_MSwitch.pm line 7668.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/98_MSwitch.pm line 6775.
2019.11.29 16:28:17 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/98_MSwitch.pm line 6782.


Device ausgewählt und "modify Device":


019.11.29 16:29:39 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/98_MSwitch.pm line 5068.
2019.11.29 16:29:39 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/98_MSwitch.pm line 5069.
2019.11.29 16:29:39 1: PERL WARNING: Use of uninitialized value within %savedetails in string eq at ./FHEM/98_MSwitch.pm line 5251.
2019.11.29 16:29:39 1: PERL WARNING: Use of uninitialized value within %savedetails in string eq at ./FHEM/98_MSwitch.pm line 5290.
2019.11.29 16:29:39 1: PERL WARNING: Argument "00:00:00" isn't numeric in division (/) at ./FHEM/98_MSwitch.pm line 5331.
2019.11.29 16:29:39 1: PERL WARNING: Argument "00:00:00" isn't numeric in division (/) at ./FHEM/98_MSwitch.pm line 5356.


Nach modify Actions -> kein weiterer Logeintrag

copy resetMeter resetMeter1


2019.11.29 16:37:45 3: setreading resetMeter1 .Trigger_condition  : Usage: setreading <name> <reading> <value>
where <name> is a single device name, a list separated by comma (,) or a regexp. See the devspec section in the commandref.html for details.


events und condition eingetragen
condition ergebnis ist ok

test event mit attr disable=1

2019.11.29 16:49:22 1: PERL WARNING: Use of uninitialized value $evtparts[0] in join or string at ./FHEM/98_MSwitch.pm line 9240.
2019.11.29 16:49:40 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/98_MSwitch.pm line 103


Vlg
Karlheinz
FHEM6.2, RasPi4, RasPi Zero W,
CUL V3, HM, ZWave, IT, vcontrol, owntracks, alexa