Hauptmenü

[gelöst]Wieso ist das so ?

Begonnen von Kellerkind86, 16 Oktober 2021, 11:39:58

Vorheriges Thema - Nächstes Thema

Kellerkind86

okay, danke.. es wird immer heller.. danke  :D
Hardware in Nutzung: Fritzbox7490,RP4,nanoCUL868,sonoff(mini),shelly(2.5)

MadMax-FHEM

Würdest du dann deine Lösung noch für die Nachwelt posten, danke.

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

Kellerkind86

Sorry, stimmt

([18:00] and [?Cal_GeburtstageView:t_001_daysleft] == 1)
(set ECHO_G090XG1002820HRT sounds glocken, set ECHO_G090XG1002820HRT speak Morgen hat [Cal_GeburtstageView:t_001_summary] Geburtstag. [Cal_GeburtstageView:t_001_age] Jahre.)
DOELSEIF ([18:00] and [?Cal_GeburtstageView:t_001_daysleft] == 0)
(set ECHO_G090XG1002820HRT sounds glocken, set ECHO_G090XG1002820HRT speak Heute hat [Cal_GeburtstageView:t_001_summary] Geburtstag. [Cal_GeburtstageView:t_001_age]Jahre.,msg push @rr_Marcell |Geburtstag| Heute wird [Cal_GeburtstageView:t_001_summary] [Cal_GeburtstageView:t_001_age] Jahre alt.)

so, wird ja jeden tag um 18 uhr geprüft ob die Bedingung wahr ist.
Hardware in Nutzung: Fritzbox7490,RP4,nanoCUL868,sonoff(mini),shelly(2.5)

Kellerkind86

grad eben über alexa und telegram ne lustige nachricht bekommen..
und im fhemlog:
2021.10.19 18:00:00.006 1: PERL WARNING: Argument "" isn't numeric in numeric eq (==) at (eval 4398) line 1.
2021.10.19 18:00:00.006 3: eval: doif_GeburtstagsBenachrichtigung: warning in condition c01
2021.10.19 18:00:00.012 1: PERL WARNING: Argument "" isn't numeric in numeric eq (==) at (eval 4399) line 1.
2021.10.19 18:00:00.012 3: eval: doif_GeburtstagsBenachrichtigung: warning in condition c02
2021.10.19 18:00:00.120 3: msg rr_Marcell: ID=1634659200.10804.1 TYPE=push ROUTE=WEB_TelegramBot RECIPIENT=@1594118790 STATUS=OK PRIORITY=0 TITLE='Geburtstag' MSG='Heute wird   Jahre alt.'
2021.10.19 18:00:00.130 1: PERL WARNING: Argument "" isn't numeric in numeric eq (==) at (eval 4405) line 1.
2021.10.19 18:00:00.130 3: eval: doif_MuellBenachrichtigung: warning in condition c01



was da falsch ? :-\
Hardware in Nutzung: Fritzbox7490,RP4,nanoCUL868,sonoff(mini),shelly(2.5)

Damian

Die Meldung sagt übersetzt: in Cal_GeburtstageView:t_001_daysleft ist nichts drin "", es sollte aber eine Zahl für den Vergleich == sein.
Programmierte FHEM-Module: DOIF-FHEM, DOIF-Perl, DOIF-uiTable, THRESHOLD, FHEM-Befehl: IF

Kellerkind86

Mhmm. Eigentlich sollte da ne 1 stehen.
Internals:
   DEF        Cal_Geburtstage 1
   FUUID      603167c3-f33f-153e-1dc5-cb51cd19ad1a1830
   INTERVAL   43200
   KALENDER   Cal_Geburtstage
   NAME       Cal_GeburtstageView
   NR         44
   NTFY_ORDER 50-Cal_GeburtstageView
   STATE      t: 4 td: 0 tm: 1
   TYPE       CALVIEW
   READINGS:
     2021-10-19 21:05:49   c-term          4
     2021-10-19 21:05:49   c-today         0
     2021-10-19 21:05:49   c-tomorrow      1
     2021-10-19 21:05:49   state           t: 4 td: 0 tm: 1
     2021-10-19 21:05:49   t_001_age       39
     2021-10-19 21:05:49   t_001_bdate     20.10.2021
     2021-10-19 21:05:49   t_001_btime     00:00
     2021-10-19 21:05:49   t_001_categories
     2021-10-19 21:05:49   t_001_daysleft  1
     2021-10-19 21:05:49   t_001_daysleftLong morgen
     2021-10-19 21:05:49   t_001_description 1982
     2021-10-19 21:05:49   t_001_duration  ganztägig
     2021-10-19 21:05:49   t_001_edate     21.10.2021
     2021-10-19 21:05:49   t_001_etime     00:00
     2021-10-19 21:05:49   t_001_location 
     2021-10-19 21:05:49   t_001_mode      next
     2021-10-19 21:05:49   t_001_source    Cal_Geburtstage
     2021-10-19 21:05:49   t_001_sourcecolor white
     2021-10-19 21:05:49   t_001_summary   Christopher
     2021-10-19 21:05:49   t_001_timeshort ganztägig
     2021-10-19 21:05:49   t_001_weekday   3
     2021-10-19 21:05:49   t_001_weekdayname Mittwoch
     2021-10-19 21:05:49   t_002_age       65
     2021-10-19 21:05:49   t_002_bdate     28.12.2021
     2021-10-19 21:05:49   t_002_btime     00:00
     2021-10-19 21:05:49   t_002_categories
     2021-10-19 21:05:49   t_002_daysleft  70
Hardware in Nutzung: Fritzbox7490,RP4,nanoCUL868,sonoff(mini),shelly(2.5)

Damian

Um 18:00 Uhr steht da offenbar nichts drin. Die Meldung ist eindeutig: es gibt nur die beiden == Vergleiche und auf der einen Seite steht eine Zahl 0/1 auf der anderen Seite ein Reading, wenn die Zahl 0/1 nicht "" ist, dann muss es wohl das Reading sein.
Programmierte FHEM-Module: DOIF-FHEM, DOIF-Perl, DOIF-uiTable, THRESHOLD, FHEM-Befehl: IF

Kellerkind86

Jap, und ich sehe grad dass die Müllbenachichtigung auch ein Problem hatte. Mhmm
Danke
Hardware in Nutzung: Fritzbox7490,RP4,nanoCUL868,sonoff(mini),shelly(2.5)