Zitat von: Beta-User am 27 November 2025, 10:51:54Das wäre aber nicht die Lösung zu der von dir gestellten Fragen im Thread -Titel😜.
Siehe Antwort von JoWiemann eben und mein Hinweis von vorhin.
Zitat von: Kornelius777 am 27 November 2025, 10:40:06Also innerhalb des Perl-Teils:fhem("save config");
Richtig?
Zitat von: Gr!nDeR am 24 November 2025, 16:34:05ist die syntax soweit korrekt?Das habe ich als Frage gelesen.
Zitat von: Gr!nDeR am 27 November 2025, 10:22:20wo siehst du mehrere set-anweisungen? ich sehe nur jeweils eineHier z.B.
set room=Weihnachtsbeleuchtung off;;setreading Weihnachtsbeleuchtung_Steuerung Status OFF: Hell XmasWenn die CommandRef stimmt, dürfte das setreading gar nicht ausgeführt werden.Zitat von: Gr!nDeR am 26 November 2025, 14:18:40allerdings schaltet er nicht wie gewünscht aus
Zitat von: Gr!nDeR am 27 November 2025, 10:22:20die dinger werden nicht ausgeschaltet tagsüberDiese beiden Aussagen habe ich nicht als "doch, es funktioniert tatsächlich" interpretiert.
Zitat von: Gr!nDeR am 27 November 2025, 10:22:20meine intention war, hier eventuell anderen zu helfen durch dinge, die bei mir klappenAber gut, wenn das ein Vorschlag für eine Lösung sein soll und Jemand möchte es genauso bei sich auch haben, dann ist ja alles gut.
Zitat von: Kornelius777 am 27 November 2025, 10:40:06Das kommt drauf an...Zitat von: betateilchen am 27 November 2025, 08:53:30Die errechneten zusätzlichen at-devices müssen in der Konfiguration gespeichert werden, damit sie auch nach einem Reboot wieder zur Verfügung stehen. Du musst also am Ende der Berechnung ein "save config" ausführen.
Also innerhalb des Perl-Teils:fhem("save config");
Richtig?
Zitat von: betateilchen am 27 November 2025, 08:53:30Die errechneten zusätzlichen at-devices müssen in der Konfiguration gespeichert werden, damit sie auch nach einem Reboot wieder zur Verfügung stehen. Du musst also am Ende der Berechnung ein "save config" ausführen.
fhem("save config");Zitat von: HerbertG am 26 November 2025, 19:19:47define usbRS485 Modbus usb-FTDI_FT232R_USB_UART_A5069RR4-if00-port0@9600,8,N,1so nicht , teste bitte mit voller Pfadangabe :
State: disconnected
define usbRS485 Modbus /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A5069RR4-if00-port0@9600Zitat von: Beta-User am 26 November 2025, 22:43:15*** trunk/fhem/FHEM/10_MYSENSORS_DEVICE.pm: FHEM/10_MYSENSORS_DEVICE.pm not found in MAINTAINER.txtEigentlich ist der angemäkelte Eintrag da,
FHEM/10_MYSENSORS_DEVICE Beta-User Bastelecke/MySensors
define Weihnachtsbeleuchtung_Steuerung DOIF ([LiSens_Garage_0Uhr:state] eq "active" and $month==11 and $mday>=20 and $mday <=26 and $wday==0) (set LiSens_Garage_0Uhr inactive;;setReading Weihnachtsbeleuchtung_Steuerung Status XMAS TIME)\
DOELSEIF([LiSens_Garage_0Uhr:state] eq "inactive" and $month==1 and $mday==6) (set LiSens_Garage_0Uhr active;;set room=Weihnachtsbeleuchtung on;;setreading Weihnachtsbeleuchtung_Steuerung Status normal - alle Shelly on)\
DOELSEIF([LiSens_Garage_0Uhr:state] eq "inactive" and [06:00-23:59] and [LW.I1.Lichtsensor_Garage:state] eq "on" ) (set room=Weihnachtsbeleuchtung on;;setreading Weihnachtsbeleuchtung_Steuerung Status ON: LS und Zeit und Xmas)\
DOELSEIF([LiSens_Garage_0Uhr:state] eq "inactive" and [06:00-23:59] and [LW.I1.Lichtsensor_Garage:state] eq "off" ) (set room=Weihnachtsbeleuchtung off;;setreading Weihnachtsbeleuchtung_Steuerung Status OFF: Hell Xmas)\
DOELSEIF([LiSens_Garage_0Uhr:state] eq "inactive" and [00:00] or [LW.I1.Lichtsensor_Garage:state] eq "off") (set room=Weihnachtsbeleuchtung off;;setreading Weihnachtsbeleuchtung_Steuerung Status OFF: 0 Uhr Xmas)\
attr Weihnachtsbeleuchtung_Steuerung room Lichtsteuerung,Weihnachtsbeleuchtung
attr Weihnachtsbeleuchtung_Steuerung stateFormat Status
# DEF ([LiSens_Garage_0Uhr:state] eq "active" and $month==11 and $mday>=20 and $mday <=26 and $wday==0) (set LiSens_Garage_0Uhr inactive;setReading Weihnachtsbeleuchtung_Steuerung Status XMAS TIME)
#DOELSEIF([LiSens_Garage_0Uhr:state] eq "inactive" and $month==1 and $mday==6) (set LiSens_Garage_0Uhr active;set room=Weihnachtsbeleuchtung on;setreading Weihnachtsbeleuchtung_Steuerung Status normal - alle Shelly on)
#DOELSEIF([LiSens_Garage_0Uhr:state] eq "inactive" and [06:00-23:59] and [LW.I1.Lichtsensor_Garage:state] eq "on" ) (set room=Weihnachtsbeleuchtung on;setreading Weihnachtsbeleuchtung_Steuerung Status ON: LS und Zeit und Xmas)
#DOELSEIF([LiSens_Garage_0Uhr:state] eq "inactive" and [06:00-23:59] and [LW.I1.Lichtsensor_Garage:state] eq "off" ) (set room=Weihnachtsbeleuchtung off;setreading Weihnachtsbeleuchtung_Steuerung Status OFF: Hell Xmas)
#DOELSEIF([LiSens_Garage_0Uhr:state] eq "inactive" and [00:00] or [LW.I1.Lichtsensor_Garage:state] eq "off") (set room=Weihnachtsbeleuchtung off;setreading Weihnachtsbeleuchtung_Steuerung Status OFF: 0 Uhr Xmas)
#
# FUUID 6921ce7a-f33f-5bb8-2691-ab3a3b23330ceed7
# MODEL FHEM
# NAME Weihnachtsbeleuchtung_Steuerung
# NOTIFYDEV LW.I1.Lichtsensor_Garage,global,LiSens_Garage_0Uhr
# NR 180
# NTFY_ORDER 50-Weihnachtsbeleuchtung_Steuerung
# STATE OFF: Hell Xmas
# TYPE DOIF
# VERSION 30377 2025-10-12 09:46:59
# eventCount 331
# READINGS:
# 2025-11-27 10:12:19 Device LW.I1.Lichtsensor_Garage
# 2025-11-27 10:12:19 Status OFF: Hell Xmas
# 2025-11-27 10:12:19 cmd 4
# 2025-11-27 10:12:19 cmd_event LW.I1.Lichtsensor_Garage
# 2025-11-27 10:12:19 cmd_nr 4
# 2025-11-27 10:12:19 e_LW.I1.Lichtsensor_Garage_state off
# 2025-11-27 09:54:28 mode enabled
# 2025-11-27 10:12:19 state cmd_4
# 2025-11-27 09:54:28 timer_01_c03 28.11.2025 06:00:00
# 2025-11-27 09:54:28 timer_02_c03 27.11.2025 23:59:00
# 2025-11-27 09:54:28 timer_03_c04 28.11.2025 06:00:00
# 2025-11-27 09:54:28 timer_04_c04 27.11.2025 23:59:00
# 2025-11-27 09:54:28 timer_05_c05 28.11.2025 00:00:00
# Regex:
# accu:
# bar:
# barAvg:
# collect:
# cond:
# LW.I1.Lichtsensor_Garage:
# 0:
# 1:
# 2:
# state ^LW.I1.Lichtsensor_Garage$:^state:
# 3:
# state ^LW.I1.Lichtsensor_Garage$:^state:
# 4:
# state ^LW.I1.Lichtsensor_Garage$:^state:
# LiSens_Garage_0Uhr:
# 0:
# state ^LiSens_Garage_0Uhr$:^state:
# 1:
# state ^LiSens_Garage_0Uhr$:^state:
# 2:
# state ^LiSens_Garage_0Uhr$:^state:
# 3:
# state ^LiSens_Garage_0Uhr$:^state:
# 4:
# state ^LiSens_Garage_0Uhr$:^state:
# attr:
# cmdState:
# wait:
# waitdel:
# condition:
# 0 ::ReadingValDoIf($hash,'LiSens_Garage_0Uhr','state') eq "active" and $month==11 and $mday>=20 and $mday <=26 and $wday==0
# 1 ::ReadingValDoIf($hash,'LiSens_Garage_0Uhr','state') eq "inactive" and $month==1 and $mday==6
# 2 ::ReadingValDoIf($hash,'LiSens_Garage_0Uhr','state') eq "inactive" and ::DOIF_time($hash,0,1,$wday,$hms) and ::ReadingValDoIf($hash,'LW.I1.Lichtsensor_Garage','state') eq "on"
# 3 ::ReadingValDoIf($hash,'LiSens_Garage_0Uhr','state') eq "inactive" and ::DOIF_time($hash,2,3,$wday,$hms) and ::ReadingValDoIf($hash,'LW.I1.Lichtsensor_Garage','state') eq "off"
# 4 ::ReadingValDoIf($hash,'LiSens_Garage_0Uhr','state') eq "inactive" and ::DOIF_time_once($hash,4,$wday) or ::ReadingValDoIf($hash,'LW.I1.Lichtsensor_Garage','state') eq "off"
# days:
# devices:
# do:
# 0:
# 0 set LiSens_Garage_0Uhr inactive;setReading Weihnachtsbeleuchtung_Steuerung Status XMAS TIME
# 1:
# 0 set LiSens_Garage_0Uhr active;set room=Weihnachtsbeleuchtung on;setreading Weihnachtsbeleuchtung_Steuerung Status normal - alle Shelly on
# 2:
# 0 set room=Weihnachtsbeleuchtung on;setreading Weihnachtsbeleuchtung_Steuerung Status ON: LS und Zeit und Xmas
# 3:
# 0 set room=Weihnachtsbeleuchtung off;setreading Weihnachtsbeleuchtung_Steuerung Status OFF: Hell Xmas
# 4:
# 0 set room=Weihnachtsbeleuchtung off;setreading Weihnachtsbeleuchtung_Steuerung Status OFF: 0 Uhr Xmas
# 5:
# helper:
# NOTIFYDEV LW.I1.Lichtsensor_Garage,global,LiSens_Garage_0Uhr
# event off
# globalinit 1
# last_timer 5
# sleeptimer -1
# timerdev LW.I1.Lichtsensor_Garage
# timerevent off
# triggerDev LW.I1.Lichtsensor_Garage
# DOIF_eventa:
# cmd_nr: 4
# cmd: 4
# cmd_event: LW.I1.Lichtsensor_Garage
# cmd_4
# DOIF_eventas:
# cmd_nr: 4
# cmd: 4
# cmd_event: LW.I1.Lichtsensor_Garage
# state: cmd_4
# timerevents:
# off
# timereventsState:
# state: off
# triggerEvents:
# off
# triggerEventsState:
# state: off
# internals:
# interval:
# 0 -1
# 1 0
# 2 -1
# 3 2
# intervalfunc:
# localtime:
# 0 1764306000
# 1 1764284340
# 2 1764306000
# 3 1764284340
# 4 1764284400
# readings:
# all LiSens_Garage_0Uhr:state LW.I1.Lichtsensor_Garage:state
# realtime:
# 0 06:00:00
# 1 23:59:00
# 2 06:00:00
# 3 23:59:00
# 4 00:00:00
# time:
# 0 06:00:00
# 1 23:59:00
# 2 06:00:00
# 3 23:59:00
# 4 00:00:00
# timeCond:
# 0 2
# 1 2
# 2 3
# 3 3
# 4 4
# timer:
# 0 0
# 1 0
# 2 0
# 3 0
# 4 0
# timers:
# 2 0 1
# 3 2 3
# 4 4
# trigger:
# triggertime:
# 1764284340:
# localtime 1764284340
# hash:
# 1764284400:
# localtime 1764284400
# hash:
# 1764306000:
# localtime 1764306000
# hash:
# uiState:
# uiTable:
#
setstate Weihnachtsbeleuchtung_Steuerung OFF: Hell Xmas
setstate Weihnachtsbeleuchtung_Steuerung 2025-11-24 14:28:55 .eM off
setstate Weihnachtsbeleuchtung_Steuerung 2025-11-27 10:12:19 Device LW.I1.Lichtsensor_Garage
setstate Weihnachtsbeleuchtung_Steuerung 2025-11-27 10:12:19 Status OFF: Hell Xmas
setstate Weihnachtsbeleuchtung_Steuerung 2025-11-27 10:12:19 cmd 4
setstate Weihnachtsbeleuchtung_Steuerung 2025-11-27 10:12:19 cmd_event LW.I1.Lichtsensor_Garage
setstate Weihnachtsbeleuchtung_Steuerung 2025-11-27 10:12:19 cmd_nr 4
setstate Weihnachtsbeleuchtung_Steuerung 2025-11-27 10:12:19 e_LW.I1.Lichtsensor_Garage_state off
setstate Weihnachtsbeleuchtung_Steuerung 2025-11-27 09:54:28 mode enabled
setstate Weihnachtsbeleuchtung_Steuerung 2025-11-27 10:12:19 state cmd_4
setstate Weihnachtsbeleuchtung_Steuerung 2025-11-27 09:54:28 timer_01_c03 28.11.2025 06:00:00
setstate Weihnachtsbeleuchtung_Steuerung 2025-11-27 09:54:28 timer_02_c03 27.11.2025 23:59:00
setstate Weihnachtsbeleuchtung_Steuerung 2025-11-27 09:54:28 timer_03_c04 28.11.2025 06:00:00
setstate Weihnachtsbeleuchtung_Steuerung 2025-11-27 09:54:28 timer_04_c04 27.11.2025 23:59:00
setstate Weihnachtsbeleuchtung_Steuerung 2025-11-27 09:54:28 timer_05_c05 28.11.2025 00:00:00
Zitateine der lampen soll im normalmodus ausserhalb der weihnachtszeit eine art treppenlicht darstellen, wird realisiert über "LiSens_Garage_0Uhr" (macht das licht an, wenns dunkel ist und um 9 Uhr aus)dieser modus muss natürlich im weihnachtsmodus ausgeschaltet werden, daher das active/inactive. ich nutze diesen zustand gleichzeitig als zustand für "es ist weihnachten oder eben nicht"
Zitat von: huri-kane am 25 November 2025, 16:08:18dass sich der lokale Modus von selbst ausschaltet hatte ich in meinem gut zwei Jahren Nutzung des EZ-1 bisher nichtDanke. Dann hoffe ich mal das es ein einmaliger Aussetzer war.

Hatte über 20 Minuten gedauert und die Fortschrittsanzeige in der app lief bis ~130%... war dann überraschend doch erfolgreich.


attr Solar_AP_EZ1_1 get6Name DefaultMaxPower
attr Solar_AP_EZ1_1 get6Poll 1
attr Solar_AP_EZ1_1 get6PollDelay 14400
attr Solar_AP_EZ1_1 get6URL http://192.168.0.2:8050/getDefaultMaxPower
attr Solar_AP_EZ1_1 reading601JSON data_power
attr Solar_AP_EZ1_1 reading601Name DefaultMaxPower