NEWS
Hm-rpc 1.2.0
-
Welche CCU FW Version ?? `
2.19.9 -
Unterschied BIN -RPC und XML-RPC
was ist der unterschied zwischen den beiden Einstellungen und wann sollte welche genommen werden ?
Gruß Stephan
-
Unterschied BIN -RPC und XML-RPC `
BIN-RPC belastet die CPU weniger als XML-RPC und sollte daher bevorzugt werden, wenn es funktioniert. -
Tja, habe leider auch auf 1.20 Update gedrückt. Auch XML hat dann nicht mehr funktioniert. Jetzt läuft die Wiederherstellung vom Timemachine Backup von 14 Uhr und bringt alles wieder in Ordnung :evil: :lol:
-
was genau funktioniert denn bei Euch nicht?
Ich musste zwar, wegen doppelter Datenpunkte die Adapter HM-Rega und HM-Rpc neu installieren, aber seitdem… Alles gut
Allerdings passiert im Sommer ja auch nicht so wahnsinnig viel bei mir. die Heizung läuft nicht und Lichter müssen auch noch nicht an sein.
Aber die Adapter liefern brav alle Werte...
-
Hab heute auch geupdated. BIN RPC läuft XML auch. Folgende Fehler bleiben, also waren vorher auch schon.
1. Jalousie Status wird bei Neustart von Iobroker nicht eingelesen
2. Bei Bin RPC fehlen die Namen der Geräte
Die CCU läuft auf 2.17.15.
Gesendet via Tapatalk.
-
Hallo,
habe ja auf ein Backup vor dem Update zurückgespielt (hm-rpc 1.1.3). Leider seitdem trotzdem Fehler:
2016-06-21 22:06:57.129 - [31merror[39m: hm-rpc.0 Error: XML-RPC fault: ping: unknown method name 2016-06-21 22:08:27.130 - [31merror[39m: hm-rpc.0 Error: XML-RPC fault: ping: unknown method name
`2016-06-21 21:36:20.053 - [32minfo[39m: host.MacMini-Ethernet.fritz.box instance system.adapter.hm-rpc.0 started with pid 3024 2016-06-21 21:36:20.585 - [32minfo[39m: hm-rpc.0 starting. Version 1.1.3 in /Users/pix/Documents/iobroker/node_modules/iobroker.hm-rpc 2016-06-21 21:36:20.780 - [32minfo[39m: hm-rpc.0 binrpc server is trying to listen on 192.168.178.38:3000 2016-06-21 21:36:20.781 - [32minfo[39m: hm-rpc.0 binrpc -> 192.168.178.33:2001 init ["xmlrpc_bin://192.168.178.38:3000","hm-rpc.0"] 2016-06-21 21:36:20.794 - [32minfo[39m: hm-rpc.0 binrpc <- listDevices ["hm-rpc.0"] 2016-06-21 21:36:20.832 - [32minfo[39m: hm-rpc.0 binrpc -> 371 devices 2016-06-21 21:36:23.877 - [31merror[39m: uncaught exception: Cannot read property '2' of undefined 2016-06-21 21:36:23.879 - [31merror[39m: TypeError: Cannot read property '2' of undefined at handleCall (/Users/pix/Documents/iobroker/node_modules/iobroker.hm-rpc/node_modules/binrpc/lib/server.js:74:48) at Socket. <anonymous>(/Users/pix/Documents/iobroker/node_modules/iobroker.hm-rpc/node_modules/binrpc/lib/server.js:55:22) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at readableAddChunk (_stream_readable.js:146:16) at Socket.Readable.push (_stream_readable.js:110:10) at TCP.onread (net.js:523:20) 2016-06-21 21:36:23.880 - [32minfo[39m: hm-rpc.0 binrpc -> 192.168.178.33:2001 init ["xmlrpc_bin://192.168.178.38:3000",""] 2016-06-21 21:36:23.951 - [32minfo[39m: hm-rpc.0 terminating[/code]</anonymous>` Gruß Pix Edit: Nach Neustart CCU1 hetzt keine Verbindung mehr über HM-RPC.0 (ccu1)
-
Ich habe 1.3.0 auf dem git gemacht.
Kann jemand prüfen? Da habe ich das Problem mit bin-rpc gelöst.
-
@pix:Hallo,
habe ja auf ein Backup vor dem Update zurückgespielt (hm-rpc 1.1.3). Leider seitdem trotzdem Fehler:
2016-06-21 22:06:57.129 - [31merror[39m: hm-rpc.0 Error: XML-RPC fault: ping: unknown method name 2016-06-21 22:08:27.130 - [31merror[39m: hm-rpc.0 Error: XML-RPC fault: ping: unknown method name
`2016-06-21 21:36:20.053 - [32minfo[39m: host.MacMini-Ethernet.fritz.box instance system.adapter.hm-rpc.0 started with pid 3024 2016-06-21 21:36:20.585 - [32minfo[39m: hm-rpc.0 starting. Version 1.1.3 in /Users/pix/Documents/iobroker/node_modules/iobroker.hm-rpc 2016-06-21 21:36:20.780 - [32minfo[39m: hm-rpc.0 binrpc server is trying to listen on 192.168.178.38:3000 2016-06-21 21:36:20.781 - [32minfo[39m: hm-rpc.0 binrpc -> 192.168.178.33:2001 init ["xmlrpc_bin://192.168.178.38:3000","hm-rpc.0"] 2016-06-21 21:36:20.794 - [32minfo[39m: hm-rpc.0 binrpc <- listDevices ["hm-rpc.0"] 2016-06-21 21:36:20.832 - [32minfo[39m: hm-rpc.0 binrpc -> 371 devices 2016-06-21 21:36:23.877 - [31merror[39m: uncaught exception: Cannot read property '2' of undefined 2016-06-21 21:36:23.879 - [31merror[39m: TypeError: Cannot read property '2' of undefined at handleCall (/Users/pix/Documents/iobroker/node_modules/iobroker.hm-rpc/node_modules/binrpc/lib/server.js:74:48) at Socket. <anonymous>(/Users/pix/Documents/iobroker/node_modules/iobroker.hm-rpc/node_modules/binrpc/lib/server.js:55:22) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at readableAddChunk (_stream_readable.js:146:16) at Socket.Readable.push (_stream_readable.js:110:10) at TCP.onread (net.js:523:20) 2016-06-21 21:36:23.880 - [32minfo[39m: hm-rpc.0 binrpc -> 192.168.178.33:2001 init ["xmlrpc_bin://192.168.178.38:3000",""] 2016-06-21 21:36:23.951 - [32minfo[39m: hm-rpc.0 terminating[/code]</anonymous>` Gruß Pix Edit: Nach Neustart CCU1 hetzt keine Verbindung mehr über HM-RPC.0 (ccu1) Da kommen unerwartete Daten vom CCU. Kannst du _~~[i]~~/opt/iobroker/node_modules/iobroker.hm-rpc/node_modules/binrpc/lib/server.js[/i]_ ändern (ab Zeile 70): von `~~[code]~~ // reorder WORKING datapoint for (var i = 0; i < request.params[0].length; i++) { if (request.params[0][i].params[2] === 'WORKING') { request.params[0][0] = request.params[0].splice(i, 1, request.params[0][0])[0]; } }` auf `~~[code]~~ // reorder WORKING datapoint for (var i = 0; i < request.params[0].length; i++) { if (request.params[0][i].params && request.params[0][i].params[2] === 'WORKING') { request.params[0][0] = request.params[0].splice(i, 1, request.params[0][0])[0]; } }` [/i][/i][/code][/i][/code] ``` `
-
Hallo
ich versuche es. Bisher bin ich noch mit der Installation beschäftigt
1.3.0 bin-rpc funktioniert bei mir.
Daten werden von der CCU empfangen.
Danke für die Reparatur
hm-rpc-0 2016-06-23 22:58:51.987 info Connected hm-rpc-0 2016-06-23 22:58:50.118 info binrpc -> 680 devices hm-rpc-0 2016-06-23 22:58:49.942 info binrpc <- listDevices ["hm-rpc.0"] hm-rpc-0 2016-06-23 22:58:49.924 info binrpc <- system.listMethods ["hm-rpc.0"] hm-rpc-0 2016-06-23 22:58:49.890 info Connected. Send init... hm-rpc-0 2016-06-23 22:58:49.685 info 1 Init binrc... hm-rpc-0 2016-06-23 22:58:49.681 info binrpc client is trying to connect to 192.168.1.55:2001 with ["xmlrpc_bin://192.168.1.161:2001","hm-rpc.0"] hm-rpc-0 2016-06-23 22:58:49.679 info binrpc server is trying to listen on 192.168.1.161:2001 hm-rpc-0 2016-06-23 22:58:48.547 info starting. Version 1.3.0 in /opt/iobroker/node_modules/iobroker.hm-rpc host-raspi-3 2016-06-23 22:58:47.286 info instance system.adapter.hm-rpc.0 started with pid 31917 host-raspi-3 2016-06-23 22:58:44.852 info instance system.adapter.hm-rpc.0 terminated with code 0 (OK) hm-rpc-0 2016-06-23 22:58:44.822 info terminating
-
Habe wie immer direkt in der produktiven Umgebung upgedatet.
Keine Fehlermeldung im Log.
Umgeschaltet auf BIN
hm-rpc-1 2016-06-23 22:57:28.427 warn No image for "HM-RC-2-PBU-FM" found. hm-rpc-1 2016-06-23 22:57:28.427 warn No image for "HM-PB-2-FM" found. hm-rpc-1 2016-06-23 22:57:28.426 warn No image for "HM-PB-2-FM" found. hm-rpc-1 2016-06-23 22:57:28.426 warn No image for "HM-PB-2-FM" found. hm-rpc-1 2016-06-23 22:57:28.416 warn No image for "ZEL STG RM FDK" found. hm-rpc-1 2016-06-23 22:57:28.416 warn No image for "ZEL STG RM FDK" found. hm-rpc-1 2016-06-23 22:57:28.415 warn No image for "ZEL STG RM FDK" found. hm-rpc-1 2016-06-23 22:57:28.414 warn No image for "ZEL STG RM FDK" found. hm-rpc-1 2016-06-23 22:57:28.408 info binrpc <- newDevices 382 hm-rpc-1 2016-06-23 22:57:25.365 info Connected hm-rpc-1 2016-06-23 22:57:25.185 info binrpc -> 0 devices hm-rpc-1 2016-06-23 22:57:25.132 info binrpc <- listDevices ["hm-rpc.1"] hm-rpc-1 2016-06-23 22:57:25.117 info binrpc <- system.listMethods ["hm-rpc.1"] hm-rpc-1 2016-06-23 22:57:25.093 info Connected. Send init... hm-rpc-1 2016-06-23 22:57:24.886 info 1 Init binrc... hm-rpc-1 2016-06-23 22:57:24.882 info binrpc client is trying to connect to 192.168.138.52:2001 with ["xmlrpc_bin://192.168.138.44:2001","hm-rpc.1"] hm-rpc-1 2016-06-23 22:57:24.879 info binrpc server is trying to listen on 192.168.138.44:2001 hm-rpc-1 2016-06-23 22:57:24.205 info starting. Version 1.3.0 in /opt/iobroker/node_modules/iobroker.hm-rpc host-Test-Pi3 2016-06-23 22:57:22.896 info instance system.adapter.hm-rpc.1 started with pid 31010
Sieht gut aus, (trotz lxccu )
Mal überwachen, ob die Daten auch aktualisiert werden
Gruß
Rainer
-
Wer hat die Bilder für: ZEL STG RM FDK, HM-PB-2-FM und HM-RC-2-PBU-FM?
angelnu?
-
Der Zel ist ein tfk nur von Roto
Gruß
Rainer
-
Hallo Bluefox,
ich hab die Version 1.3.0 installiert und mit mehreren Aktoren ausprobiert.
Mit einfachen Schaltaktoren klappt die Übertragung in beide Richtungen.
Problem ist auch hier der Jalousie-Aktor. Damit klappt es bei mir leider noch nicht.
Wenn ich den Wert für level in VIS ändere, wird dieser korrekt übertragen.
Wenn ich die Jalousie von Hand oder in der Homematic ändere, kam jedoch nur eine Änderung auf 0 (komplett zu) durch. Alle anderen Änderungen werden nicht übertragen.
Gruß
Markus
-
Ich hab jetzt auch den Grund gefunden, warum die Level-Werte falsch sind:
Es fehlt die Sonderlogik für Unit=100% in der neuen Version.
Statt 45% oder 100% wird nun als Level 0.45 % oder 1 % eingetragen.
-
Da kommen unerwartete Daten vom CCU.
Kannst du /opt/iobroker/node_modules/iobroker.hm-rpc/node_modules/binrpc/lib/server.js ändern (ab Zeile 70):
von
`// reorder WORKING datapoint for (var i = 0; i < request.params[0].length; i++) { if (request.params[0][i].params[2] === 'WORKING') { request.params[0][0] = request.params[0].splice(i, 1, request.params[0][0])[0]; } }` auf `~~[code]~~ // reorder WORKING datapoint for (var i = 0; i < request.params[0].length; i++) { if (request.params[0][i].params && request.params[0][i].params[2] === 'WORKING') { request.params[0][0] = request.params[0].splice(i, 1, request.params[0][0])[0]; } }` Erledigt. HM-RPC und HM-REGA vorher angehalten. Warte Änderungen ab. Danke, Pix ~~[color]~~ EDIT:[/color] XML Verbindung brachte weiterhin Fehler: `~~[code]~~2016-06-24 11:57:19.970 - [31merror[39m: hm-rpc.0 Error: XML-RPC fault: ping: unknown method name[/code]` Umstellung auf BIN-RPC funktionierte danach tadellos. Keine Fehler ausser dem obligatorischen `~~[code]~~2016-06-24 11:58:40.865 - [33mwarn[39m: hm-rpc.1 No image for "HM-TC-IT-WM-W-EU" found.[/code]` :lol: Somit sind auch Fehler beim Auslesen der Stromzähler und beim Schreiben der LED16-Anzeige wieder korrigiert. Danke![/code][/code][/i][/i][/code][/i] ``` `
-
Ich hab jetzt auch den Grund gefunden, warum die Level-Werte falsch sind:
Es fehlt die Sonderlogik für Unit=100% in der neuen Version.
Statt 45% oder 100% wird nun als Level 0.45 % oder 1 % eingetragen.
filename="levelbug.png" index="0">~~ `
Kannst du das Objekt hier Posten? -
Was benötigst du genau?
Hier erstmal ein Export eines Jalousieaktors von der Admin-Seite:
! {"hm-rpc.0.MEQ0735184.1":{"_id":"hm-rpc.0.MEQ0735184.1","type":"channel","common":{"name":"HM-LC-Bl1PBU-FMMEQ0735184:1","role":"blind","icon":"/icons/PushButton-2ch-wm_thumb.png"},"native":{"ADDRESS":"MEQ0735184:1","AES_ACTIVE":0,"DIRECTION":2,"FLAGS":1,"INDEX":1,"LINK_SOURCE_ROLES":"","LINK_TARGET_ROLES":"SWITCHWEATHER_CS","PARAMSETS":["LINK","MASTER","VALUES"],"PARENT":"MEQ0735184","PARENT_TYPE":"HM-LC-Bl1PBU-FM","TYPE":"BLIND","VERSION":8}},"hm-rpc.0.MEQ0735184.0":{"_id":"hm-rpc.0.MEQ0735184.0","type":"channel","common":{"name":"RolloWohnzOst1:0","icon":"/icons/PushButton-2ch-wm_thumb.png"},"native":{"ADDRESS":"MEQ0735184:0","AES_ACTIVE":0,"DIRECTION":0,"FLAGS":3,"INDEX":0,"LINK_SOURCE_ROLES":"","LINK_TARGET_ROLES":"","PARAMSETS":["MASTER","VALUES"],"PARENT":"MEQ0735184","PARENT_TYPE":"HM-LC-Bl1PBU-FM","TYPE":"MAINTENANCE","VERSION":8}},"hm-rpc.0.MEQ0735184":{"_id":"hm-rpc.0.MEQ0735184","type":"device","common":{"name":"RolloWohnzOst1","role":"blind","icon":"/icons/PushButton-2ch-wm_thumb.png"},"native":{"ADDRESS":"MEQ0735184","AVAILABLE_FIRMWARE":"2.8","CHILDREN":["MEQ0735184:0","MEQ0735184:1"],"FIRMWARE":"2.8","FLAGS":1,"INTERFACE":"LEQ0418982","PARAMSETS":["MASTER"],"PARENT":"","RF_ADDRESS":4093332,"ROAMING":0,"RX_MODE":1,"TYPE":"HM-LC-Bl1PBU-FM","UPDATABLE":1,"VERSION":8}},"hm-rpc.0.MEQ0735184.0.AES_KEY":{"type":"state","common":{"def":0,"type":"number","read":true,"write":false,"min":0,"max":127,"role":"value","name":"RolloWohnzOst1:0.AES_KEY"},"native":{"DEFAULT":0,"FLAGS":0,"ID":"AES_KEY","MAX":127,"MIN":0,"OPERATIONS":1,"TAB_ORDER":8,"TYPE":"INTEGER","UNIT":""},"_id":"hm-rpc.0.MEQ0735184.0.AES_KEY"},"hm-rpc.0.MEQ0735184.0.CONFIG_PENDING":{"type":"state","common":{"def":false,"type":"boolean","read":true,"write":false,"role":"indicator","name":"RolloWohnzOst1:0.CONFIG_PENDING"},"native":{"DEFAULT":false,"FLAGS":9,"ID":"CONFIG_PENDING","MAX":true,"MIN":false,"OPERATIONS":5,"TAB_ORDER":2,"TYPE":"BOOL","UNIT":""},"_id":"hm-rpc.0.MEQ0735184.0.CONFIG_PENDING"},"hm-rpc.0.MEQ0735184.0.DEVICE_IN_BOOTLOADER":{"type":"state","common":{"def":false,"type":"boolean","read":true,"write":false,"name":"RolloWohnzOst1:0.DEVICE_IN_BOOTLOADER"},"native":{"DEFAULT":false,"FLAGS":9,"ID":"DEVICE_IN_BOOTLOADER","MAX":true,"MIN":false,"OPERATIONS":5,"TAB_ORDER":6,"TYPE":"BOOL","UNIT":""},"_id":"hm-rpc.0.MEQ0735184.0.DEVICE_IN_BOOTLOADER"},"hm-rpc.0.MEQ0735184.0.DUTYCYCLE":{"type":"state","common":{"def":false,"type":"boolean","read":true,"write":false,"role":"value","name":"RolloWohnzOst1:0.DUTYCYCLE"},"native":{"DEFAULT":false,"FLAGS":9,"ID":"DUTYCYCLE","MAX":true,"MIN":false,"OPERATIONS":5,"TAB_ORDER":3,"TYPE":"BOOL","UNIT":""},"_id":"hm-rpc.0.MEQ0735184.0.DUTYCYCLE"},"hm-rpc.0.MEQ0735184.0.RSSI_DEVICE":{"type":"state","common":{"def":0,"type":"number","read":true,"write":false,"min":-2147483648,"max":2147483647,"role":"value","name":"RolloWohnzOst1:0.RSSI_DEVICE"},"native":{"DEFAULT":0,"FLAGS":1,"ID":"RSSI_DEVICE","MAX":2147483647,"MIN":-2147483648,"OPERATIONS":5,"TAB_ORDER":4,"TYPE":"INTEGER","UNIT":""},"_id":"hm-rpc.0.MEQ0735184.0.RSSI_DEVICE"},"hm-rpc.0.MEQ0735184.0.RSSI_PEER":{"type":"state","common":{"def":0,"type":"number","read":true,"write":false,"min":-2147483648,"max":2147483647,"role":"value.rssi","name":"RolloWohnzOst1:0.RSSI_PEER"},"native":{"DEFAULT":0,"FLAGS":1,"ID":"RSSI_PEER","MAX":2147483647,"MIN":-2147483648,"OPERATIONS":5,"TAB_ORDER":5,"TYPE":"INTEGER","UNIT":""},"_id":"hm-rpc.0.MEQ0735184.0.RSSI_PEER"},"hm-rpc.0.MEQ0735184.0.STICKY_UNREACH":{"type":"state","common":{"def":false,"type":"boolean","read":true,"write":true,"role":"indicator.unreach","name":"RolloWohnzOst1:0.STICKY_UNREACH"},"native":{"DEFAULT":false,"FLAGS":25,"ID":"STICKY_UNREACH","MAX":true,"MIN":false,"OPERATIONS":7,"TAB_ORDER":1,"TYPE":"BOOL","UNIT":""},"_id":"hm-rpc.0.MEQ0735184.0.STICKY_UNREACH"},"hm-rpc.0.MEQ0735184.0.UNREACH":{"type":"state","common":{"def":false,"type":"boolean","read":true,"write":false,"role":"indicator.unreach","name":"RolloWohnzOst1:0.UNREACH"},"native":{"DEFAULT":false,"FLAGS":9,"ID":"UNREACH","MAX":true,"MIN":false,"OPERATIONS":5,"TAB_ORDER":0,"TYPE":"BOOL","UNIT":""},"_id":"hm-rpc.0.MEQ0735184.0.UNREACH"},"hm-rpc.0.MEQ0735184.0.UPDATE_PENDING":{"type":"state","common":{"def":false,"type":"boolean","read":true,"write":false,"name":"RolloWohnzOst1:0.UPDATE_PENDING"},"native":{"DEFAULT":false,"FLAGS":9,"ID":"UPDATE_PENDING","MAX":true,"MIN":false,"OPERATIONS":5,"TAB_ORDER":7,"TYPE":"BOOL","UNIT":""},"_id":"hm-rpc.0.MEQ0735184.0.UPDATE_PENDING"},"hm-rpc.0.MEQ0735184.1.DIRECTION":{"type":"state","common":{"def":0,"type":"number","read":true,"write":false,"min":0,"max":3,"states":{"0":"NONE","1":"UP","2":"DOWN","3":"UNDEFINED"},"role":"indicator.direction","name":"HM-LC-Bl1PBU-FMMEQ0735184:1.DIRECTION"},"native":{"DEFAULT":0,"FLAGS":3,"ID":"DIRECTION","MAX":3,"MIN":0,"OPERATIONS":5,"TAB_ORDER":3,"TYPE":"ENUM","UNIT":"","VALUE_LIST":["NONE","UP","DOWN","UNDEFINED"]},"_id":"hm-rpc.0.MEQ0735184.1.DIRECTION"},"hm-rpc.0.MEQ0735184.1.INHIBIT":{"type":"state","common":{"def":false,"type":"boolean","read":true,"write":true,"role":"state.inhibit","name":"HM-LC-Bl1PBU-FMMEQ0735184:1.INHIBIT"},"native":{"CONTROL":"NONE","DEFAULT":false,"FLAGS":1,"ID":"INHIBIT","MAX":true,"MIN":false,"OPERATIONS":7,"TAB_ORDER":2,"TYPE":"BOOL","UNIT":""},"_id":"hm-rpc.0.MEQ0735184.1.INHIBIT"},"hm-rpc.0.MEQ0735184.1.INSTALL_TEST":{"type":"state","common":{"def":false,"type":"boolean","read":false,"write":true,"role":"indicator","name":"HM-LC-Bl1PBU-FMMEQ0735184:1.INSTALL_TEST"},"native":{"DEFAULT":false,"FLAGS":3,"ID":"INSTALL_TEST","MAX":true,"MIN":false,"OPERATIONS":2,"TAB_ORDER":4,"TYPE":"ACTION","UNIT":""},"_id":"hm-rpc.0.MEQ0735184.1.INSTALL_TEST"},"hm-rpc.0.MEQ0735184.1.LEVEL":{"type":"state","common":{"def":0,"type":"number","read":true,"write":true,"min":0,"max":100,"unit":"%","role":"level.blind","workingID":"WORKING","name":"HM-LC-Bl1PBU-FMMEQ0735184:1.LEVEL"},"native":{"CONTROL":"BLIND.LEVEL","DEFAULT":0,"FLAGS":1,"ID":"LEVEL","MAX":1,"MIN":0,"OPERATIONS":7,"TAB_ORDER":0,"TYPE":"FLOAT","UNIT":"100%"},"_id":"hm-rpc.0.MEQ0735184.1.LEVEL"},"hm-rpc.0.MEQ0735184.1.STOP":{"type":"state","common":{"def":false,"type":"boolean","read":false,"write":true,"role":"action.stop","name":"HM-LC-Bl1PBU-FMMEQ0735184:1.STOP"},"native":{"CONTROL":"BLIND.STOP","DEFAULT":false,"FLAGS":1,"ID":"STOP","MAX":true,"MIN":false,"OPERATIONS":2,"TAB_ORDER":1,"TYPE":"ACTION","UNIT":""},"_id":"hm-rpc.0.MEQ0735184.1.STOP"},"hm-rpc.0.MEQ0735184.1.WORKING":{"type":"state","common":{"def":false,"type":"boolean","read":true,"write":false,"role":"indicator.working","name":"HM-LC-Bl1PBU-FMMEQ0735184:1.WORKING"},"native":{"DEFAULT":false,"FLAGS":3,"ID":"WORKING","MAX":true,"MIN":false,"OPERATIONS":5,"TAB_ORDER":5,"TYPE":"BOOL","UNIT":""},"_id":"hm-rpc.0.MEQ0735184.1.WORKING"},"hm-rpc.0.MEQ0735184.0.CONFIG_PENDING_ALARM":{"type":"state","common":{"name":"AL-MEQ0735184:0.CONFIG_PENDING","type":"boolean","role":"indicator.alarm","read":true,"write":true,"def":false},"native":{"Name":"AL-MEQ0735184:0.CONFIG_PENDING","TypeName":"ALARM","DP":"12759"},"_id":"hm-rpc.0.MEQ0735184.0.CONFIG_PENDING_ALARM"},"hm-rpc.0.MEQ0735184.0.DEVICE_IN_BOOTLOADER_ALARM":{"type":"state","common":{"name":"AL-MEQ0735184:0.DEVICE_IN_BOOTLOADER","type":"boolean","role":"indicator.alarm","read":true,"write":true,"def":false},"native":{"Name":"AL-MEQ0735184:0.DEVICE_IN_BOOTLOADER","TypeName":"ALARM","DP":"12763"},"_id":"hm-rpc.0.MEQ0735184.0.DEVICE_IN_BOOTLOADER_ALARM"},"hm-rpc.0.MEQ0735184.0.DUTYCYCLE_ALARM":{"type":"state","common":{"name":"AL-MEQ0735184:0.DUTYCYCLE","type":"boolean","role":"indicator.alarm","read":true,"write":true,"def":false},"native":{"Name":"AL-MEQ0735184:0.DUTYCYCLE","TypeName":"ALARM","DP":"12767"},"_id":"hm-rpc.0.MEQ0735184.0.DUTYCYCLE_ALARM"},"hm-rpc.0.MEQ0735184.0.STICKY_UNREACH_ALARM":{"type":"state","common":{"name":"AL-MEQ0735184:0.STICKY_UNREACH","type":"boolean","role":"indicator.alarm","read":true,"write":true,"def":false},"native":{"Name":"AL-MEQ0735184:0.STICKY_UNREACH","TypeName":"ALARM","DP":"12773"},"_id":"hm-rpc.0.MEQ0735184.0.STICKY_UNREACH_ALARM"},"hm-rpc.0.MEQ0735184.0.UNREACH_ALARM":{"type":"state","common":{"name":"AL-MEQ0735184:0.UNREACH","type":"boolean","role":"indicator.alarm","read":true,"write":true,"def":false},"native":{"Name":"AL-MEQ0735184:0.UNREACH","TypeName":"ALARM","DP":"12777"},"_id":"hm-rpc.0.MEQ0735184.0.UNREACH_ALARM"},"hm-rpc.0.MEQ0735184.0.UPDATE_PENDING_ALARM":{"type":"state","common":{"name":"AL-MEQ0735184:0.UPDATE_PENDING","type":"boolean","role":"indicator.alarm","read":true,"write":true,"def":false},"native":{"Name":"AL-MEQ0735184:0.UPDATE_PENDING","TypeName":"ALARM","DP":"12781"},"_id":"hm-rpc.0.MEQ0735184.0.UPDATE_PENDING_ALARM"}}
-
Ich hab mal noch ein wenig nachgeforscht. Das Problem ist der folgende Code-Abschnitt:
event: function (err, params) { adapter.log.debug(adapter.config.type + 'rpc <- event ' + JSON.stringify(params)); var val; var channel = params[1].replace(':', '.'); var name = params[0] + '.' + channel + '.' + params[2]; if (dpTypes[name] && dpTypes[name].UNIT === '100%') { val = (params[3] * 100); } else { val = params[3]; }
Es wird versucht, mit dem Namen in dpTypes den Eintrag zu finden. Problem ist nur, dass kein Eintrag gefunden wird.
Hier der relevante Ausschnitt für einen der Aktoren:
! name: raspberrypi.hm-rpc.0.LEQ1438264.1.LEVEL New value:1
! dpTypes: {"hm-rpc.0.LEQ1438264.0.AES_KEY":{"UNIT":"","TYPE":"INTEGER"},"hm-rpc.0.LEQ1438264.0.CONFIG_PENDING":{"UNIT":"","TYPE":"BOOL"},"hm-rpc.0.LEQ1438264.0.DEVICE_IN_BOOTLOADER":{"UNIT":"","TYPE":"BOOL"},"hm-rpc.0.LEQ1438264.0.DUTYCYCLE":{"UNIT":"","TYPE":"BOOL"},"hm-rpc.0.LEQ1438264.0.RSSI_DEVICE":{"UNIT":"","TYPE":"INTEGER"},"hm-rpc.0.LEQ1438264.0.RSSI_PEER":{"UNIT":"","TYPE":"INTEGER"},"hm-rpc.0.LEQ1438264.0.STICKY_UNREACH":{"UNIT":"","TYPE":"BOOL"},"hm-rpc.0.LEQ1438264.0.UNREACH":{"UNIT":"","TYPE":"BOOL"},"hm-rpc.0.LEQ1438264.0.UPDATE_PENDING":{"UNIT":"","TYPE":"BOOL"},"hm-rpc.0.LEQ1438264.1.DIRECTION":{"UNIT":"","TYPE":"ENUM"},"hm-rpc.0.LEQ1438264.1.INHIBIT":{"UNIT":"","TYPE":"BOOL"},"hm-rpc.0.LEQ1438264.1.INSTALL_TEST":{"UNIT":"","TYPE":"ACTION"},"hm-rpc.0.LEQ1438264.1.LEVEL":{"UNIT":"100%","TYPE":"FLOAT"},"hm-rpc.0.LEQ1438264.1.STOP":{"UNIT":"","TYPE":"ACTION"},"hm-rpc.0.LEQ1438264.1.WORKING":{"UNIT":"","TYPE":"BOOL"}}Update:
Der Name, mit dem gesucht wird, enthält den Host-Namen der Instanz raspberrypi.hm-rpc.0.LEQ1438264.1.LEVEL,
Im Array sind die Werte aber nur ohne Host-Namen drin: hm-rpc.0.LEQ1438264.1.LEVEL
mfg
Markus
-
Hallo bluefox,
ich hab jetzt die hm-rpc.js so abgeändert, dass in den Methoden für das Setzen und Übertagen der Werte beim Zugriff auf dpTypes der Hostname ergänzt wird. Jetzt funktioniert bei mir die Übertagung wieder in beide Richtungen.
Keine Ahnung, ob die Änderung so in deinem Interesse ist, aber vielleicht hilft die Datei ja bei der Fehlerbereinigung.
Markus
632_hm-rpc.js