Licht schaltet nicht gleichzeitig aus

Begonnen von en-trust, 06 April 2018, 07:39:00

Vorheriges Thema - Nächstes Thema

en-trust

Ich habe im Wohnzimmer einen Raspi 2 stehen der einen 433er CUL  besitzt und meine Elros schaltet. Das klappt auch soweit da die Entfernung nur max 2m beträgt. Aber sobald es 22:00 ist schalten alle Lichter gleichzeitig ab. Sollten es zumindest.
In Fhem werden die Dummys auch alle abgeschalten, nur das Signal scheint nicht alle Elros zu erreichen. Kann es sein dass das Signal sich bei gleichzeigitger Schaltung blockiert und dann gar nichts mehr tut ?


([Modus_Licht] eq "Auto" and [Tageslicht] eq "dunkel") (set WZ.Fensterleuchte_CUL.dummy on)
DOELSEIF ([Modus_Licht] eq "Auto" and ([22:00|So Mo Di Mi Do] or [23:30|Fr Sa])) (set WZ.Fensterleuchte_CUL.dummy off)
DOELSE (set WZ.Fensterleuchte_CUL.dummy off)


Internals:
   CFGFN      ./FHEM/fhem_multimedia.cfg
   DEF        ([Modus_Licht] eq "Auto" and [Tageslicht] eq "dunkel") (set WZ.Fensterleuchte_CUL.dummy on)
DOELSEIF ([Modus_Licht] eq "Auto" and ([22:00|So Mo Di Mi Do] or [23:30|Fr Sa])) (set WZ.Fensterleuchte_CUL.dummy off)
DOELSE (set WZ.Fensterleuchte_CUL.dummy off)
   NAME       WZ.Fensterleuchte_CUL.Auto
   NR         863
   NTFY_ORDER 50-WZ.Fensterleuchte_CUL.Auto
   STATE      cmd_3
   TYPE       DOIF
   Helper:
     DBLOG:
       cmd:
         logdb:
           TIME       1522958527.88679
           VALUE      3
       cmd_event:
         logdb:
           TIME       1522958527.88679
           VALUE      Modus_Licht
       cmd_nr:
         logdb:
           TIME       1522958527.88679
           VALUE      3
       state:
         logdb:
           TIME       1522958527.88679
           VALUE      cmd_3
   READINGS:
     2018-04-06 06:44:14   Device          Tageslicht
     2018-04-05 22:02:07   cmd             3
     2018-04-05 22:02:07   cmd_event       Modus_Licht
     2018-04-05 22:02:07   cmd_nr          3
     2018-04-05 22:02:07   e_Modus_Licht_STATE AUS
     2018-04-06 06:44:14   e_Tageslicht_STATE hell
     2018-03-18 17:15:44   mode            enabled
     2018-04-05 22:02:07   state           cmd_3
     2018-04-05 22:00:37   timer_01_c02    06.04.2018 22:00:00|SoMoDiMiDo
     2018-04-05 23:30:00   timer_02_c02    06.04.2018 23:30:00|FrSa
   Regex:
   condition:
     0          InternalDoIf($hash,'Modus_Licht','STATE') eq "Auto" and InternalDoIf($hash,'Tageslicht','STATE') eq "dunkel"
     1          InternalDoIf($hash,'Modus_Licht','STATE') eq "Auto" and (DOIF_time_once($hash,0,$wday,"SoMoDiMiDo") or DOIF_time_once($hash,1,$wday,"FrSa"))
   days:
     0          SoMoDiMiDo
     1          FrSa
   devices:
     0           Modus_Licht Tageslicht
     1           Modus_Licht
     all         Modus_Licht Tageslicht
   do:
     0:
       0          set WZ.Fensterleuchte_CUL.dummy on
     1:
       0          set WZ.Fensterleuchte_CUL.dummy off
     2:
       0          set WZ.Fensterleuchte_CUL.dummy off
   helper:
     DOIF_Readings_events
     DOIF_eventas
     event      hell
     globalinit 1
     last_timer 2
     sleeptimer -1
     timerdev   Tageslicht
     timerevent hell
     triggerDev Tageslicht
     timerevents:
       hell
     timereventsState:
       state: hell
     triggerEvents:
       hell
     triggerEventsState:
       state: hell
   internals:
     0           Modus_Licht:STATE Tageslicht:STATE
     1           Modus_Licht:STATE
     all         Modus_Licht:STATE Tageslicht:STATE
   interval:
   itimer:
   localtime:
     0          1523044800
     1          1523050200
   readings:
   realtime:
     0          22:00:00
     1          23:30:00
   time:
     0          22:00:00
     1          23:30:00
   timeCond:
     0          1
     1          1
   timer:
     0          0
     1          0
   timers:
     1           0  1
   trigger:
   triggertime:
     1523044800:
       localtime  1523044800
       hash:
     1523050200:
       localtime  1523050200
       hash:
   uiState:
   uiTable:
Attributes:
   group      Steckdosen,Zeitschaltuhr
   room       Automation


Nachdem das Fenster nicht abgeschalten hat, wollte ich es manuell schalten. Das tat er aber dann auch nicht.

Kann es vielleicht mit der Meldung Error: Blocking call aborted (timeout) zutun haben, die ich als State im RPI stehen habe ?

Internals:
   CHANGED   
   DEF        5 10 10 30
   INTERVAL_BASE 60
   INTERVAL_MULTIPLIERS 5 10 10 30
   MODE       local
   NAME       RPI_System
   NR         1151
   STATE      Error: Blocking call aborted (timeout)
   TYPE       SYSMON
   Helper:
     DBLOG:
       cpu_temp:
         DbLog:
           TIME       1522995345.67588
           VALUE      41.86
         logdb:
           TIME       1522995345.72112
           VALUE      41.86
   READINGS:
     2018-04-06 08:15:45   cpu0_idle_stat  0.00 99.93 86.92
     2018-04-06 08:15:45   cpu1_idle_stat  0.52 143.62 89.25
     2018-04-06 08:15:45   cpu2_idle_stat  0.14 100.00 83.67
     2018-04-06 08:15:45   cpu3_idle_stat  0.01 356.77 90.25
     2018-04-06 08:15:45   cpu_idle_stat   5.93 99.12 87.51
     2018-04-06 08:15:45   cpu_temp        41.86
     2018-04-06 08:15:45   cpu_temp_avg    40.9
     2018-04-06 08:15:45   cpu_temp_stat   36.48 56.38 40.95
     2018-04-06 08:15:45   eth0            RX: 46315.02 MB, TX: 10583.17 MB, Total: 56898.19 MB
     2018-04-06 08:15:45   eth0_diff       RX: 0.01 MB, TX: 0.02 MB, Total: 0.03 MB
     2018-04-06 08:15:45   eth0_ip         192.168.178.22
     2018-04-06 08:15:45   eth0_rx         48564819887
     2018-04-06 08:15:45   eth0_speed      100
     2018-04-06 08:15:45   eth0_tx         11097262975
     2018-04-06 08:17:44   fhemstarttime   1520793352
     2018-04-06 08:17:44   fhemstarttime_text 11.03.2018 19:35:52
     2018-04-06 08:17:44   fhemuptime      2202112
     2018-04-06 08:17:44   fhemuptime_text 25 days, 11 hours, 41 minutes
     2018-04-06 08:17:44   idletime        2000563 90.84 %
     2018-04-06 08:17:44   idletime_text   23 days, 03 hours, 42 minutes (90.84 %)
     2018-04-06 08:15:45   loadavg         0.98 0.83 0.67
     2018-03-28 19:59:59   perl_version    v5.20.2
     2018-04-06 08:15:45   ram             Total: 939.12 MB, Used: 341.80 MB, 36.40 %, Free: 597.32 MB
     2018-04-06 08:15:45   ram_used_stat   177.88 739.80 370.93
     2018-04-06 08:17:44   starttime       1520793263
     2018-04-06 08:17:44   starttime_text  11.03.2018 19:34:23
     2018-04-06 08:15:45   stat_cpu        46180818 1588734 12452977 800182380 5922749 0 494908
     2018-04-06 08:15:45   stat_cpu0       21741282 313770 3520673 178245629 3463861 0 480368
     2018-04-06 08:15:45   stat_cpu0_diff  18 0 84 2255 0 0 3
     2018-04-06 08:15:45   stat_cpu0_percent 0.76 0.00 3.56 95.55 0.00 0.00 0.13
     2018-04-06 08:15:45   stat_cpu0_text  user: 0.76 %, nice: 0.00 %, sys: 3.56 %, idle: 95.55 %, io: 0.00 %, irq: 0.00 %, sirq: 0.13 %
     2018-04-06 08:15:45   stat_cpu1       7868705 488063 3117535 207408604 774325 0 4950
     2018-04-06 08:15:45   stat_cpu1_diff  214 2 86 2224 0 0 0
     2018-04-06 08:15:45   stat_cpu1_percent 8.47 0.08 3.40 88.04 0.00 0.00 0.00
     2018-04-06 08:15:45   stat_cpu1_text  user: 8.47 %, nice: 0.08 %, sys: 3.40 %, idle: 88.04 %, io: 0.00 %, irq: 0.00 %, sirq: 0.00 %
     2018-04-06 08:15:45   stat_cpu2       8994455 412918 2963214 206397973 905252 0 5423
     2018-04-06 08:15:45   stat_cpu2_diff  475 3 60 1947 46 0 0
     2018-04-06 08:15:45   stat_cpu2_percent 18.77 0.12 2.37 76.93 1.82 0.00 0.00
     2018-04-06 08:15:45   stat_cpu2_text  user: 18.77 %, nice: 0.12 %, sys: 2.37 %, idle: 76.93 %, io: 1.82 %, irq: 0.00 %, sirq: 0.00 %
     2018-04-06 08:15:45   stat_cpu3       7576376 373983 2851555 208130171 779310 0 4167
     2018-04-06 08:15:45   stat_cpu3_diff  284 2 86 2144 0 0 0
     2018-04-06 08:15:45   stat_cpu3_percent 11.29 0.08 3.42 85.21 0.00 0.00 0.00
     2018-04-06 08:15:45   stat_cpu3_text  user: 11.29 %, nice: 0.08 %, sys: 3.42 %, idle: 85.21 %, io: 0.00 %, irq: 0.00 %, sirq: 0.00 %
     2018-04-06 08:15:45   stat_cpu_diff   991 7 316 8571 46 0 3
     2018-04-06 08:15:45   stat_cpu_percent 9.98 0.07 3.18 86.28 0.46 0.00 0.03
     2018-04-06 08:15:45   stat_cpu_text   user: 9.98 %, nice: 0.07 %, sys: 3.18 %, idle: 86.28 %, io: 0.46 %, irq: 0.00 %, sirq: 0.03 %
     2018-04-06 08:15:45   swap            Total: 100.00 MB, Used: 81.20 MB,  81.20 %, Free: 18.80 MB
     2018-04-06 08:15:45   swap_used_stat  0.00 100.00 81.37
     2018-04-06 08:17:44   uptime          2202200
     2018-04-06 08:17:44   uptime_text     25 days, 11 hours, 43 minutes
     2018-04-06 08:15:45   wlan0           RX: 0.00 MB, TX: 0.00 MB, Total: 0 MB
     2018-04-06 08:15:45   wlan0_diff      RX: 0.00 MB, TX: 0.00 MB, Total: 0.00 MB
     2018-04-06 08:15:45   wlan0_ip6       fe80::b420:b868:de01:8ac5/64
     2018-04-06 08:15:45   wlan0_rx        0
     2018-04-06 08:15:45   wlan0_tx        0
   helper:
     net_eth0_stat_class 1
     net_wlan0_stat_class 1
     proc_fs    1
     sys_cpu0_freq 1
     sys_cpu0_temp 0
     sys_cpu1_freq 1
     sys_cpu1_temp 0
     sys_cpu2_freq 1
     sys_cpu2_temp 0
     sys_cpu3_freq 1
     sys_cpu3_temp 0
     sys_cpu4_freq 0
     sys_cpu4_temp 0
     sys_cpu5_freq 0
     sys_cpu5_temp 0
     sys_cpu6_freq 0
     sys_cpu6_temp 0
     sys_cpu7_freq 0
     sys_cpu7_temp 0
     sys_cpu_core_num 4
     sys_cpu_freq_rpi_bbb 1
     sys_cpu_num 1
     sys_cpu_temp_bbb 0
     sys_cpu_temp_rpi 1
     sys_fb     0
     sys_power_ac 0
     sys_power_bat 0
     sys_power_usb 0
     u_first_mark 1
     cur_readings_map:
       cpu0_freq  CPU frequency (core 0)
       cpu0_freq_stat CPU frequency (core 0) stat
       cpu0_idle_stat CPU0 min/max/avg (idle)
       cpu1_freq  CPU frequency (core 1)
       cpu1_freq_stat CPU frequency (core 1) stat
       cpu1_idle_stat CPU1 min/max/avg (idle)
       cpu2_freq  CPU frequency (core 2)
       cpu2_freq_stat CPU frequency (core 2) stat
       cpu2_idle_stat CPU2 min/max/avg (idle)
       cpu3_freq  CPU frequency (core 3)
       cpu3_freq_stat CPU frequency (core 3) stat
       cpu3_idle_stat CPU3 min/max/avg (idle)
       cpu4_idle_stat CPU4 min/max/avg (idle)
       cpu5_idle_stat CPU5 min/max/avg (idle)
       cpu6_idle_stat CPU6 min/max/avg (idle)
       cpu7_idle_stat CPU7 min/max/avg (idle)
       cpu_bogomips BogoMIPS
       cpu_core_count Number of CPU cores
       cpu_freq   CPU frequency
       cpu_freq_stat CPU frequency stat
       cpu_idle_stat CPU min/max/avg (idle)
       cpu_model_name CPU model name
       cpu_temp   CPU temperature
       cpu_temp_avg Average CPU temperature
       cpu_temp_stat CPU temperature stat
       date       Date
       eth0       Ethernet
       eth0_diff  Ethernet (diff)
       eth0_ip    Ethernet (IP)
       eth0_ip6   Ethernet (IP6)
       eth0_rx    Ethernet (RX)
       eth0_speed Ethernet (speed)
       eth0_tx    Ethernet (TX)
       fhemstarttime Fhem start time
       fhemstarttime_text Fhem start time
       fhemuptime System up time
       fhemuptime_text FHEM up time
       fs_boot    Filesystem /boot
       fs_boot_free Filesystem /boot (free)
       fs_boot_used Filesystem /boot (used)
       fs_boot_used_percent Filesystem /boot (used %)
       fs_root    Root
       fs_root_free Root (free)
       fs_root_used Root (used)
       fs_root_used_percent Root (used %)
       fs_usb1    USB-Stick
       fs_usb1_free USB-Stick (free)
       fs_usb1_used USB-Stick (used)
       fs_usb1_used_percent USB-Stick (used %)
       idletime   Idle time
       idletime_text Idle time
       io_sda     TEST
       io_sda_diff TEST
       io_sda_raw TEST
       loadavg    Load average
       loadavg_1  Load average 1
       loadavg_15 Load average 15
       loadavg_5  Load average 5
       perl_version Perl Version
       ram        RAM
       ram_free   RAM free
       ram_free_percent RAM free %
       ram_total  RAM total
       ram_used   RAM used
       ram_used_stat RAM used stat
       starttime  System start time
       starttime_text System start time
       stat_cpu   CPU statistics
       stat_cpu0  CPU0 statistics
       stat_cpu0_diff CPU0 statistics (diff)
       stat_cpu0_percent CPU0 statistics (diff, percent)
       stat_cpu0_text CPU0 statistics (text)
       stat_cpu1  CPU1 statistics
       stat_cpu1_diff CPU1 statistics (diff)
       stat_cpu1_percent CPU1 statistics (diff, percent)
       stat_cpu1_text CPU1 statistics (text)
       stat_cpu2  CPU2 statistics
       stat_cpu2_diff CPU2 statistics (diff)
       stat_cpu2_percent CPU2 statistics (diff, percent)
       stat_cpu2_text CPU2 statistics (text)
       stat_cpu3  CPU3 statistics
       stat_cpu3_diff CPU3 statistics (diff)
       stat_cpu3_percent CPU3 statistics (diff, percent)
       stat_cpu3_text CPU3 statistics (text)
       stat_cpu4  CPU4 statistics
       stat_cpu4_diff CPU4 statistics (diff)
       stat_cpu4_percent CPU4 statistics (diff, percent)
       stat_cpu4_text CPU4 statistics (text)
       stat_cpu5  CPU5 statistics
       stat_cpu5_diff CPU5 statistics (diff)
       stat_cpu5_percent CPU5 statistics (diff, percent)
       stat_cpu5_text CPU5 statistics (text)
       stat_cpu6  CPU6 statistics
       stat_cpu6_diff CPU6 statistics (diff)
       stat_cpu6_percent CPU6 statistics (diff, percent)
       stat_cpu6_text CPU6 statistics (text)
       stat_cpu7  CPU7 statistics
       stat_cpu7_diff CPU7 statistics (diff)
       stat_cpu7_percent CPU7 statistics (diff, percent)
       stat_cpu7_text CPU7 statistics (text)
       stat_cpu_diff CPU statistics (diff)
       stat_cpu_idle_percent CPU statistics idle %
       stat_cpu_io_percent CPU statistics io %
       stat_cpu_irq_percent CPU statistics irq %
       stat_cpu_nice_percent CPU statistics nice %
       stat_cpu_percent CPU statistics (diff, percent)
       stat_cpu_sirq_percent CPU statistics sirq %
       stat_cpu_sys_percent CPU statistics sys %
       stat_cpu_text CPU statistics (text)
       stat_cpu_user_percent CPU statistics user %
       swap       swap
       swap_free  swap free
       swap_total swap total
       swap_used  swap used
       swap_used_percent swap used %
       swap_used_stat swap used stat
       uptime     System up time
       uptime_text System up time
       wlan0      WiFi
       wlan0_diff WiFi (diff)
       wlan0_ip   WiFi (IP)
       wlan0_ip6  WiFi (IP6)
       wlan0_rx   WiFi (RX)
       wlan0_speed WiFi (speed)
       wlan0_tx   WiFi (TX)
     excludes:
       cpucount   1
       cpufreq    1
       cpuinfo    1
       diskstat   1
       fbdecttemp 1
       fbdsl      1
       fbnewmessages 1
       fbnightctrl 1
       fbversion  1
       fbwlan     1
       filesystem 1
     shadow_map:
       fhemstarttime 1520793352
       fhemstarttime_text 11.03.2018 19:35:52
       fhemuptime 2202112
       fhemuptime_text 25 days, 11 hours, 41 minutes
       idletime   2000563 90.84 %
       idletime_text 23 days, 03 hours, 42 minutes (90.84 %)
       starttime  1520793263
       starttime_text 11.03.2018 19:34:23
       uptime     2202200
       uptime_text 25 days, 11 hours, 43 minutes
Attributes:
   event-on-update-reading cpu_temp, cpu_temp_avg, cpu_temp_stat, cpu_freq, eth0_diff, loadavg, uptime_text, stat_cpu_text, wlan0, ram, fs_.*
   exclude    cpucount, cpufreq, cpuinfo, diskstat, filesystem, fbwlan, fbnightctrl, fbnewmessages, fbdecttemp, fbversion, fbdsl
   filesystems fs_boot:/boot,fs_root:/:Root,fs_usb1:/media/usb1:USB-Stick
   group      RPi
   icon       it_server
   network-interfaces eth0:eth0:Ethernet,wlan0:wlan0:WiFi
   nonblocking 0
   room       System


nonblocking habe ich hier schon auf 0 stehen.

Larusso

Hallo en-trust

das selbe Problem hatte ich mit meinen 433MHz Steckdosen und Lampen auch. Das liegt ganz einfach daran das in dem Funksignal nicht alle Codes zum schalten der Lampen gleichzeitig ausgegeben werden können. Somit schaltet häufig nur eine oder zwei Lampen aus. Ich habe das ganze bei mir mit einem notify gelöst in dem alle Geräte aufgelistet sind die ausgeschaltet werden sollen. Ja ich weis .....da muss man dann alle Geräte angeben. Zwischen den einzelnen 433MHz Geräten die ausgeschaltet werden sollen habe ich immer ein sleep 1 gesetzt. Ist zwar nicht so schön aber funktioniert. So schalten sich in meinem Wohnzimmer alle Lampen nacheinander aus. Man könnte damit auch noch spielen und sagen: "ich gehe ins Bett, fang im Wohnzimmer an das Licht aus zu machen und wärend ich ins Schlafzimmer gehe schalten sich alle Lampen in der Reihenfolge hinter mir mit einer Verzögerung aus".

ein notify würde dann bei mir so aussehen:

define WZaus notify WZ_Schalter:off set Deckenleuchteweis off;; sleep1;; set Steckdose5 off;; sleep1;; set Steckdose4 off
usw........
nanoCul434MHz, nanoCul868MHz, HueBridge, shellyRolladenaktoren, Nuki, Homematic, RPI3, Homebridge, Sonoffbridge, Xiaomi Saugrobotter,

CoolTux

Für sowas nimmt man structure. Alle Geräte in die structure und als Attribut async_delay
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net