Hallo,
Ich bekomme absolut kein Event bei einem Dummy. Hier mal ein globales verbose 5.
Die zu Grunde liegende Ursache kenn ich, aber nicht wieso es so ist. Daher halte ich mich erstmal mit weiteren Angaben zurück und hoffe auf eine Erklärung durch das Logfile.
Das Dummy Device
Internals:
FUUID 60a22d25-f33f-5153-c14e-5f4933997e13725b
INTRIGGER 1
NAME RegenSensorDummy
NR 128
NTFY_TRIGGERTIME 2021-05-17 10:47:59
STATE 9
TYPE dummy
CHANGED:
IsRain: 9
9
IsRain: 9
IsRain: 7
IsRain: 3
IsRain: 9
IsRain: 7
CHANGEDWITHSTATE:
READINGS:
2021-05-17 10:53:55 IsRain 7
2021-05-17 10:47:59 state 9
Attributes:
readingList IsRain
setList IsRain:0,3,7,9
2021.05.17 10:53:50.193 5: Starting notify loop for global, 1 event(s), first is ATTR global verbose 5
2021.05.17 10:53:50.193 4: dewpoint_notify: cmd_type=dewpoint devname=global dewname=dew_all, dev=global, dev_regex=.* temp_name=temperature hum_name=humidity
2021.05.17 10:53:50.193 5: dewpoint_notify: s='ATTR global verbose 5'
2021.05.17 10:53:50.193 5: dewpoint_notify: evName='ATTR' val=global'
2021.05.17 10:53:50.193 5: dewpoint_notify: max_timediff=1
2021.05.17 10:53:50.194 5: Installer (Installer) - Notify: $VAR1 = [
'ATTR global verbose 5'
];
2021.05.17 10:53:50.194 4: XiaomiBTLESens (myTestSensor) - stateRequestTimer: Call Request Timer
2021.05.17 10:53:50.195 4: AutoShuttersControl (myASC) - Devname: global Name: myASC Notify: $VAR1 = [
'ATTR global verbose 5'
];
2021.05.17 10:53:50.195 4: backupToStorage (nextcloudBackup) -
Devname: global
Name: nextcloudBackup
Notify: $VAR1 = [
'ATTR global verbose 5'
];
2021.05.17 10:53:50.195 5: End notify loop for global
2021.05.17 10:53:50.225 5: GET /fhem?room=Unsorted&fw_id=122 HTTP/1.1
Host: t-fhem01.tuxnet.lan:8083
Connection: keep-alive
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
DNT: 1
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Referer: http://t-fhem01.tuxnet.lan:8083/fhem?detail=RegenSensorDummy&fw_id=&fw_id=122
Accept-Encoding: gzip, deflate
Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
2021.05.17 10:53:50.225 4: WEB_10.6.32.2_40444 GET /fhem?room=Unsorted&fw_id=122; BUFLEN:0
2021.05.17 10:53:50.229 4: backupToStorage (nextcloudBackup) - Read password from file
2021.05.17 10:53:50.229 4: configDB reading file: ./FHEM/FhemUtils/uniqueID
2021.05.17 10:53:50.273 4: WEB: /fhem?room=Unsorted&fw_id=122 / RL:3148 / text/html; charset=UTF-8 / Content-Encoding: gzip
/ Cache-Control: no-cache, no-store, must-revalidate
2021.05.17 10:53:50.340 5: GET /fhem/pgm2/jquery.min.js HTTP/1.1
Host: t-fhem01.tuxnet.lan:8083
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
DNT: 1
If-None-Match: "1550933951"
Accept: */*
Referer: http://t-fhem01.tuxnet.lan:8083/fhem?room=Unsorted&fw_id=122
Accept-Encoding: gzip, deflate
Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
2021.05.17 10:53:50.340 4: WEB_10.6.32.2_40444 GET /fhem/pgm2/jquery.min.js; BUFLEN:0
2021.05.17 10:53:50.341 4: WEB_10.6.32.2_40444 => 304 Not Modified
2021.05.17 10:53:50.341 5: GET /fhem/pgm2/jquery-ui.min.js HTTP/1.1
Host: t-fhem01.tuxnet.lan:8083
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
DNT: 1
If-None-Match: "1550933951"
Accept: */*
Referer: http://t-fhem01.tuxnet.lan:8083/fhem?room=Unsorted&fw_id=122
Accept-Encoding: gzip, deflate
Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
2021.05.17 10:53:50.341 4: WEB_10.6.32.2_40450 GET /fhem/pgm2/jquery-ui.min.js; BUFLEN:0
2021.05.17 10:53:50.341 4: WEB_10.6.32.2_40450 => 304 Not Modified
2021.05.17 10:53:50.371 5: GET /fhem/pgm2/darkCommon.css HTTP/1.1
Host: t-fhem01.tuxnet.lan:8083
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
DNT: 1
If-None-Match: "1580714083"
Accept: text/css,*/*;q=0.1
Referer: http://t-fhem01.tuxnet.lan:8083/fhem/pgm2/style.css?v=1621240496
Accept-Encoding: gzip, deflate
Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
2021.05.17 10:53:50.371 4: WEB_10.6.32.2_40444 GET /fhem/pgm2/darkCommon.css; BUFLEN:0
2021.05.17 10:53:50.371 4: WEB_10.6.32.2_40444 => 304 Not Modified
2021.05.17 10:53:50.371 5: GET /fhem/pgm2/fhemweb.js HTTP/1.1
Host: t-fhem01.tuxnet.lan:8083
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
DNT: 1
If-None-Match: "1620706863"
Accept: */*
Referer: http://t-fhem01.tuxnet.lan:8083/fhem?room=Unsorted&fw_id=122
Accept-Encoding: gzip, deflate
Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
2021.05.17 10:53:50.372 4: WEB_10.6.32.2_40450 GET /fhem/pgm2/fhemweb.js; BUFLEN:0
2021.05.17 10:53:50.372 4: WEB_10.6.32.2_40450 => 304 Not Modified
2021.05.17 10:53:50.399 4: Connection accepted from WEB_10.6.32.2_40760
2021.05.17 10:53:50.399 5: GET /fhem/codemirror/fhem_codemirror.js HTTP/1.1
Host: t-fhem01.tuxnet.lan:8083
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
DNT: 1
If-None-Match: "1550933951"
Accept: */*
Referer: http://t-fhem01.tuxnet.lan:8083/fhem?room=Unsorted&fw_id=122
Accept-Encoding: gzip, deflate
Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
2021.05.17 10:53:50.399 4: WEB_10.6.32.2_40760 GET /fhem/codemirror/fhem_codemirror.js; BUFLEN:0
2021.05.17 10:53:50.400 4: WEB_10.6.32.2_40760 => 304 Not Modified
2021.05.17 10:53:50.400 4: Connection accepted from WEB_10.6.32.2_40762
2021.05.17 10:53:50.400 4: Connection accepted from WEB_10.6.32.2_40764
2021.05.17 10:53:50.400 5: GET /fhem/pgm2/doif.js HTTP/1.1
Host: t-fhem01.tuxnet.lan:8083
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
DNT: 1
If-None-Match: "1621238695"
Accept: */*
Referer: http://t-fhem01.tuxnet.lan:8083/fhem?room=Unsorted&fw_id=122
Accept-Encoding: gzip, deflate
Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
2021.05.17 10:53:50.401 4: WEB_10.6.32.2_40762 GET /fhem/pgm2/doif.js; BUFLEN:0
2021.05.17 10:53:50.401 4: WEB_10.6.32.2_40762 => 304 Not Modified
2021.05.17 10:53:50.401 4: Connection accepted from WEB_10.6.32.2_40766
2021.05.17 10:53:50.404 5: GET /fhem/pgm2/dashboard_darkstyle.css HTTP/1.1
Host: t-fhem01.tuxnet.lan:8083
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
DNT: 1
If-None-Match: "1550933951"
Accept: text/css,*/*;q=0.1
Referer: http://t-fhem01.tuxnet.lan:8083/fhem/pgm2/darkCommon.css
Accept-Encoding: gzip, deflate
Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
2021.05.17 10:53:50.405 4: WEB_10.6.32.2_40450 GET /fhem/pgm2/dashboard_darkstyle.css; BUFLEN:0
2021.05.17 10:53:50.405 4: WEB_10.6.32.2_40450 => 304 Not Modified
2021.05.17 10:53:50.432 5: GET /fhem/images/default/icoEverything.png HTTP/1.1
Host: t-fhem01.tuxnet.lan:8083
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
DNT: 1
If-None-Match: "1550933953"
Accept: image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8
Referer: http://t-fhem01.tuxnet.lan:8083/fhem?room=Unsorted&fw_id=122
Accept-Encoding: gzip, deflate
Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
2021.05.17 10:53:50.433 4: WEB_10.6.32.2_40762 GET /fhem/images/default/icoEverything.png; BUFLEN:0
2021.05.17 10:53:50.433 4: WEB_10.6.32.2_40762 => 304 Not Modified
2021.05.17 10:53:50.464 5: GET /fhem/images/default/fhemicon_dark.png HTTP/1.1
Host: t-fhem01.tuxnet.lan:8083
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
DNT: 1
If-None-Match: "1550933953"
Accept: image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8
Referer: http://t-fhem01.tuxnet.lan:8083/fhem/pgm2/style.css?v=1621240496
Accept-Encoding: gzip, deflate
Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
2021.05.17 10:53:50.464 4: WEB_10.6.32.2_40762 GET /fhem/images/default/fhemicon_dark.png; BUFLEN:0
2021.05.17 10:53:50.464 4: WEB_10.6.32.2_40762 => 304 Not Modified
2021.05.17 10:53:50.601 4: Connection accepted from WEB_10.6.32.2_40768
2021.05.17 10:53:50.602 5: GET /fhem?XHR=1&inform=type=status;filter=room=Unsorted;since=1621241629;fmt=JSON&fw_id=122×tamp=1621241630560 HTTP/1.1
Host: t-fhem01.tuxnet.lan:8083
Connection: Upgrade
Pragma: no-cache
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Upgrade: websocket
Origin: http://t-fhem01.tuxnet.lan:8083
Sec-WebSocket-Version: 13
Accept-Encoding: gzip, deflate
Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
Sec-WebSocket-Key: Cavk1OvwKJS3AI4DTosiFQ==
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
2021.05.17 10:53:55.023 5: POST /fhem?cmd.setRegenSensorDummy%3Dset%20RegenSensorDummy%20IsRain%207&XHR=1&fwcsrf=csrf_158820337326636&fw_id=124 HTTP/1.1
Host: t-fhem01.tuxnet.lan:8083
Connection: keep-alive
Content-Length: 0
Accept: text/plain, */*; q=0.01
cache-control: no-cache
DNT: 1
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Origin: http://t-fhem01.tuxnet.lan:8083
Referer: http://t-fhem01.tuxnet.lan:8083/fhem?detail=RegenSensorDummy
Accept-Encoding: gzip, deflate
Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
2021.05.17 10:53:55.023 4: WEB_10.6.32.2_40762 POST /fhem?cmd.setRegenSensorDummy%3Dset%20RegenSensorDummy%20IsRain%207&XHR=1&fwcsrf=csrf_158820337326636&fw_id=124; BUFLEN:0
2021.05.17 10:53:55.024 5: Cmd: >set RegenSensorDummy IsRain 7<
2021.05.17 10:53:55.024 4: WEB: /fhem?cmd.setRegenSensorDummy%3Dset%20RegenSensorDummy%20IsRain%207&XHR=1&fwcsrf=csrf_158820337326636&fw_id=124 / RL:20 / text/plain; charset=UTF-8 / Content-Encoding: gzip
/ Cache-Control: no-cache, no-store, must-revalidate
2021.05.17 10:53:55.312 4: LGTV_WebOS (testmyTv) - Baue Socket Verbindung auf
2021.05.17 10:53:55.515 4: LGTV_WebOS (testmyTv) Couldn't connect to 10.6.9.52:3000
2021.05.17 10:53:58.192 4: AMADDevice (HandyMarko) - GetUpdate, FHEM or Device not ready yet
2021.05.17 10:53:58.811 4: configDB reading file: ./FHEM/FhemUtils/uniqueID
2021.05.17 10:53:58.819 4: configDB reading file: ./FHEM/FhemUtils/uniqueID
2021.05.17 10:53:58.827 5: Starting notify loop for myNewTesla, 1 event(s), first is fetch data - 0 entries in the Queue
2021.05.17 10:53:58.827 5: createNotifyHash
2021.05.17 10:53:58.828 4: dewpoint_notify: cmd_type=dewpoint devname=myNewTesla dewname=dew_all, dev=myNewTesla, dev_regex=.* temp_name=temperature hum_name=humidity
2021.05.17 10:53:58.828 5: dewpoint_notify: s='fetch data - 0 entries in the Queue'
2021.05.17 10:53:58.828 5: dewpoint_notify: evName='fetch' val=data'
2021.05.17 10:53:58.828 5: dewpoint_notify: max_timediff=1
2021.05.17 10:53:58.829 5: End notify loop for myNewTesla
2021.05.17 10:53:58.829 5: HttpUtils url=https://10.6.8.66/api/login/Basic NonBlocking
2021.05.17 10:53:58.829 4: IP: 10.6.8.66 -> 10.6.8.66
2021.05.17 10:54:01.883 4: HttpUtils: 10.6.8.66: Keine Route zum Zielrechner (113)
2021.05.17 10:54:01.884 5: Starting notify loop for myNewTesla, 2 event(s), first is 10.6.8.66: Keine Route zum Zielrechner (113)
2021.05.17 10:54:01.884 4: dewpoint_notify: cmd_type=dewpoint devname=myNewTesla dewname=dew_all, dev=myNewTesla, dev_regex=.* temp_name=temperature hum_name=humidity
2021.05.17 10:54:01.884 5: dewpoint_notify: s='10.6.8.66: Keine Route zum Zielrechner (113)'
2021.05.17 10:54:01.884 5: dewpoint_notify: evName='10.6.8.66:' val=Keine'
2021.05.17 10:54:01.884 5: dewpoint_notify: s='lastRequestError: 10.6.8.66: Keine Route zum Zielrechner (113)'
2021.05.17 10:54:01.884 5: dewpoint_notify: evName='lastRequestError:' val=10.6.8.66:'
2021.05.17 10:54:01.884 5: dewpoint_notify: max_timediff=1
2021.05.17 10:54:01.885 5: End notify loop for myNewTesla
2021.05.17 10:54:05.515 4: LGTV_WebOS (testmyTv) - Baue Socket Verbindung auf
2021.05.17 10:54:05.616 4: LGTV_WebOS (testmyTv) Couldn't connect to 10.6.9.52:3000
2021.05.17 10:54:10.479 5: POST /fhem HTTP/1.1
Host: t-fhem01.tuxnet.lan:8083
Connection: keep-alive
Content-Length: 77
Cache-Control: max-age=0
Origin: http://t-fhem01.tuxnet.lan:8083
Upgrade-Insecure-Requests: 1
DNT: 1
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Referer: http://t-fhem01.tuxnet.lan:8083/fhem?detail=RegenSensorDummy
Accept-Encoding: gzip, deflate
Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
2021.05.17 10:54:10.479 4: WEB_10.6.32.2_40762 POST /fhem&fw_id=124&room=Unsorted&fwcsrf=csrf_158820337326636&cmd=attr+global+verbose+3; BUFLEN:0
2021.05.17 10:54:10.480 5: Cmd: >attr global verbose 3<
Danke
ZitatIch bekomme absolut kein Event bei einem Dummy.
Ich habe damit kein Problem:
fhem> define RegenSensorDummy dummy
fhem> attr RegenSensorDummy readingList IsRain
fhem> attr RegenSensorDummy setList IsRain:0,3,7,9
fhem> info timer
fhem> set RegenSensorDummy IsRain 7
2021-05-17 13:33:44 dummy RegenSensorDummy IsRain: 7
So lange ich dieses Device nicht in mein ASC als NOTIFYDEV eintrage habe ich auch kein Problem. Sobald es aber in der NOTIFYDEV drin steht wirft es kein Event mehr.
Internals:
FUUID 5f06d4c4-f33f-5153-7e64-e9c79a30f01b9d26
MID da39a3ee5e6b4b0d3255bfef95601890afd80709
NAME myASC
NOTIFYDEV global,myASC,RolloKinZimSteven_F1,RolloKinZimSteven_F2,RolloWohnzimmer_F1,RolloWohnzimmer_F2,rgr_Residents,FensterKinZimStevenLi,dummyHelligkeitSensor,FensterKinZimStevenRe,myAstro,RegenSensorDummy
NR 103
NTFY_ORDER 51-myASC
STATE created new drive timer
TYPE AutoShuttersControl
VERSION v0.10.12
OLDREADINGS:
READINGS:
2021-05-17 11:29:32 RolloKinZimSteven_F1_nextAstroTimeEvent 17.05.2021 - 21:13
2021-05-17 11:29:32 RolloKinZimSteven_F2_nextAstroTimeEvent 17.05.2021 - 20:15
2021-05-17 11:29:32 RolloWohnzimmer_F1_nextAstroTimeEvent 17.05.2021 - 21:13
2021-05-17 11:29:32 RolloWohnzimmer_F2_nextAstroTimeEvent 17.05.2021 - 21:13
2021-05-17 10:17:57 ascEnable on
2021-05-17 10:17:57 controlShading off
2021-05-17 10:17:57 hardLockOut off
2021-05-17 11:29:28 room_StevensZimmer_ASC RolloKinZimSteven_F2
2021-05-17 11:29:28 room_Wohnung-_1_B__ro_ASC_StevensZimmer RolloKinZimSteven_F1
2021-05-17 11:29:28 room_Wohnzimmer_ASC RolloWohnzimmer_F1,RolloWohnzimmer_F2
2021-05-17 10:17:57 selfDefense off
2021-05-17 11:29:32 state created new drive timer
2021-05-17 10:17:57 sunriseTimeWeHoliday off
2021-05-17 11:29:28 userAttrList rolled out
helper:
shuttersList:
RolloKinZimSteven_F1
RolloKinZimSteven_F2
RolloWohnzimmer_F1
RolloWohnzimmer_F2
monitoredDevs:
FensterKinZimStevenLi:
RolloKinZimSteven_F1 ASC_WindowRec
FensterKinZimStevenRe:
RolloKinZimSteven_F2 ASC_WindowRec
RegenSensorDummy:
myASC ASC_rainSensor
dummyHelligkeitSensor:
RolloKinZimSteven_F1 ASC_BrightnessSensor
myAstro:
myASC ASC_twilightDevice
rgr_Residents:
myASC ASC_residentsDev
Attributes:
ASC_autoShuttersControlComfort on
ASC_debug 1
ASC_expert 1
ASC_rainSensor RegenSensorDummy:IsRain 5:4 0:30
ASC_residentsDev rgr_Residents
ASC_tempSensor Cellar
ASC_twilightDevice myAstro
devStateIcon { ShuttersControl_DevStateIcon($name) }
icon fts_shutter_automatic
room ASC
verbose 5
Hat sich erledigt. Problem erkannt. Dieses verdammte systemd startet bei Fehlern FHEM so schnell wieder neu das man es gar nicht mit bekommt :'(
Danke an alle fürs mitdenken.