Hallo,
kann mir jemand mit den unten stehenden DOIF weiterhelfen? Dort kommt immer eine Fehlermeldung: "condition c02: Argument "" isn't numeric in subtraction (-)"
([Wandthermostat_Weather:humidity] > 63 and ([Keller_Weather:dewpoint]-[Meteohub:taupunkt])>= 3)
(set Keller_Luefter on)
DOELSEIF
([Wandthermostat_Weather:humidity] < 63 and ([Keller_Weather:dewpoint]-[Meteohub:taupunkt])< 3)
(set Keller_Luefter off)
DOELSE
Für jemand mit mehr Ahnung bestimmt einfach :-)
Vielen dank
Gruß
Thorsten
Ein list von allen Beteiligten wäre hilfreich.
Gesendet von meinem S60 mit Tapatalk
Hier die gewünschten List´s......
Internals:
CFGFN
DEF ([Keller_Thermostat_Weather:humidity] > 63 and ([Keller_Weather:dewpoint]-[Meteohub:taupunkt])>= 3)
(set Keller_Luefter on)
DOELSEIF
([Keller_Thermostat_Weather:humidity] < 63 and ([Keller_Weather:dewpoint]-[Meteohub:taupunkt])< 3)
(set Keller_Luefter off)
DOELSE
MODEL FHEM
NAME Keller_Luefter_Regelung
NR 55044
NTFY_ORDER 50-Keller_Luefter_Regelung
STATE cmd_3
TYPE DOIF
.attraggr:
.attrminint:
READINGS:
2018-05-07 22:04:12 Device Meteohub
2018-05-07 22:03:22 cmd 3
2018-05-07 22:03:22 cmd_event Meteohub
2018-05-07 22:03:22 cmd_nr 3
2018-05-07 22:04:12 e_Meteohub_taupunkt 10.2
2018-05-07 22:03:21 mode enabled
2018-05-07 22:03:22 state cmd_3
Regex:
condition:
0 ReadingValDoIf($hash,'Keller_Thermostat_Weather','humidity') > 63 and (ReadingValDoIf($hash,'Keller_Weather','dewpoint')-ReadingValDoIf($hash,'Meteohub','taupunkt'))>= 3
1 ReadingValDoIf($hash,'Keller_Thermostat_Weather','humidity') < 63 and (ReadingValDoIf($hash,'Keller_Weather','dewpoint')-ReadingValDoIf($hash,'Meteohub','taupunkt'))< 3
devices:
0 Keller_Thermostat_Weather Keller_Weather Meteohub
1 Keller_Thermostat_Weather Keller_Weather Meteohub
all Keller_Thermostat_Weather Keller_Weather Meteohub
do:
0:
0 set Keller_Luefter on
1:
0 set Keller_Luefter off
2:
0
helper:
DOIF_Readings_events
DOIF_eventas
event windDir: 36,windquest: 13.0
globalinit 1
last_timer 0
sleeptimer -1
timerdev Meteohub
timerevent windDir: 36,windquest: 13.0
triggerDev Meteohub
timerevents:
windDir: 36
windquest: 13.0
timereventsState:
windDir: 36
windquest: 13.0
triggerEvents:
windDir: 36
windquest: 13.0
triggerEventsState:
windDir: 36
windquest: 13.0
internals:
itimer:
readings:
0 Keller_Thermostat_Weather:humidity Keller_Weather:dewpoint Meteohub:taupunkt
1 Keller_Thermostat_Weather:humidity Keller_Weather:dewpoint Meteohub:taupunkt
all Keller_Thermostat_Weather:humidity Keller_Weather:dewpoint Meteohub:taupunkt
trigger:
uiState:
uiTable:
Attributes:
room Keller
Internals:
.lastTimedewpoint 1525723358.15288
.lastTimehumidity 1525723358.15188
.lastTimetemperature 1525723358.15188
DEF 5A425E01
NAME Keller_Thermostat_Weather
NOTIFYDEV global
NR 370
NTFY_ORDER 50-HygrometerBad_Weather
STATE T: 15.6 H: 88
TYPE CUL_HM
chanNo 01
device Keller_Thermostat
.attraggr:
.attreocr:
humidity
temperature
dewpoint
.attrminint:
humidity:300
temperature:300
dewpoint:300
Helper:
DBLOG:
dewpoint:
logdb:
TIME 1525723358.15602
VALUE 13.6
humidity:
logdb:
TIME 1525723358.15602
VALUE 88
temperature:
logdb:
TIME 1525723358.15602
VALUE 15.6
READINGS:
2018-04-04 19:02:00 .peerListRDate 2018-04-04 19:02:00
2018-04-04 19:02:01 R-sign off
2018-04-04 19:02:01 RegL_01. 08:00 00:00
2018-05-07 22:02:38 dewpoint 13.6
2018-05-07 22:02:38 humidity 88
2018-05-07 22:02:38 state T: 15.6 H: 88
2018-05-07 22:02:38 temperature 15.6
helper:
regLst ,1
expert:
def 1
det 0
raw 1
tpl 0
role:
chn 1
tmpl:
Attributes:
DbLogInclude humidity,temperature,dewpoint
event-min-interval humidity:300,temperature:300,dewpoint:300
event-on-change-reading humidity,temperature,dewpoint
model HM-TC-IT-WM-W-EU
peerIDs 00000000,
room Keller
Internals:
.getList
.setList
.updateRequestHash 1
BUSY 0
DEF http://192.168.1.20/wd-live/meteohub.html 5
Interval 5
LASTSEND 1525723577.24585
MainURL http://192.168.1.20/wd-live/meteohub.html
ModuleVersion 3.4.2 - 10.2.2018
NAME Meteohub
NR 160
STATE ???
TRIGGERTIME 1525723582.24483
TRIGGERTIME_FMT 2018-05-07 22:06:22
TYPE HTTPMOD
addr http://192.168.1.20:80
auth 0
buf
code 200
compress 1
conn
data
displayurl http://192.168.1.20/wd-live/meteohub.html
header
host 192.168.1.20
httpheader HTTP/1.1 200 OK
Server: nginx
Date: Mon, 07 May 2018 20:06:17 GMT
Content-Type: text/html
Content-Length: 321
Connection: close
Last-Modified: Mon, 07 May 2018 20:06:15 GMT
ETag: "279-56ba333c23ccd"
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Encoding: gzip
httpversion 1.0
hu_blocking 0
hu_filecount 52903
hu_port 80
hu_portSfx
ignoreredirects 0
loglevel 4
path /wd-live/meteohub.html
protocol http
redirects 0
timeout 5
url http://192.168.1.20/wd-live/meteohub.html
value 0
.attraggr:
.attreocr:
.*
.attrminint:
.readingParseList:
-TempIn_day_p
-TempIn_max_day_p
-TempIn_min_day_p
-humIn_p
_HumOut
_Regen_day
_Regen_mon
_Regen_year
_Solar
_TempOut
_TempOut_max
_TempOut_min
_TempPool
_TempPool_max_day
_TempPool_min_day
_TempSchlauch
_Wasserstand
_WindChill
_WindQuest_max_day
_Windspeed_max_day
_humIn
_luftdruck
_rainRate
_taupunkt
_tempIn
_tempIn_max
_tempIn_min
_windDir
_windquest
_windspeed
Helper:
DBLOG:
RainRate:
logdb:
TIME 1525654920.77801
VALUE 0.0
RegenDay:
logdb:
TIME 1525715419.48542
VALUE 0.00
Solar:
logdb:
TIME 1525720295.95179
VALUE 0.0
TempOut:
logdb:
TIME 1525723577.30994
VALUE 16.3
TempPool:
logdb:
TIME 1525723172.01429
VALUE 29.8
TempSchlauch:
logdb:
TIME 1525723237.06666
VALUE 23.9
taupunkt:
logdb:
TIME 1525723577.30994
VALUE 9.9
QUEUE:
READINGS:
2018-05-07 22:06:17 HumIn 64
2018-05-07 22:06:17 HumOut 66
2018-05-07 22:06:17 Luftdruck 1014.7
2018-05-07 22:06:17 RainRate 0.0
2018-05-07 22:06:17 RegenDay 0.00
2018-05-07 22:06:17 RegenMon 3.00
2018-05-07 22:06:17 RegenYear 211.80
2018-05-07 22:06:17 Solar 0.0
2018-05-07 22:06:17 TempIn 24.0
2018-05-07 22:06:17 TempIn_max 23.9
2018-05-07 22:06:17 TempIn_max_day_p 21.7
2018-05-07 22:06:17 TempIn_min 21.8
2018-05-07 22:06:17 TempIn_min_day_p 18.6
2018-05-07 22:06:17 TempIn_p 21.7
2018-05-07 22:06:17 TempOut 16.3
2018-05-07 22:06:17 TempOut_max 26.1
2018-05-07 22:06:17 TempOut_min 9.6
2018-05-07 22:06:17 TempPool 29.8
2018-05-07 22:06:17 TempPool_max 36.7
2018-05-07 22:06:17 TempPool_min 29.5
2018-05-07 22:06:17 TempSchlauch 23.9
2018-05-07 22:06:17 Wasserstand -5.7
2018-05-07 22:06:17 WindChill 15.9
2018-05-07 22:06:17 WindQuest_max_day 25.9
2018-05-07 22:06:17 Windspeed_max_day 16.2
2018-05-07 22:06:17 humIn_p 69
2018-05-07 21:59:55 statHumInTendency 1h: +0 2h: +2 3h: +3 6h: +3
2018-05-07 21:59:55 statHumOutTendency 1h: +8 2h: +18 3h: +26 6h: +25
2018-05-07 21:59:55 statLuftdruckTendency 1h: +0.2 2h: +0.1 3h: -0.2 6h: -1.7
2018-05-07 21:59:55 statTempInTendency 1h: +0.4 2h: +0.3 3h: +0.4 6h: +1.1
2018-05-07 21:59:55 statTempIn_pTendency 1h: +0.0 2h: +0.1 3h: +0.3 6h: +1.1
2018-05-07 21:59:55 statTempOutTendency 1h: -3.1 2h: -7.0 3h: -9.1 6h: -10.1
2018-05-07 21:59:55 statTempPoolTendency 1h: +0.0 2h: -0.8 3h: -0.8 6h: -0.9
2018-05-07 22:06:17 taupunkt 9.9
2018-05-07 22:06:17 windDir 39
2018-05-07 22:06:17 windquest 13.0
2018-05-07 22:06:17 windspeed 11.2
REQUEST:
data
header
ignoreredirects 0
retryCount 0
type update
url http://192.168.1.20/wd-live/meteohub.html
value 0
defptr:
readingBase:
HumIn reading
HumOut reading
Luftdruck reading
RainRate reading
RegenDay reading
RegenMon reading
RegenYear reading
Solar reading
TempIn reading
TempIn_max reading
TempIn_max_day_p reading
TempIn_min reading
TempIn_min_day_p reading
TempIn_p reading
TempOut reading
TempOut_max reading
TempOut_min reading
TempPool reading
TempPool_max reading
TempPool_min reading
TempSchlauch reading
Wasserstand reading
WindChill reading
WindQuest_max_day reading
Windspeed_max_day reading
humIn_p reading
taupunkt reading
windDir reading
windquest reading
windspeed reading
readingNum:
HumIn _humIn
HumOut _HumOut
Luftdruck _luftdruck
RainRate _rainRate
RegenDay _Regen_day
RegenMon _Regen_mon
RegenYear _Regen_year
Solar _Solar
TempIn _tempIn
TempIn_max _tempIn_max
TempIn_max_day_p -TempIn_max_day_p
TempIn_min _tempIn_min
TempIn_min_day_p -TempIn_min_day_p
TempIn_p -TempIn_day_p
TempOut _TempOut
TempOut_max _TempOut_max
TempOut_min _TempOut_min
TempPool _TempPool
TempPool_max _TempPool_max_day
TempPool_min _TempPool_min_day
TempSchlauch _TempSchlauch
Wasserstand _Wasserstand
WindChill _WindChill
WindQuest_max_day _WindQuest_max_day
Windspeed_max_day _Windspeed_max_day
humIn_p -humIn_p
taupunkt _taupunkt
windDir _windDir
windquest _windquest
windspeed _windspeed
readingOutdated:
requestReadings:
update:
HumIn reading _humIn
HumOut reading _HumOut
Luftdruck reading _luftdruck
RainRate reading _rainRate
RegenDay reading _Regen_day
RegenMon reading _Regen_mon
RegenYear reading _Regen_year
Solar reading _Solar
TempIn reading _tempIn
TempIn_max reading _tempIn_max
TempIn_max_day_p reading -TempIn_max_day_p
TempIn_min reading _tempIn_min
TempIn_min_day_p reading -TempIn_min_day_p
TempIn_p reading -TempIn_day_p
TempOut reading _TempOut
TempOut_max reading _TempOut_max
TempOut_min reading _TempOut_min
TempPool reading _TempPool
TempPool_max reading _TempPool_max_day
TempPool_min reading _TempPool_min_day
TempSchlauch reading _TempSchlauch
Wasserstand reading _Wasserstand
WindChill reading _WindChill
WindQuest_max_day reading _WindQuest_max_day
Windspeed_max_day reading _Windspeed_max_day
humIn_p reading -humIn_p
taupunkt reading _taupunkt
windDir reading _windDir
windquest reading _windquest
windspeed reading _windspeed
helper:
_98_statistics STATISTICS
sslargs:
Attributes:
DbLogInclude Solar,TempOut,TempPool,TempSchlauch,RainRate,RegenDay,RegenMon,RegenYear,taupunkt
event-on-change-reading .*
readingsName-TempIn_day_p TempIn_p
readingsName-TempIn_max_day_p TempIn_max_day_p
readingsName-TempIn_min_day_p TempIn_min_day_p
readingsName-humIn_p humIn_p
readingsName_HumOut HumOut
readingsName_Regen_day RegenDay
readingsName_Regen_mon RegenMon
readingsName_Regen_year RegenYear
readingsName_Solar Solar
readingsName_TempOut TempOut
readingsName_TempOut_max TempOut_max
readingsName_TempOut_min TempOut_min
readingsName_TempPool TempPool
readingsName_TempPool_max_day TempPool_max
readingsName_TempPool_min_day TempPool_min
readingsName_TempSchlauch TempSchlauch
readingsName_Wasserstand Wasserstand
readingsName_WindChill WindChill
readingsName_WindQuest_max_day WindQuest_max_day
readingsName_Windspeed_max_day Windspeed_max_day
readingsName_humIn HumIn
readingsName_luftdruck Luftdruck
readingsName_rainRate RainRate
readingsName_taupunkt taupunkt
readingsName_tempIn TempIn
readingsName_tempIn_max TempIn_max
readingsName_tempIn_min TempIn_min
readingsName_windDir windDir
readingsName_windquest windquest
readingsName_windspeed windspeed
readingsRegex-TempIn_day_p TempIn_p.*?([-\d\.]+)
readingsRegex-TempIn_max_day_p TempIn_max_day_p.*?([-\d\.]+)
readingsRegex-TempIn_min_day_p TempIn_min_day_p.*?([-\d\.]+)
readingsRegex-humIn_p humIn_p.*?([-\d\.]+)
readingsRegex_HumOut HumOut.*?([-\d\.]+)
readingsRegex_Regen_day RegenDay.*?([-\d\.]+)
readingsRegex_Regen_mon RegenMon.*?([-\d\.]+)
readingsRegex_Regen_year RegenYear.*?([-\d\.]+)
readingsRegex_Solar Solar.*?([-\d\.]+)
readingsRegex_TempOut TempOut.*?([-\d\.]+)
readingsRegex_TempOut_max TempOutmax.*?([-\d\.]+)
readingsRegex_TempOut_min TempOutmin.*?([-\d\.]+)
readingsRegex_TempPool TempPool.*?([-\d\.]+)
readingsRegex_TempPool_max_day TempPool_max.*?([-\d\.]+)
readingsRegex_TempPool_min_day TempPool_min.*?([-\d\.]+)
readingsRegex_TempSchlauch TempSchlauch.*?([-\d\.]+)
readingsRegex_Wasserstand Wasserstand.*?([-\d\.]+)
readingsRegex_WindChill windChill.*?([-\d\.]+)
readingsRegex_WindQuest_max_day windQuest_max_day.*?([-\d\.]+)
readingsRegex_Windspeed_max_day windspeed_max_day.*?([-\d\.]+)
readingsRegex_humIn humIn.*?([-\d\.]+)
readingsRegex_luftdruck luftdruck.*?([-\d\.]+)
readingsRegex_rainRate rainRate.*?([-\d\.]+)
readingsRegex_taupunkt taupunkt.*?([-\d\.]+)
readingsRegex_tempIn tempIn.*?([-\d\.]+)
readingsRegex_tempIn_max tempIn_max.*?([-\d\.]+)
readingsRegex_tempIn_min tempIn_min.*?([-\d\.]+)
readingsRegex_windDir windDir.*?([-\d\.]+)
readingsRegex_windquest windquest.*?([-\d\.]+)
readingsRegex_windspeed windspeed.*?([-\d\.]+)
room Wetterstation
timeout 5
userattr readingsName-TempIn_day_p readingsName-TempIn_max_day_p readingsName-TempIn_min_day_p readingsName-humIn_p readingsName_HumOut readingsName_Regen_day readingsName_Regen_mon readingsName_Regen_year readingsName_Solar readingsName_TempOut readingsName_TempOut_max readingsName_TempOut_min readingsName_TempPool readingsName_TempPool_max_day readingsName_TempPool_min_day readingsName_TempSchlauch readingsName_Wasserstand readingsName_WindChill readingsName_WindQuest_max_day readingsName_Windspeed_max_day readingsName_humIn readingsName_humOut readingsName_luftdruck readingsName_rainRate readingsName_taupunkt readingsName_tempIn readingsName_tempIn_max readingsName_tempIn_min readingsName_windDir readingsName_windquest readingsName_windspeed readingsRegex-TempIn_day_p readingsRegex-TempIn_max_day_p readingsRegex-TempIn_min_day_p readingsRegex-humIn_p readingsRegex_HumOut readingsRegex_Regen_day readingsRegex_Regen_mon readingsRegex_Regen_year readingsRegex_Solar readingsRegex_TempOut readingsRegex_TempOut_max readingsRegex_TempOut_min readingsRegex_TempPool readingsRegex_TempPool_max_day readingsRegex_TempPool_min_day readingsRegex_TempSchlauch readingsRegex_Wasserstand readingsRegex_WindChill readingsRegex_WindQuest_max_day readingsRegex_Windspeed_max_day readingsRegex_humIn readingsRegex_humOut readingsRegex_luftdruck readingsRegex_rainRate readingsRegex_taupunkt readingsRegex_tempIn readingsRegex_tempIn_max readingsRegex_tempIn_max. readingsRegex_tempIn_min readingsRegex_windDir readingsRegex_windquest readingsRegex_windspeed
verbose 2
Wenn ich da so mache...
([Keller_Thermostat_Weather:humidity] > 63 and {([Keller_Weather:dewpoint]-[Meteohub:taupunkt])>= 3})
(set Keller_Luefter on)
DOELSEIF
([Keller_Thermostat_Weather:humidity] < 63 and {([Keller_Weather:dewpoint]-[Meteohub:taupunkt])< 3})
(set Keller_Luefter off)
DOELSE
dann kommt als Warnung: condition c01: Odd number of elements in anonymous hash
Keller_Weather gibt es nicht, eher Keller_Thermostat_Weather
Ich habe es korrigiert.... aber daran lag es leider nicht...
Gesendet von iPhone mit Tapatalk
Zitat von: jailbreaker07 am 08 Mai 2018, 02:34:09
Ich habe es korrigiert.... aber daran lag es leider nicht...
Gesendet von iPhone mit Tapatalk
Dann poste mal ein list des korrigieren doif. Da sieht man es dann gleich.
Gesendet von meinem S60 mit Tapatalk
Klar, hier ist das list von dem geänderten Device
Internals:
CFGFN
DEF ([Keller_Thermostat_Weather:humidity] > 70 and {([Keller_Thermostat_Weather:dewpoint]-[Meteohub:taupunkt])>= 3})
(set Keller_Luefter on)
DOELSEIF
([Keller_Thermostat_Weather:humidity] < 70 and {([Keller_Thermostat_Weather:dewpoint]-[Meteohub:taupunkt])< 3})
(set Keller_Luefter off)
DOELSE
MODEL FHEM
NAME Keller_Luefter_Regelung
NR 55044
NTFY_ORDER 50-Keller_Luefter_Regelung
STATE cmd_1
TYPE DOIF
.attraggr:
.attrminint:
READINGS:
2018-05-08 09:16:30 Device Meteohub
2018-05-07 22:37:06 cmd 1
2018-05-07 22:37:06 cmd_event Keller_Luefter_Regelung
2018-05-07 22:37:06 cmd_nr 1
2018-05-08 09:14:51 e_Keller_Thermostat_Weather_dewpoint 11.8
2018-05-08 09:14:51 e_Keller_Thermostat_Weather_humidity 79
2018-05-08 09:16:30 e_Meteohub_taupunkt 12.4
2018-05-07 22:35:57 mode enabled
2018-05-07 22:37:06 state cmd_1
2018-05-08 09:16:30 warning condition c01: Odd number of elements in anonymous hash
Regex:
condition:
0 ReadingValDoIf($hash,'Keller_Thermostat_Weather','humidity') > 70 and {(ReadingValDoIf($hash,'Keller_Thermostat_Weather','dewpoint')-ReadingValDoIf($hash,'Meteohub','taupunkt'))>= 3}
1 ReadingValDoIf($hash,'Keller_Thermostat_Weather','humidity') < 70 and {(ReadingValDoIf($hash,'Keller_Thermostat_Weather','dewpoint')-ReadingValDoIf($hash,'Meteohub','taupunkt'))< 3}
devices:
0 Keller_Thermostat_Weather Meteohub
1 Keller_Thermostat_Weather Meteohub
all Keller_Thermostat_Weather Meteohub
do:
0:
0 set Keller_Luefter on
1:
0 set Keller_Luefter off
2:
0
helper:
DOIF_Readings_events
DOIF_eventas
event windquest: 6.5
globalinit 1
last_timer 0
sleeptimer -1
timerdev Meteohub
timerevent windquest: 6.5
triggerDev Meteohub
timerevents:
windquest: 6.5
timereventsState:
windquest: 6.5
triggerEvents:
windquest: 6.5
triggerEventsState:
windquest: 6.5
internals:
itimer:
readings:
0 Keller_Thermostat_Weather:humidity Keller_Thermostat_Weather:dewpoint Meteohub:taupunkt
1 Keller_Thermostat_Weather:humidity Keller_Thermostat_Weather:dewpoint Meteohub:taupunkt
all Keller_Thermostat_Weather:humidity Keller_Thermostat_Weather:dewpoint Meteohub:taupunkt
trigger:
uiState:
uiTable:
Attributes:
room Keller
Gesendet von iPhone mit Tapatalk
Und was machen die geschweiften Klammern da in der Bedingung?
Hallo,
Wenn ich sie weg lasse geht es ja auch nicht.... Deswegen frage ich ja hier nach.... weil ich es nicht hin bekomme....
Am Anfang war der Gerätename falsch und die Geschweifte Klammer vorne UND hinten.
Jetzt ist der Gerätename richtig aber die geschweifte Klammer NURNOCH vorne.
kann also beides nicht gehen. --> nimm die geschweifte rauf.