Beleuchtung einschalten sobald NUKI im Dunkeln aufgeschlossen wird mit Notify

Begonnen von Kuehnhackel, 28 Dezember 2018, 10:30:11

Vorheriges Thema - Nächstes Thema

Kuehnhackel

Zitat von: Paul am 28 Dezember 2018, 22:20:42
Wenn der Eventmonitor nur das zeigt

sollte define Lichtan notify NUKIDevice NUKIDevice289680977 unlatch set Innenlicht on gehen

funktioniert leider nicht

Otto123

Und geht der Befehl in der FHEM Kommandozeile?
set Haustuer_innen state on

nachzulesen hier -> https://wiki.fhem.de/wiki/Notify#Mein_notify_geht_nicht_-_wie_kann_ich_mir_selbst_helfen:_Debugging

Ich denke nicht, der Befehl ist Unsinn!
Du solltest es so versuchen
set Haustuer_innen on

Nachzulesen in der Doku https://commandref.fhem.de/#set

Sowas ginge alternativ, aber ist hier nicht nötig.
setreading Haustuer_innen state on
https://commandref.fhem.de/#setreading

Gruß Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

CoolTux

"Funktioniert nicht" ist das die genaue Fehlermeldung im FHEM Log oder steht dazu noch was?
"Funktioniert nicht" ist das der Status vom Notify?
"Funktioniert nicht" ist das der Text der bei einem "list NOTIFYDEVICENAME" raus kommt?
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

Kuehnhackel

Das steht im FHEM Log

2018.12.28 22:40:35 1: ERROR evaluating my $NAME='NUKIDevice289680977';my $EVTPART0='unlatch';my $SELF='NUKIDevice289680977_notify_1';my $TYPE='NUKIDevice';my $EVENT='unlatch';{Haustuer_innen on}: Can't locate object method "Haustuer_innen" via package "on" (perhaps you forgot to load "on"?) at (eval 19897) line 1.

2018.12.28 22:40:35 3: NUKIDevice289680977_notify_1 return value: Can't locate object method "Haustuer_innen" via package "on" (perhaps you forgot to load "on"?) at (eval 19897) line 1.

2018.12.28 22:40:38 3: NUKIBridge (NBridge1) - invalid json detected: HTTP 503 Unavailable
2018.12.28 22:40:45 1: ERROR evaluating my $NAME='NUKIDevice289680977';my $EVTPART0='unlatch';my $SELF='NUKIDevice289680977_notify_1';my $TYPE='NUKIDevice';my $EVENT='unlatch';{Haustuer_innen on}: Can't locate object method "Haustuer_innen" via package "on" (perhaps you forgot to load "on"?) at (eval 19900) line 1.

2018.12.28 22:40:45 3: NUKIDevice289680977_notify_1 return value: Can't locate object method "Haustuer_innen" via package "on" (perhaps you forgot to load "on"?) at (eval 19900) line 1.

2018.12.28 22:40:53 3: NUKIBridge (NBridge1) - invalid json detected: HTTP 503 Unavailable
2018.12.28 22:41:57 3: NUKIDevice289680977_notify_1 return value: Unknown command Haustuer_innen, try help.
2018.12.28 22:42:07 3: NUKIDevice289680977_notify_1 return value: Unknown command Haustuer_innen, try help.

Otto123

Du hattest dies hier im notify als Befehl stehen?
{Haustuer_innen on}

Was hat Dich da geritten?

Gruß Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

Kuehnhackel

Zitat von: Otto123 am 28 Dezember 2018, 22:51:04
Du hattest dies hier im notify als Befehl stehen?
{Haustuer_innen on}

Was hat Dich da geritten?

Gruß Otto

ja, hatte ich aus Versehen stehen lassen.
Nachdem ich {} weggenommen habe, keine Fehlermeldung und auch keine Funktion.

CoolTux


define testNukiTuerAuf notify NUKIDevice289680977.unlatch set Haustuer_innen on


Du löschst jetzt bitte mal das Notify und Ersteller dann ein neues und zwar genau so wie hier oben geschrieben. Und keine Experimente. Genau so machen.

Ausserdem machst du bitte ein list vom Device Haustuer_innen

list ist ein FHEM Befehl. Dafür gibst Du oben in der Kommandozeile von FHEMWEB

list Haustuer_innen

ein.
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

CoolTux

Desweiteren wäre es schön wenn Du Dir das hier an schaust wenn Du schon nicht das Wiki oder die Commandref lesen willst
https://youtu.be/2PrpVtHDgjk
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

Kuehnhackel

Das ist das list Haustuer_innen

Internals:
   NAME       Haustuer_innen
   NR         113
   STATE      off
   TYPE       dummy
   READINGS:
     2018-12-28 22:49:40   state           Aus
Attributes:
   alias      Haustuer_innen
   eventMap   Ein:on Aus:off
   fp_Grundriss_EG 197,186,1,Haustuer_innen,
   room       Diele
   setList    state:on,off

Kuehnhackel

Zitat von: CoolTux am 28 Dezember 2018, 23:07:38
Desweiteren wäre es schön wenn Du Dir das hier an schaust wenn Du schon nicht das Wiki oder die Commandref lesen willst
https://youtu.be/2PrpVtHDgjk

werde ich sehr gerne machen  :)

Otto123

Mein Beitrag #16 wird komplett ignoriert oder?  :o

Na gute Nacht.

Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

Kuehnhackel

Zitat von: Otto123 am 28 Dezember 2018, 23:17:01
Mein Beitrag #16 wird komplett ignoriert oder?  :o

Na gute Nacht.

Otto

Nein, das war richtig was du gesagt hast ...

Ich habe mich verleiten lassen beim Eventmonitor, das Device anlegen und dann stand da was von änderm und das habe ich gemacht!

Gute Nacht

Kuehnhackel

Zitat von: CoolTux am 28 Dezember 2018, 23:06:19

define testNukiTuerAuf notify NUKIDevice289680977.unlatch set Haustuer_innen on


Du löschst jetzt bitte mal das Notify und Ersteller dann ein neues und zwar genau so wie hier oben geschrieben. Und keine Experimente. Genau so machen.


Habe ich gemacht. Vom FHEM funktioniert es aber nicht bei Benutzung der APP


Habe mal einen shutdown restart gemacht:

2018.12.28 23:12:51 3: NUKIBridge (NBridge1) - defined with host 192.168.178.71 on port 8080, Token 123456
2018.12.28 23:12:51 3: NUKIDevice (NUKIDevice289680977) - I/O device is NBridge1
2018.12.28 23:12:51 3: NUKIDevice (NUKIDevice289680977) - defined with Code: NBridge1-289680977
2018.12.28 23:12:51 1: NUKIDevice (NUKIDevice289680977) - reading battery a deprecated and will be remove in future
2018.12.28 23:12:51 2: NUKIDevice (NUKIDevice289680977) - Registering NUKIDevice for webhook URI /NUKIDevice ...
2018.12.28 23:12:51 3: NUKIDevice (Haustuer_14b) - I/O device is NBridge1
2018.12.28 23:12:51 3: NUKIDevice (Haustuer_14b) - defined with Code: NBridge1-1
2018.12.28 23:12:51 1: NUKIDevice (Haustuer_14b) - reading battery a deprecated and will be remove in future
2018.12.28 23:12:51 3: NUKIDevice (Haustuer_14b) - URL ist: http://192.168.178.59:8083/fhem/NUKIDevice-1
2018.12.28 23:12:51 1: Including ./log/fhem.save
2018.12.28 23:12:51 0: Featurelevel: 5.9
2018.12.28 23:12:51 0: Server started with 107 defined entities (fhem.pl:17652/2018-10-31 perl:5.024001 os:linux user:fhem pid:5849)
2018.12.28 23:12:51 3: telnetForBlockingFn_1546035171: port 43611 opened
2018.12.28 23:12:53 3: ABFALL myAbfall - CALENDAR:Abfall triggered, updating ABFALL myAbfall ...
2018.12.28 23:13:06 3: NUKIDevice (NBridge1) - NukiId '289680977' already defined as 'NUKIDevice289680977'
2018.12.28 23:13:09 3: NUKIDevice (Haustuer_14b) - invalid json detected: HTTP 503 Unavailable
2018.12.28 23:14:54 3: NUKIDevice (NUKIDevice289680977) - invalid json detected: HTTP 503 Unavailable
2018.12.28 23:15:16 3: Haustuer_innen_ntfy return value: 1
2018.12.28 23:15:41 3: Haustuer_innen_ntfy return value: 1
2018.12.28 23:15:44 3: NUKIBridge (NBridge1) - invalid json detected: HTTP 503 Unavailable
2018.12.28 23:16:50 3: NUKIBridge (NBridge1) - invalid json detected: HTTP 503 Unavailable
2018.12.28 23:17:12 3: NUKIBridge (NBridge1) - invalid json detected: HTTP 503 Unavailable
2018.12.28 23:17:28 3: NUKIBridge (NBridge1) - invalid json detected: HTTP 503 Unavailable
2018.12.28 23:22:52 3: ABFALL myAbfall - CALENDAR:Abfall triggered, updating ABFALL myAbfall ...

Otto123

Sorry, aber Deine Fehlerbeschreibungen schalten jedesmal das Licht aus!  :o
https://tty1.net/smart-questions_de.html#beprecise

So wird das auch im nächsten Jahr und 100 Forum Seiten weiter  nix.

Gruß Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

CoolTux

Zitat von: Kuehnhackel am 28 Dezember 2018, 23:26:25
Habe ich gemacht. Vom FHEM funktioniert es aber nicht bei Benutzung der APP


Habe mal einen shutdown restart gemacht:

2018.12.28 23:12:51 3: NUKIBridge (NBridge1) - defined with host 192.168.178.71 on port 8080, Token 123456
2018.12.28 23:12:51 3: NUKIDevice (NUKIDevice289680977) - I/O device is NBridge1
2018.12.28 23:12:51 3: NUKIDevice (NUKIDevice289680977) - defined with Code: NBridge1-289680977
2018.12.28 23:12:51 1: NUKIDevice (NUKIDevice289680977) - reading battery a deprecated and will be remove in future
2018.12.28 23:12:51 2: NUKIDevice (NUKIDevice289680977) - Registering NUKIDevice for webhook URI /NUKIDevice ...
2018.12.28 23:12:51 3: NUKIDevice (Haustuer_14b) - I/O device is NBridge1
2018.12.28 23:12:51 3: NUKIDevice (Haustuer_14b) - defined with Code: NBridge1-1
2018.12.28 23:12:51 1: NUKIDevice (Haustuer_14b) - reading battery a deprecated and will be remove in future
2018.12.28 23:12:51 3: NUKIDevice (Haustuer_14b) - URL ist: http://192.168.178.59:8083/fhem/NUKIDevice-1
2018.12.28 23:12:51 1: Including ./log/fhem.save
2018.12.28 23:12:51 0: Featurelevel: 5.9
2018.12.28 23:12:51 0: Server started with 107 defined entities (fhem.pl:17652/2018-10-31 perl:5.024001 os:linux user:fhem pid:5849)
2018.12.28 23:12:51 3: telnetForBlockingFn_1546035171: port 43611 opened
2018.12.28 23:12:53 3: ABFALL myAbfall - CALENDAR:Abfall triggered, updating ABFALL myAbfall ...
2018.12.28 23:13:06 3: NUKIDevice (NBridge1) - NukiId '289680977' already defined as 'NUKIDevice289680977'
2018.12.28 23:13:09 3: NUKIDevice (Haustuer_14b) - invalid json detected: HTTP 503 Unavailable
2018.12.28 23:14:54 3: NUKIDevice (NUKIDevice289680977) - invalid json detected: HTTP 503 Unavailable
2018.12.28 23:15:16 3: Haustuer_innen_ntfy return value: 1
2018.12.28 23:15:41 3: Haustuer_innen_ntfy return value: 1
2018.12.28 23:15:44 3: NUKIBridge (NBridge1) - invalid json detected: HTTP 503 Unavailable
2018.12.28 23:16:50 3: NUKIBridge (NBridge1) - invalid json detected: HTTP 503 Unavailable
2018.12.28 23:17:12 3: NUKIBridge (NBridge1) - invalid json detected: HTTP 503 Unavailable
2018.12.28 23:17:28 3: NUKIBridge (NBridge1) - invalid json detected: HTTP 503 Unavailable
2018.12.28 23:22:52 3: ABFALL myAbfall - CALENDAR:Abfall triggered, updating ABFALL myAbfall ...


Super das es funktioniert. Freut mich. Dann eine gute Nacht.
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