NEWS
Sayit wird plötzlich nicht mehr getriggert
-
on({id: "hm-rpc.3.LEQxxxxxxx.1.PRESS_SHORT"/*Taster_Haustuer_Klingel.PRESS_SHORT*/, change: 'any', val: true}, esklingelt);
Wenn du ins sonos.0.root.192_168_30_17.tts dann
50;http://192.168.30.9:8082/state/sayit.0.tts.mp3
Einträgst.
Was passiert dann?
Und es sollte viel mehr logs bei sonos sein.
-
on({id: "hm-rpc.3.LEQxxxxxxx.1.PRESS_SHORT"/*Taster_Haustuer_Klingel.PRESS_SHORT*/, change: 'any', val: true}, esklingelt);
das ändert leider gar nix … keine reaktion, keine meldung im log ... `
@Bluefox:Wenn du ins sonos.0.root.192_168_30_17.tts dann
50;http://192.168.30.9:8082/state/sayit.0.tts.mp3
Einträgst.
Was passiert dann?
Und es sollte viel mehr logs bei sonos sein. `
Dann erscheint folgendes im log:
-
Und du hast log level "debug"?
-
so schauts im log aus:
-
Im Log hilft es nichts wenn du Debug auswählst (Das ist nur ein Filter für die Anzeige).
Du musst in der Adapterinstanz den Loglevel umstellen. Da steht rechts neben der Instanz momentan wahrscheinlich "INFO". Dort auf "DEBUG" umstellen. Dann werden alle relevanten Daten ins Log geschrieben.
Wird das nicht mehr gebraucht zurückstellen nicht vergessen..
LG
Günther
-
Hallo Günther,
vielen Dank für die Info. Das wusste ich nicht.
Ich habe jetzt mal auf Debug umgestellt bei sonos und bei sayit.
folgendes wird jetzt im log angezeigt:
host. 2016-11-07 13:59:28.591 debug redis publish io.system.adapter.sayit.0.uptime {"val":61,"ack":true,"ts":1478523568591,"q":0,"from":"system.adapter.sayit.0","lc":1478523568591} host. 2016-11-07 13:59:28.576 debug redis publish io.system.adapter.sayit.0.memHeapUsed {"val":14.13,"ack":true,"ts":1478523568576,"q":0,"from":"system.adapter.sayit.0","lc":1478523568576} host. 2016-11-07 13:59:28.576 debug redis publish io.system.adapter.sayit.0.memHeapTotal {"val":19.84,"ack":true,"ts":1478523568576,"q":0,"from":"system.adapter.sayit.0","lc":1478523508513} host. 2016-11-07 13:59:28.576 debug redis publish io.system.adapter.sayit.0.memRss {"val":33.23,"ack":true,"ts":1478523568576,"q":0,"from":"system.adapter.sayit.0","lc":1478523568576} host. 2016-11-07 13:59:28.576 debug redis publish io.system.adapter.sayit.0.connected {"val":true,"ack":true,"ts":1478523568576,"q":0,"from":"system.adapter.sayit.0","lc":1478523508513} host. 2016-11-07 13:59:28.576 debug redis publish io.system.adapter.sayit.0.alive {"val":true,"ack":true,"ts":1478523568576,"q":0,"from":"system.adapter.sayit.0","lc":1478523508513} host. 2016-11-07 13:59:27.873 debug redis publish io.system.adapter.sonos.0.uptime {"val":78,"ack":true,"ts":1478523567873,"q":0,"from":"system.adapter.sonos.0","lc":1478523567873} host. 2016-11-07 13:59:27.873 debug redis publish io.system.adapter.sonos.0.memHeapUsed {"val":30.7,"ack":true,"ts":1478523567873,"q":0,"from":"system.adapter.sonos.0","lc":1478523567873} host. 2016-11-07 13:59:27.873 debug redis publish io.system.adapter.sonos.0.memHeapTotal {"val":58.23,"ack":true,"ts":1478523567873,"q":0,"from":"system.adapter.sonos.0","lc":1478523507810} host. 2016-11-07 13:59:27.873 debug redis publish io.system.adapter.sonos.0.memRss {"val":65.5,"ack":true,"ts":1478523567873,"q":0,"from":"system.adapter.sonos.0","lc":1478523552857} host. 2016-11-07 13:59:27.873 debug redis publish io.system.adapter.sonos.0.connected {"val":true,"ack":true,"ts":1478523567873,"q":0,"from":"system.adapter.sonos.0","lc":1478523492795} host. 2016-11-07 13:59:27.857 debug redis publish io.system.adapter.sonos.0.alive {"val":true,"ack":true,"ts":1478523567857,"q":0,"from":"system.adapter.sonos.0","lc":1478523492795} host. 2016-11-07 13:59:13.560 debug redis publish io.system.adapter.sayit.0.uptime {"val":46,"ack":true,"ts":1478523553560,"q":0,"from":"system.adapter.sayit.0","lc":1478523553560} host. 2016-11-07 13:59:13.560 debug redis publish io.system.adapter.sayit.0.memHeapUsed {"val":13.94,"ack":true,"ts":1478523553560,"q":0,"from":"system.adapter.sayit.0","lc":1478523553560} host. 2016-11-07 13:59:13.560 debug redis publish io.system.adapter.sayit.0.memHeapTotal {"val":19.84,"ack":true,"ts":1478523553560,"q":0,"from":"system.adapter.sayit.0","lc":1478523508513} host. 2016-11-07 13:59:13.560 debug redis publish io.system.adapter.sayit.0.memRss {"val":33.19,"ack":true,"ts":1478523553560,"q":0,"from":"system.adapter.sayit.0","lc":1478523553560} host. 2016-11-07 13:59:13.560 debug redis publish io.system.adapter.sayit.0.connected {"val":true,"ack":true,"ts":1478523553560,"q":0,"from":"system.adapter.sayit.0","lc":1478523508513} host. 2016-11-07 13:59:13.560 debug redis publish io.system.adapter.sayit.0.alive {"val":true,"ack":true,"ts":1478523553560,"q":0,"from":"system.adapter.sayit.0","lc":1478523508513} host. 2016-11-07 13:59:12.873 debug redis publish io.system.adapter.sonos.0.uptime {"val":63,"ack":true,"ts":1478523552873,"q":0,"from":"system.adapter.sonos.0","lc":1478523552873} host. 2016-11-07 13:59:12.857 debug redis publish io.system.adapter.sonos.0.memHeapUsed {"val":30.56,"ack":true,"ts":1478523552857,"q":0,"from":"system.adapter.sonos.0","lc":1478523552857} host. 2016-11-07 13:59:12.857 debug redis publish io.system.adapter.sonos.0.memHeapTotal {"val":58.23,"ack":true,"ts":1478523552857,"q":0,"from":"system.adapter.sonos.0","lc":1478523507810} host. 2016-11-07 13:59:12.857 debug redis publish io.system.adapter.sonos.0.memRss {"val":65.5,"ack":true,"ts":1478523552857,"q":0,"from":"system.adapter.sonos.0","lc":1478523552857} host. 2016-11-07 13:59:12.857 debug redis publish io.system.adapter.sonos.0.connected {"val":true,"ack":true,"ts":1478523552857,"q":0,"from":"system.adapter.sonos.0","lc":1478523492795} host. 2016-11-07 13:59:12.857 debug redis publish io.system.adapter.sonos.0.alive {"val":true,"ack":true,"ts":1478523552857,"q":0,"from":"system.adapter.sonos.0","lc":1478523492795} hm-rpc.2 2016-11-07 13:59:03.873 info xmlrpc -> listDevices 0 host. 2016-11-07 13:58:58.560 debug redis publish io.system.adapter.sayit.0.uptime {"val":31,"ack":true,"ts":1478523538560,"q":0,"from":"system.adapter.sayit.0","lc":1478523538560} host. 2016-11-07 13:58:58.560 debug redis publish io.system.adapter.sayit.0.memHeapUsed {"val":13.76,"ack":true,"ts":1478523538560,"q":0,"from":"system.adapter.sayit.0","lc":1478523538560} host. 2016-11-07 13:58:58.560 debug redis publish io.system.adapter.sayit.0.memHeapTotal {"val":19.84,"ack":true,"ts":1478523538560,"q":0,"from":"system.adapter.sayit.0","lc":1478523508513} host. 2016-11-07 13:58:58.545 debug redis publish io.system.adapter.sayit.0.memRss {"val":33.21,"ack":true,"ts":1478523538545,"q":0,"from":"system.adapter.sayit.0","lc":1478523538545} host. 2016-11-07 13:58:58.545 debug redis publish io.system.adapter.sayit.0.connected {"val":true,"ack":true,"ts":1478523538545,"q":0,"from":"system.adapter.sayit.0","lc":1478523508513} host. 2016-11-07 13:58:58.529 debug redis publish io.system.adapter.sayit.0.alive {"val":true,"ack":true,"ts":1478523538529,"q":0,"from":"system.adapter.sayit.0","lc":1478523508513} host. 2016-11-07 13:58:57.842 debug redis publish io.system.adapter.sonos.0.uptime {"val":48,"ack":true,"ts":1478523537842,"q":0,"from":"system.adapter.sonos.0","lc":1478523537842} host. 2016-11-07 13:58:57.842 debug redis publish io.system.adapter.sonos.0.memHeapUsed {"val":30.4,"ack":true,"ts":1478523537842,"q":0,"from":"system.adapter.sonos.0","lc":1478523537842} host. 2016-11-07 13:58:57.842 debug redis publish io.system.adapter.sonos.0.memHeapTotal {"val":58.23,"ack":true,"ts":1478523537842,"q":0,"from":"system.adapter.sonos.0","lc":1478523507810} host. 2016-11-07 13:58:57.842 debug redis publish io.system.adapter.sonos.0.memRss {"val":65.48,"ack":true,"ts":1478523537842,"q":0,"from":"system.adapter.sonos.0","lc":1478523507810} host. 2016-11-07 13:58:57.842 debug redis publish io.system.adapter.sonos.0.connected {"val":true,"ack":true,"ts":1478523537842,"q":0,"from":"system.adapter.sonos.0","lc":1478523492795} host. 2016-11-07 13:58:57.842 debug redis publish io.system.adapter.sonos.0.alive {"val":true,"ack":true,"ts":1478523537842,"q":0,"from":"system.adapter.sonos.0","lc":1478523492795} host. 2016-11-07 13:58:43.545 debug redis publish io.system.adapter.sayit.0.uptime {"val":16,"ack":true,"ts":1478523523545,"q":0,"from":"system.adapter.sayit.0","lc":1478523523545} host. 2016-11-07 13:58:43.529 debug redis publish io.system.adapter.sayit.0.memHeapUsed {"val":13.6,"ack":true,"ts":1478523523529,"q":0,"from":"system.adapter.sayit.0","lc":1478523523529} host. 2016-11-07 13:58:43.529 debug redis publish io.system.adapter.sayit.0.memHeapTotal {"val":19.84,"ack":true,"ts":1478523523529,"q":0,"from":"system.adapter.sayit.0","lc":1478523508513} host. 2016-11-07 13:58:43.513 debug redis publish io.system.adapter.sayit.0.memRss {"val":33.19,"ack":true,"ts":1478523523513,"q":0,"from":"system.adapter.sayit.0","lc":1478523523513} host. 2016-11-07 13:58:43.513 debug redis publish io.system.adapter.sayit.0.connected {"val":true,"ack":true,"ts":1478523523513,"q":0,"from":"system.adapter.sayit.0","lc":1478523508513} host. 2016-11-07 13:58:43.513 debug redis publish io.system.adapter.sayit.0.alive {"val":true,"ack":true,"ts":1478523523513,"q":0,"from":"system.adapter.sayit.0","lc":1478523508513} host. 2016-11-07 13:58:42.826 debug redis publish io.system.adapter.sonos.0.uptime {"val":33,"ack":true,"ts":1478523522826,"q":0,"from":"system.adapter.sonos.0","lc":1478523522826} host. 2016-11-07 13:58:42.826 debug redis publish io.system.adapter.sonos.0.memHeapUsed {"val":30.02,"ack":true,"ts":1478523522826,"q":0,"from":"system.adapter.sonos.0","lc":1478523522826} host. 2016-11-07 13:58:42.826 debug redis publish io.system.adapter.sonos.0.memHeapTotal {"val":58.23,"ack":true,"ts":1478523522826,"q":0,"from":"system.adapter.sonos.0","lc":1478523507810} host. 2016-11-07 13:58:42.826 debug redis publish io.system.adapter.sonos.0.memRss {"val":65.48,"ack":true,"ts":1478523522826,"q":0,"from":"system.adapter.sonos.0","lc":1478523507810} host. 2016-11-07 13:58:42.826 debug redis publish io.system.adapter.sonos.0.connected {"val":true,"ack":true,"ts":1478523522826,"q":0,"from":"system.adapter.sonos.0","lc":1478523492795} host. 2016-11-07 13:58:42.826 debug redis publish io.system.adapter.sonos.0.alive {"val":true,"ack":true,"ts":1478523522826,"q":0,"from":"system.adapter.sonos.0","lc":1478523492795} javascript.0 2016-11-07 13:58:39.357 warn State "sayit.1.tts.text" not found host. 2016-11-07 13:58:28.529 debug redis get sayit.0.tts.playing ok: {"val":false,"ack":true,"ts":1478418142739,"q":0,"from":"system.adapter.sayit.0","lc":1478418142739} host. 2016-11-07 13:58:28.529 debug redis get sayit.0.tts.volume ok: {"val":70,"ack":true,"ts":1478418142739,"q":0,"from":"system.adapter.sayit.0","lc":1478418142739} host. 2016-11-07 13:58:28.529 debug redis get sayit.0.tts.text ok: {"val":"Beispiel","ack":false,"ts":1478425437819,"q":0,"from":"system.adapter.admin.0","lc":1478425437819} host. 2016-11-07 13:58:28.529 debug redis psubscribe io.sayit.0.* host. 2016-11-07 13:58:28.513 debug redis mget 1 1 host. 2016-11-07 13:58:28.513 debug redis publish io.system.adapter.sayit.0.uptime {"val":1,"ack":true,"ts":1478523508513,"q":0,"from":"system.adapter.sayit.0","lc":1478523508513} host. 2016-11-07 13:58:28.513 debug redis publish io.system.adapter.sayit.0.memHeapUsed {"val":13.09,"ack":true,"ts":1478523508513,"q":0,"from":"system.adapter.sayit.0","lc":1478523508513} host. 2016-11-07 13:58:28.513 debug redis publish io.system.adapter.sayit.0.memHeapTotal {"val":19.84,"ack":true,"ts":1478523508513,"q":0,"from":"system.adapter.sayit.0","lc":1478523508513} host. 2016-11-07 13:58:28.513 debug redis publish io.system.adapter.sayit.0.memRss {"val":32.63,"ack":true,"ts":1478523508513,"q":0,"from":"system.adapter.sayit.0","lc":1478523508513} host. 2016-11-07 13:58:28.513 debug redis publish io.system.adapter.sayit.0.connected {"val":true,"ack":true,"ts":1478523508513,"q":0,"from":"system.adapter.sayit.0","lc":1478523508513} host. 2016-11-07 13:58:28.513 debug redis publish io.system.adapter.sayit.0.alive {"val":true,"ack":true,"ts":1478523508513,"q":0,"from":"system.adapter.sayit.0","lc":1478523508513} host. 2016-11-07 13:58:28.513 debug redis keys 1 *.logging sayit.0 2016-11-07 13:58:28.498 info Upload announce mp3 files sayit.0 2016-11-07 13:58:28.498 info starting. Version 1.1.2 in C:/Program Files/ioBroker/node_modules/iobroker.sayit, node: v4.6.0 host. 2016-11-07 13:58:28.466 debug redis get system.adapter.sayit.0.alive ok: {"val":false,"ack":true,"ts":1478523504795,"q":0,"from":"system.host.SERVER","lc":1478523504795} host. 2016-11-07 13:58:28.466 info States connected to redis 127.0.0.1:6379 sayit.0 2016-11-07 13:58:28.451 debug statesDB connected sayit.0 2016-11-07 13:58:28.435 debug objectDB connected host. 2016-11-07 13:58:27.810 debug redis publish io.system.adapter.sonos.0.uptime {"val":18,"ack":true,"ts":1478523507810,"q":0,"from":"system.adapter.sonos.0","lc":1478523507810} host. 2016-11-07 13:58:27.810 debug redis publish io.system.adapter.sonos.0.memHeapUsed {"val":29.79,"ack":true,"ts":1478523507810,"q":0,"from":"system.adapter.sonos.0","lc":1478523507810} host. 2016-11-07 13:58:27.810 debug redis publish io.system.adapter.sonos.0.memHeapTotal {"val":58.23,"ack":true,"ts":1478523507810,"q":0,"from":"system.adapter.sonos.0","lc":1478523507810} host. 2016-11-07 13:58:27.810 debug redis publish io.system.adapter.sonos.0.memRss {"val":65.48,"ack":true,"ts":1478523507810,"q":0,"from":"system.adapter.sonos.0","lc":1478523507810} host. 2016-11-07 13:58:27.810 debug redis publish io.system.adapter.sonos.0.connected {"val":true,"ack":true,"ts":1478523507810,"q":0,"from":"system.adapter.sonos.0","lc":1478523492795} host. 2016-11-07 13:58:27.810 debug redis publish io.system.adapter.sonos.0.alive {"val":true,"ack":true,"ts":1478523507810,"q":0,"from":"system.adapter.sonos.0","lc":1478523492795} host.SERVER 2016-11-07 13:58:27.279 info instance system.adapter.sayit.0 started with pid 14260 host.SERVER 2016-11-07 13:58:24.795 info instance system.adapter.sayit.0 terminated with code null () host.SERVER 2016-11-07 13:58:24.795 warn instance system.adapter.sayit.0 terminated due to SIGTERM host.SERVER 2016-11-07 13:58:24.748 info stopInstance system.adapter.sayit.0 killing pid 6876 host.SERVER 2016-11-07 13:58:24.748 info stopInstance system.adapter.sayit.0 host.SERVER 2016-11-07 13:58:24.748 info object change system.adapter.sayit.0 host. 2016-11-07 13:58:13.576 debug redis pmessage io.sonos.0.* io.sonos.0.root.192_168_30_17.state {"val":"stop","ack":true,"ts":1478523493560,"q":0,"from":"system.adapter.sonos.0","lc":1478418107707} host. 2016-11-07 13:58:13.576 debug redis pmessage io.sonos.0.* io.sonos.0.root.192_168_30_17.state_simple {"val":false,"ack":true,"ts":1478523493560,"q":0,"from":"system.adapter.sonos.0","lc":1478418107707} host. 2016-11-07 13:58:13.576 debug redis pmessage io.sonos.0.* io.sonos.0.root.192_168_30_17.alive {"val":true,"ack":true,"ts":1478523493560,"q":0,"from":"system.adapter.sonos.0","lc":1478418466905} host. 2016-11-07 13:58:13.560 debug redis publish io.sonos.0.root.192_168_30_17.state {"val":"stop","ack":true,"ts":1478523493560,"q":0,"from":"system.adapter.sonos.0","lc":1478418107707} host. 2016-11-07 13:58:13.560 debug redis publish io.sonos.0.root.192_168_30_17.state_simple {"val":false,"ack":true,"ts":1478523493560,"q":0,"from":"system.adapter.sonos.0","lc":1478418107707} host. 2016-11-07 13:58:13.560 debug redis publish io.sonos.0.root.192_168_30_17.alive {"val":true,"ack":true,"ts":1478523493560,"q":0,"from":"system.adapter.sonos.0","lc":1478418466905} sonos.0 2016-11-07 13:58:13.560 debug > playbackState: STOPPED - x-sonosapi-stream:s68932?sid=254&flags=32 sonos.0 2016-11-07 13:58:13.529 debug group-mute {"uuid":"RINCON_000E5828E4E601400","previousMute":false,"newMute":false,"roomName":"Esszimmer/Küche"} host. 2016-11-07 13:58:13.295 debug redis pmessage io.sonos.0.* io.sonos.0.root.192_168_30_17.alive {"val":true,"ack":true,"ts":1478523493264,"q":0,"from":"system.adapter.sonos.0","lc":1478418466905} host. 2016-11-07 13:58:13.264 debug redis publish io.sonos.0.root.192_168_30_17.alive {"val":true,"ack":true,"ts":1478523493264,"q":0,"from":"system.adapter.sonos.0","lc":1478418466905} host. 2016-11-07 13:58:12.967 debug redis get sonos.0.root.192_168_30_17.remove_from_group ok: {"val":"","ack":false,"ts":1478418466608,"q":0,"from":"system.adapter.sonos.0","lc":1478418082536} host. 2016-11-07 13:58:12.967 debug redis get sonos.0.root.192_168_30_17.add_to_group ok: {"val":"","ack":false,"ts":1478418466608,"q":0,"from":"system.adapter.sonos.0","lc":1478418082536} sonos.0 2016-11-07 13:58:12.935 info http sonos server listening on port 8080 host. 2016-11-07 13:58:12.810 debug redis psubscribe io.sonos.0.* host. 2016-11-07 13:58:12.795 debug redis mget 1 1 host. 2016-11-07 13:58:12.795 debug redis publish io.system.adapter.sonos.0.uptime {"val":3,"ack":true,"ts":1478523492795,"q":0,"from":"system.adapter.sonos.0","lc":1478523492795} host. 2016-11-07 13:58:12.795 debug redis publish io.system.adapter.sonos.0.memHeapUsed {"val":26.72,"ack":true,"ts":1478523492795,"q":0,"from":"system.adapter.sonos.0","lc":1478523492795} host. 2016-11-07 13:58:12.795 debug redis publish io.system.adapter.sonos.0.memHeapTotal {"val":55.29,"ack":true,"ts":1478523492795,"q":0,"from":"system.adapter.sonos.0","lc":1478523492795} host. 2016-11-07 13:58:12.795 debug redis publish io.system.adapter.sonos.0.memRss {"val":53.52,"ack":true,"ts":1478523492795,"q":0,"from":"system.adapter.sonos.0","lc":1478523492795} host. 2016-11-07 13:58:12.795 debug redis publish io.system.adapter.sonos.0.connected {"val":true,"ack":true,"ts":1478523492795,"q":0,"from":"system.adapter.sonos.0","lc":1478523492795} host. 2016-11-07 13:58:12.795 debug redis publish io.system.adapter.sonos.0.alive {"val":true,"ack":true,"ts":1478523492795,"q":0,"from":"system.adapter.sonos.0","lc":1478523492795} host. 2016-11-07 13:58:12.795 debug redis keys 1 *.logging sonos.0 2016-11-07 13:58:12.779 info starting. Version 1.2.0 in C:/Program Files/ioBroker/node_modules/iobroker.sonos, node: v4.6.0 host. 2016-11-07 13:58:12.748 debug redis get system.adapter.sonos.0.alive ok: {"val":false,"ack":true,"ts":1478523487014,"q":0,"from":"system.host.SERVER","lc":1478523487014} host. 2016-11-07 13:58:12.732 info States connected to redis 127.0.0.1:6379 sonos.0 2016-11-07 13:58:12.717 debug statesDB connected sonos.0 2016-11-07 13:58:12.685 debug objectDB connected host.SERVER 2016-11-07 13:58:09.498 info instance system.adapter.sonos.0 started with pid 21560 host.SERVER 2016-11-07 13:58:07.014 info instance system.adapter.sonos.0 terminated with code null ()
-
Was mir hier auffällt:
Der JavaScript-Adapter versucht auf eine 2. Sayit Instanz zuzugreifen. Die gibt es wahrscheinlich gar nicht.
javascript.0 2016-11-07 13:58:39.357 warn State "sayit.1.tts.text" not found
Sonst passiert alles auf sayit.0, dieser Zugriff passiert auf sayit.1
lg
Günther
-
Hallo Günther,
ja, das liegt daran, weil ein anderes Script auf sayit.1 zugreift.
Ich habe mittlerweile zu Testzwecken die sayit.1 Instanz entfernt, um den Fehler eingrenzen zu können.
Mein Klingelscript weiter oben hat aber damit nix zu tun und sollte eigentlich funktionieren mit sayit.0… tut es aber leider nicht.
-
So, ich habe jetzt meine komplette iobroker Installation geplättet.
iobroker deinstalliert
nodejs deinstalliert
Den iobroker Ordner + sämtliche Reste in der Registry entfernt
Server neu gestartet und alles komplett frisch mit dem Windows Installer 0.8 von der website installiert.
Die Adapter habe ich 1:1 wieder so eingerichtet wie zuvor.
Das Problem besteht weiterhin…
Das o.g. Klingelscript bewirkt gar nichts... als ob es gar nicht existieren würde.
Wie kann ich überprüfen ob die Script Engine auf Objects-Änderungen reagiert ?
Wie kann ich sonst noch den Fehler eingrenzen ?
-
kann es vielleicht sein, das der "PRESS_SHORT" nicht funktioniert?
Ich habe das aktuell auch bei einem 2-fach Schalter. Der PRESS_SHORT löst nichts aus.
leg den subscribe doch mal auf den Datenpunkt "INSTALL_TEST.
-
sehen kannst du das sonst auch wenn du im ioBroker Admin unter Zustände mal in der Spalte ID auf die Seriennummer des Gerätes filterst. Dann hast du alle Datenpunkte des Aktors mit ihren Zuständen. Und bei mir sind die Zeilen bei PRESS_SHORT, PRESS_LONG und PRESS_CONT für das Gerät alle leer.
Ich hab mich aber noch nicht weiter darum gekümmert, weil ich das Gerät im Moment nur zum Testen nutze, und da reicht mir der Datenpunkt INSTALL_TEST. (den löst du übrigens auch mit einem kurzen druck aus)
-
Auch wenn ich im Script anstatt PRESS_SHORT INSTALL_TEST versuche, ändert sich nichts…
Es wird nichts getriggert. Obwohl er bei jedem Tastendruck die Uhrzeit in der Spalte "Geändert" aber schon aktualisiert, also iobroker bekommt es sofort mit wenn die Taste gedrückt wird. Nur leider anscheinend die Script Engine nicht ...
Die Zustände schauen so aus:
-
Und so?
on({id: "hm-rpc.3.LEQxxxxxxx.1.PRESS_SHORT"/*Taster_Haustuer_Klingel.PRESS_SHORT*/, change: 'any'}, esklingelt);
-
tut sich auch nichts:
-
tut sich auch nichts:
klingel_log.PNG `
Das kann nicht sein, dann ist dein JS adapter disabled oder Skript disabled oder ID ist falsch. -
Hi Bluefox,
es verhält sich genau so als ob entweder der JS Adapter disabled wäre, das Script disabled wäre oder die ID falsch wäre.
Das Problem ist nur, keines diese Dinge trifft zu:
Hab echt keinen Plan mehr wo das Problem noch liegen könnte
Vorallem, hat das Script so ja mehrere Wochen ohne Probleme funktioniert…
-
Wenn du einfach im Script ganz vorne schreibst:
console.log('PRESS_SHORT = ' + getState("hm-rpc.3.LEQ0117522.1.PRESS_SHORT").val); on({id: "hm-rpc.0.LEQ0117522.1.PRESS_SHORT", change: 'any'}, function (obj) { console.log('PRESS_SHORT'); });
Was ist mit log wenn du Knopf kurz druckst?
Übrigens: du hast manchmal "hm-rpc.3.LEQxxxxxxx.1.PRESS_SHORT", manchmal "hm-rpc.0.LEQxxxxxxx.1.PRESS_SHORT". Hast du das im Griff?
-
Hallo zusammen,
Bei mir ist ein ähnliches Verhalten festzustellen.
Ich persönlich glaube jedoch, dass das auf den Sonos Adapter zurückzuführen ist. Ich habe seit ca. Drei Monaten unverändert ein Script am Laufen mithilfe dessen ich über einen HM-PB-4Dis-WM-2 sechs Radiosender, lauter leiser und mute schalte.
Lauter,leiser und mute werden perfekt ausgeführt, aber der press_short der die favorite_set setzt wird nicht! ausgeführt. Auffällig ist, das seit einiger Zeit in den States von Sonos keine favorite_list mehr angezeigt wird, genauso wie Informationen über den Interpreten oder sonstige Infos. Und ich glaube, dass sich dieses Verhalten eingeschlichen hat über die letzte oder vorletzte Version des Adapters in der auch die npm packages upgedatet wurden.
Außerdem ist in der Admin / Adapter Liste unter Version die 0.2.2 und unter installed die 1.2.0 eingetragen.
Außerdem fällt auf, dass manche werte im Sonos Adapter rot sind und ich habe erst kürzlich gelernt, dass das kein gutes Zeichen ist. -
Wenn du einfach im Script ganz vorne schreibst:
console.log('PRESS_SHORT = ' + getState("hm-rpc.0.LEQ0117522.1.PRESS_SHORT").val); on({id: "hm-rpc.0.LEQ0117522.1.PRESS_SHORT", change: 'any'}, function (obj) { console.log('PRESS_SHORT'); });
Was ist mit log wenn du Knopf kurz druckst? `
Hi Bluefox,
nachdem ich deinen console.log Code in das Script eingefügt hatte, hatte ich plötzlich wieder eine Ausgabe über Sonos ?!?
Wie kann das sein ???
Und das seltsame ist, wenn ich deinen Code aus dem Script wieder entferne, funktioniert die Ausgabe jetzt trotzdem … mit genau demselben Script, mit dem es vorher tagelang nicht funktioniert hat ... ?!?
Die Ausgabe mit deinem Code im log ist übrigens so:
Die Log Ausgabe ist aber soweit ich mich Erinnern kann immer noch nicht so wie sie sein sollte, eben mit dem Unterschied dass ich jetzt aber die Ausgabe hören kann…
Übrigens: du hast manchmal "hm-rpc.3.LEQxxxxxxx.1.PRESS_SHORT", manchmal "hm-rpc.0.LEQxxxxxxx.1.PRESS_SHORT". Hast du das im Griff? `
Ja, das habe ich im Griff. Da ich iobroker komplett neuinstalliert und eingerichtet habe, haben sich die hm-rpc instanzen verschoben.
Diese habe ich aber alle entsprechend angepasst…
Zusätzlich ist mir heute aufgefallen, dass ich in Blockly keine Sendto Blöcke ziehen kann, weil der Sendto Bereich leer ist ... ?!?
-
Und wenn du Telegram installierst, erscheinen dann die Blöcke?