Ankündigung

Einklappen
Keine Ankündigung bisher.

smarthomeNG mit iobroker oder zwave.me verbinden

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Onkelandy
    antwortet
    Hab kein zwave, sorry

    Einen Kommentar schreiben:


  • TCr82
    antwortet
    Hi, sorry für die Abwesenheit. Ich bekomme das leider nicht immer alles mit, da mein Postfach überläuft.

    Also Node und Value hatte ich mir über das OpenZwave Control Panel besorgt... https://github.com/OpenZWave/open-zwave-control-panel

    Später hatte ich auch schon eine maginale WebGUI (also read-only) in SH.NG am laufen, leider habe ich den ganzen Code wieder rausgeschmissen. Es ist auch sehr schwierig solche "unfertigen" fragmente zu pushen , weswegen ich mir da auch erstmal keinen Stress machen wollte - es war sowieso gerade alles am entstehen im develop was das webgui angeht...

    Da ich selbst nur einen Schalter habe und der erst wieder an Weihnachten zum Einsatz kommt, habe ich da bis jetzt auch nicht mehr weiter gemacht.

    Bei mir müsste ich erst noch mal die aktuelle OpenZWave Python Lib als Debian/Ubuntu Paket bauen. Das hatte ich zwar durchlaufen lassen, aber ich weiss beim besten willen den aktuellen Stand nicht mehr - also ob es letztendlich funktioniert hat oder nicht - aber ich meine es gab irgendwelche Probleme...

    Code:
    root@zentrale:~# dpkg -l|grep zwave
    ii  libopenzwave1.5                       1.5+ds-5                                    amd64        API to use a Z-Wave controller
    ii  libopenzwave1.5-dev                   1.5+ds-5                                    amd64        header files for the openzwave library
    ii  openzwave-controlpanel                0.2a+git20170321.bbbd461-1~bionic           amd64        OpenZWave Control Panel
    ii  python3-openzwave                     0.4.4+git20180613.g5e318f3-1-bionic         amd64        python-openzwave is a python wrapper for the openzwave project.
    Schau mal ob du an die Werte Node / Value kommst. Ich hatte damals auch mit dem Zwave-Me Stick probleme. Hatte das extra auchmal mit IOBroker gegen getestet und da hatte es auch erst nicht funktioniert. Hatte mir dann die Software vom Hersteller besorgt um den Stick erstmal zu aktualisieren. Dann lief das alles erst.

    Siehe auch hier: https://knx-user-forum.de/forum/supp...11#post1161811
    Zuletzt geändert von TCr82; 06.08.2019, 23:53.

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    Hast du auf Debug Log gestellt? Beim Update eines Items, das beide Attribute hat, MUSS sich was tun - ob sich dann auf zwave was tut ist die andere Sache. Du musst halt den Itemwert ändern.
    Zuletzt geändert von Onkelandy; 12.07.2019, 07:04.

    Einen Kommentar schreiben:


  • Gersch
    antwortet
    Das Plugin ohne Fehler mit Version 1.4.2
    node_id: 2 --> das wäre bei mir der Dimmer
    value_id: 39

    Tut sich im Log gar nichts.
    Ich werde TCr82 nochmal eine PN schicken.

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    Was genau funktioniert jetzt?

    Einen Kommentar schreiben:


  • Gersch
    antwortet
    Ups, ich bin ein Trottel. Danke für den Hinweis. Jetzt funktioniert es.

    Hätte jetzt noch eine blöde Frage zum Forum. Da ich ja jetzt nur mehr bei den Items anstehe ist es sinnvoll, einen neues Thema zu eröffnen, da dies ja nicht mehr zu dieser Überschrift passt?

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    Probier doch mal node_id 2 und value_id 39 und setz das item abwechselnd auf 0 und 1. beobachte Debug log und deine Steckdose?

    Einen Kommentar schreiben:


  • Msinn
    antwortet
    Die Version 1.4.2 sollte schon richtig sein, so wie ich das auf github sehe. Du hast anscheinend nicht das ganze Plugin installiert, sondern nur die __inint__.py.

    Zum Z-Wave selbst kann ich nichts sagen, da ich kein Z-Wave im Einsatz habe.

    Einen Kommentar schreiben:


  • Gersch
    antwortet
    Hab das mal getestet mit folgendem ergebnis

    Code:
    ERROR    lib.metadata        plugin 'zwave' version differs between Python code (1.4.2) and metadata (1.4.1)
    Ich habe dann n der __init__.py die version von 1.4.2 auf 1.4.1 ausgebessert. Danach kam keine Fehlermeldung mehr.
    Oder habe ich da beim einspielen des plugins einen Fehler gemacht.
    Habe einfach die Datei kopiert und neu gestartet.

    Bei den items stehe ich komplett auf dem Schlauch. Ein item von einem 1-wire Fühler sieht ja z.B. so aus
    Code:
                ausentemp:
                    type: num
                    visu_acl: rw
                    ow_addr: 10.64B499020800
                    ow_sensor: T
    in der Zwave Beschreibung steht:
    zwave_node:
    type: str
    description:
    en: 'connects the item to the defined node'
    zwave_value:
    type: str
    description:
    en: 'connects the item to the defined value'
    Soweit ich das verstanden habe, sind die node die einzelnen Gerät, sprich bei mir ist node 1 der Master, node 2 ein Schwaiger dimmer, Node 3 ein fibaro Rauchmelder FGSD-02

    Der Rauchmelder hat auch einen Temperatursensor. Im iobrocker hab ich den angezeigt bekommen.

    Meine Gedanken sahen also mal so aus
    Code:
    Rauchmelder1:
                   zwave_node:3
                   type:str
                  ---und dann fehlt mir der Plan---
    Zuletzt geändert von bmx; 24.10.2022, 20:59.

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    Sorry
    Zeile 86 müsste heißen: self._logfile = '{}/var/log/{}'.format(self._sh.get_basedir(), logfile)

    Kannst du's dann bitte nochmals testen?

    Was hast du denn mit den Items schon alles probiert? Das Plugin kommt von TCr82 - vielleicht kann er helfen und wir können dann noch die Erkenntnisse in die README einfließen lassen?

    Einen Kommentar schreiben:


  • Gersch
    antwortet
    Hallo Onkelandy

    Sorry, das es so lange gedauert hat, aber ich musste wieder einmal ins Spital.
    Habe jetzt das aktuelle plugin (vers 1.4.2) gezogen. Leider startet da das plugin gar nicht mehr.

    I
    Code:
    2019-07-10  06:50:52 WARNING  __main__            Running in Python interpreter 'v3.5.3 final' (pid=637) on linux platform
    2019-07-10  06:51:01 WARNING  plugins.cli         CLI: You should set a password for this plugin.
    2019-07-10  06:51:03 ERROR    plugins.zwave       'ZWave' object has no attribute 'sh'
    2019-07-10  06:51:03 ERROR    lib.plugin          Plugins: Plugin 'zwave' initialization failed, plugin not loaded
    2019-07-10  06:51:05 WARNING  lib.item            load_itemdefinitions(): For testing the joined item structs are saved to /usr/local/smarthome/etc/structs_joined.yaml
    ich habe jetzt das alte plugin nochmal geladen und die zwei Zeilen von oben gelöscht.Plugin dürfte jetzt laufen und wird im backend auch angezeigt. Im log steht auch keine Fehlermeldung mehr.
    Bei config_path habe ich jetzt
    Code:
    /usr/local/lib/python3.5/dist-packages/python_openzwave/ozw_config
    eingegeben.

    Bleibt noch immer das Problem mit den items.
    Kann mir da vielleicht irgendjemand weiterhelfen bitte
    Zuletzt geändert von Gersch; 10.07.2019, 07:07.

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    zieh dir bitte die aktuellste develop version des plugins von GitHub. Da hab ich den Fehler ausgebessert. Ein Test wäre wichtig.

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    Hab leider keine Ahnung von zwave.

    Beim __init__.py lösch bitte die zwei Zeilen
    if not self.init_webinterface():
    self._init_complete = False

    Einen Kommentar schreiben:


  • Gersch
    antwortet
    Hallo Onkelandy

    Ich habe gestern Nacht, dein Image nochmals neu aufgespielt und von vorne begonnen. Habe versucht, mich in phyton-openzwave einzulesen.
    Habe mit dem Befehl
    Code:
     
     pyozw_check -i -d /dev/ttyAMA0
    folgende Ausgabe erhalten (Ausschnitt)
    Code:
    2019-07-05 07:13:58.827 Always, OpenZwave Version 1.4.3311 Starting Up
    2019-07-05 07:13:59.831 Info, Setting Up Provided Network Key for Secure Communications
    2019-07-05 07:13:59.832 Warning, Failed - Network Key Not Set
    2019-07-05 07:13:59.832 Info, mgr,     Added driver for controller /dev/ttyAMA0
    2019-07-05 07:13:59.832 Info,   Opening controller /dev/ttyAMA0
    2019-07-05 07:13:59.833 Info, Trying to open serial port /dev/ttyAMA0 (attempt 1)
    2019-07-05 07:13:59.833 Info, Serial port /dev/ttyAMA0 opened (attempt 1)
    2019-07-05 07:13:59.834 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
    2019-07-05 07:13:59.834 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
    2019-07-05 07:13:59.834 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
    2019-07-05 07:13:59.834 Detail, contrlr, Queuing (Command) FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
    2019-07-05 07:13:59.835 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
    2019-07-05 07:13:59.835 Detail,
    2019-07-05 07:13:59.835 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x15) - FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
    2019-07-05 07:13:59.838 Detail, contrlr,   Received: 0x01, 0x10, 0x01, 0x15, 0x5a, 0x2d, 0x57, 0x61, 0x76, 0x65, 0x20, 0x36, 0x2e, 0x30, 0x32, 0x00, 0x01, 0x92
    2019-07-05 07:13:59.838 Detail,
    2019-07-05 07:13:59.839 Info, contrlr, Received reply to FUNC_ID_ZW_GET_VERSION:
    2019-07-05 07:13:59.839 Info, contrlr,     Static Controller library, version Z-Wave 6.02
    2019-07-05 07:13:59.839 Detail, Node045,   Expected reply was received
    2019-07-05 07:13:59.839 Detail, Node045,   Message transaction complete
    2019-07-05 07:13:59.839 Detail,
    2019-07-05 07:13:59.839 Detail, contrlr, Removing current message
    2019-07-05 07:13:59.839 Detail,
    2019-07-05 07:13:59.839 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x20) - FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
    2019-07-05 07:13:59.842 Detail, contrlr,   Received: 0x01, 0x08, 0x01, 0x20, 0xd4, 0x1d, 0x84, 0xcc, 0x01, 0x56
    2019-07-05 07:13:59.843 Detail,
    2019-07-05 07:13:59.843 Info, contrlr, Received reply to FUNC_ID_ZW_MEMORY_GET_ID. Home ID = 0xd41d84cc.  Our node ID = 1
    2019-07-05 07:13:59.843 Detail, Node029,   Expected reply was received
    2019-07-05 07:13:59.843 Detail, Node029,   Message transaction complete
    2019-07-05 07:13:59.843 Detail,
    2019-07-05 07:13:59.843 Detail, contrlr, Removing current message
    2019-07-05 07:13:59.843 Detail,
    2019-07-05 07:13:59.843 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x05) - FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
    2019-07-05 07:13:59.846 Detail, contrlr,   Received: 0x01, 0x04, 0x01, 0x05, 0x08, 0xf7
    2019-07-05 07:13:59.846 Detail,
    2019-07-05 07:13:59.846 Info, contrlr, Received reply to FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES:
    2019-07-05 07:13:59.846 Info, contrlr,     There is no SUC ID Server (SIS) in this network.
    2019-07-05 07:13:59.846 Info, contrlr,     The PC controller is a primary controller.
    2019-07-05 07:13:59.846 Detail, Node247,   Expected reply was received
    2019-07-05 07:13:59.847 Detail, Node247,   Message transaction complete
    2019-07-05 07:13:59.847 Detail,
    2019-07-05 07:13:59.847 Detail, contrlr, Removing current message
    2019-07-05 07:13:59.847 Detail,
    2019-07-05 07:13:59.847 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x07) - FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
    2019-07-05 07:13:59.869 Detail, contrlr,   Received: 0x01, 0x2b, 0x01, 0x07, 0x05, 0x25, 0x01, 0x47, 0x04, 0x00, 0x00, 0x02, 0xfe, 0x87, 0x7f, 0x88, 0xcf, 0x3f, 0xc0, 0x47, 0xfb, 0xdf, 0xfd, 0xe0, 0x67, 0x00, 0x80, 0x80, 0x00, 0x80, 0x8$
    2019-07-05 07:13:59.870 Detail,
    2019-07-05 07:13:59.870 Info, contrlr,  Received reply to FUNC_ID_SERIAL_API_GET_CAPABILITIES
    2019-07-05 07:13:59.870 Info, contrlr,     Serial API Version:   5.37
    2019-07-05 07:13:59.870 Info, contrlr,     Manufacturer ID:      0x0147
    2019-07-05 07:13:59.870 Info, contrlr,     Product Type:         0x0400
    2019-07-05 07:13:59.870 Info, contrlr,     Product ID:           0x0002
    
    2019-07-05 07:14:00.155 Detail,
    2019-07-05 07:14:00.155 Info, Node002, Sending (NoOp) message (Callback ID=0x0a, Expected Reply=0x13) - NoOperation_Set (Node=2): 0x01, 0x09, 0x00, 0x13, 0x02, 0x02, 0x00, 0x00, 0x25, 0x0a, 0xca
    2019-07-05 07:14:00.163 Detail, Node002,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
    2019-07-05 07:14:00.163 Detail, Node002,   ZW_SEND_DATA delivered to Z-Wave stack
    2019-07-05 07:14:04.465 Detail, Node002,   Received: 0x01, 0x18, 0x00, 0x13, 0x0a, 0x01, 0x01, 0xaf, 0x00, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x01, 0x01, 0x07, 0x00, 0x00, 0x00, 0x00, 0x02, 0x07, 0x00, 0x00, 0x2c
    2019-07-05 07:14:04.465 Detail, Node002,   ZW_SEND_DATA Request with callback ID 0x0a received (expected 0x0a)
    2019-07-05 07:14:04.465 Info, Node002, WARNING: ZW_SEND_DATA failed. No ACK received - device may be asleep.
    2019-07-05 07:14:04.465 Warning, Node002, WARNING: Device is not a sleeping node.
    2019-07-05 07:14:04.465 Info, Node002, QueryStageRetry stage Probe requested stage Probe max 3 retries 0 pending 1
    2019-07-05 07:14:04.465 Detail, Node001,   Expected callbackId was received
    2019-07-05 07:14:04.465 Detail, Node001,   Expected reply was received
    2019-07-05 07:14:04.466 Detail, Node001,   Message transaction complete
    2019-07-05 07:14:04.466 Detail,
    2019-07-05 07:14:04.466 Detail, Node002, Removing current message
    2019-07-05 07:14:04.466 Detail, Node002, Notification: Notification - NoOperation
    2019-07-05 07:14:04.467 Detail,
    2019-07-05 07:14:04.467 Info, Node003, Sending (Query) message (Callback ID=0x00, Expected Reply=0x41) - Get Node Protocol Info (Node=3): 0x01, 0x04, 0x00, 0x41, 0x03, 0xb9
    2019-07-05 07:14:04.470 Detail, Node003,   Received: 0x01, 0x09, 0x01, 0x41, 0x53, 0x9c, 0x01, 0x04, 0x07, 0x01, 0x7a
    2019-07-05 07:14:04.470 Detail,
    2019-07-05 07:14:04.470 Info, Node003, Received reply to FUNC_ID_ZW_GET_NODE_PROTOCOL_INFO
    2019-07-05 07:14:04.470 Info, Node003,   Protocol Info for Node 3:
    2019-07-05 07:14:04.470 Info, Node003,     Listening     = false
    2019-07-05 07:14:04.470 Info, Node003,     Frequent      = false
    2019-07-05 07:14:04.470 Info, Node003,     Beaming       = true
    2019-07-05 07:14:04.470 Info, Node003,     Routing       = true
    2019-07-05 07:14:04.471 Info, Node003,     Max Baud Rate = 40000
    2019-07-05 07:14:04.471 Info, Node003,     Version       = 4
    2019-07-05 07:14:04.471 Info, Node003,     Security      = false
    2019-07-05 07:14:04.471 Info, Node003,   Basic device class    (0x04) - Routing Slave
    2019-07-05 07:14:04.471 Info, Node003,   Generic device Class  (0x07) - Notification Sensor
    2019-07-05 07:14:04.471 Info, Node003,   Specific device class (0x01) - Notification Sensor
    2019-07-05 07:14:04.471 Info, Node003,     COMMAND_CLASS_BASIC is not mapped
    2019-07-05 07:14:04.471 Info, Node003,   Mandatory Command Classes for Node 3:
    2019-07-05 07:14:04.472 Info, Node003,     COMMAND_CLASS_BASIC
    2019-07-05 07:14:04.472 Info, Node003,     COMMAND_CLASS_WAKE_UP
    2019-07-05 07:14:04.472 Info, Node003,   Mandatory Command Classes controlled by Node 3:
    2019-07-05 07:14:04.472 Info, Node003,     None
    2019-07-05 07:14:04.472 Detail, Node156,   Expected reply was received
    2019-07-05 07:14:04.472 Detail, Node156,   Message transaction complete
    2019-07-05 07:14:04.472 Detail,
    2019-07-05 07:14:04.472 Detail, Node003, Removing current message
    2019-07-05 07:14:04.473 Detail, Node003, Notification: NodeProtocolInfo
    2019-07-05 07:14:04.473 Detail, Node003, Notification: ValueAdded
    2019-07-05 07:14:04.474 Detail, Node003, Notification: ValueAdded
    2019-07-05 07:14:04.475 Detail, Node003, Query Stage Complete (ProtocolInfo)
    2019-07-05 07:14:04.475 Detail, Node003, AdvanceQueries queryPending=0 queryRetries=0 queryStage=Probe live=1
    2019-07-05 07:14:04.475 Detail, Node003, QueryStage_Probe
    2019-07-05 07:14:04.475 Info, Node003, NoOperation::Set - Routing=true
    2019-07-05 07:14:04.475 Detail, Node003, Queuing (NoOp) NoOperation_Set (Node=3): 0x01, 0x09, 0x00, 0x13, 0x03, 0x02, 0x00, 0x00, 0x25, 0x0b, 0xca
    2019-07-05 07:14:04.475 Detail, Node003, Queuing (Query) Query Stage Complete (Probe)
    2019-07-05 07:14:04.476 Detail,
    2019-07-05 07:14:04.476 Info, Node003, Sending (NoOp) message (Callback ID=0x0b, Expected Reply=0x13) - NoOperation_Set (Node=3): 0x01, 0x09, 0x00, 0x13, 0x03, 0x02, 0x00, 0x00, 0x25, 0x0b, 0xca
    2019-07-05 07:14:04.482 Detail, Node003,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
    2019-07-05 07:14:04.482 Detail, Node003,   ZW_SEND_DATA delivered to Z-Wave stack
    2019-07-05 07:14:09.118 Detail, Node003,   Received: 0x01, 0x18, 0x00, 0x13, 0x0b, 0x01, 0x01, 0xd0, 0x00, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x01, 0x01, 0x07, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0d, 0x00, 0x00, 0x58
    2019-07-05 07:14:09.119 Detail, Node003,   ZW_SEND_DATA Request with callback ID 0x0b received (expected 0x0b)
    2019-07-05 07:14:09.119 Info, Node003, WARNING: ZW_SEND_DATA failed. No ACK received - device may be asleep.
    2019-07-05 07:14:09.119 Info, Node003,   Node 3 has been marked as asleep
    2019-07-05 07:14:09.119 Info, Node003, Node not responding - moving QueryStageComplete command to Wake-Up q
    
    2019-07-05 07:14:13.315 Detail,
    2019-07-05 07:14:13.315 Info, Node002, Sending (NoOp) message (Callback ID=0x0d, Expected Reply=0x13) - NoOperation_Set (Node=2): 0x01, 0x09, 0x00, 0x13, 0x02, 0x02, 0x00, 0x00, 0x25, 0x0d, 0xcd
    2019-07-05 07:14:13.323 Detail, Node002,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
    2019-07-05 07:14:13.323 Detail, Node002,   ZW_SEND_DATA delivered to Z-Wave stack
    2019-07-05 07:14:14.857 Info, mgr,     Driver for controller /dev/ttyAMA0 pending removal
    2019-07-05 07:14:14.858 Detail, Notification: DriverRemoved
    2019-07-05 07:14:14.861 Always, ***************************************************************************
    2019-07-05 07:14:14.861 Always, *********************  Cumulative Network Statistics  *********************
    2019-07-05 07:14:14.861 Always, *** General
    2019-07-05 07:14:14.861 Always, Driver run time: . .  . 0 days, 0 hours, 0 minutes
    2019-07-05 07:14:14.861 Always, Frames processed: . . . . . . . . . . . . . . . . . . . . 19
    2019-07-05 07:14:14.862 Always, Total messages successfully received: . . . . . . . . . . 19
    2019-07-05 07:14:14.862 Always, Total Messages successfully sent: . . . . . . . . . . . . 17
    2019-07-05 07:14:14.862 Always, ACKs received from controller:  . . . . . . . . . . . . . 17
    2019-07-05 07:14:14.863 Always, *** Errors
    2019-07-05 07:14:14.863 Always, Unsolicited messages received while waiting for ACK:  . . 0
    2019-07-05 07:14:14.863 Always, Reads aborted due to timeouts:  . . . . . . . . . . . . . 0
    2019-07-05 07:14:14.863 Always, Bad checksum errors:  . . . . . . . . . . . . . . . . . . 0
    2019-07-05 07:14:14.864 Always, CANs received from controller:  . . . . . . . . . . . . . 0
    2019-07-05 07:14:14.864 Always, NAKs received from controller:  . . . . . . . . . . . . . 0
    2019-07-05 07:14:14.864 Always, Out of frame data flow errors:  . . . . . . . . . . . . . 0
    2019-07-05 07:14:14.864 Always, Messages retransmitted: . . . . . . . . . . . . . . . . . 0
    2019-07-05 07:14:14.864 Always, Messages dropped and not delivered: . . . . . . . . . . . 0
    2019-07-05 07:14:14.865 Always, ***************************************************************************
    2019-07-05 07:14:16.870 Detail, Node002, Removing current message
    2019-07-05 07:14:16.871 Info, mgr,     Driver for controller /dev/ttyAMA0 removed
    Das heißt, das Modul wurde erkannt und hat auch eine Datei zwcfg_0xYOUR_HOMEID.xml erzeugt.
    Hier steht folgendes drin:
    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <Driver xmlns="http://code.google.com/p/open-zwave/" version="3" home_id="0xd41d84cc" node_id="1" api_capabilities="0" controller_capabilities="8" poll_interval="30000" poll_interval_between="false">
            <Node id="1" name="" location="" basic="2" generic="2" specific="1" type="Static PC Controller" listening="true" frequentListening="false" beaming="true" routing="true" max_baud_rate="40000" version="4" query_stage="Complete">
                    <Manufacturer id="147" name="Z-Wave.Me">
                            <Product type="400" id="2" name="RaZberry Controller 2016 ZWave+" />
                    </Manufacturer>
                    <CommandClasses>
                            <CommandClass id="32" name="COMMAND_CLASS_BASIC" version="1" after_mark="true">
                                    <Instance index="1" />
                                    <Value type="byte" genre="basic" instance="1" index="0" label="Basic" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="255" value="0" />
                            </CommandClass>
                    </CommandClasses>
            </Node>
            <Node id="2" name="" location="" basic="4" generic="17" specific="1" type="Multilevel Power Switch" listening="true" frequentListening="false" beaming="true" routing="true" max_baud_rate="40000" version="4" query_stage="Probe">
                    <Manufacturer id="0" name="">
                            <Product type="0" id="0" name="" />
                    </Manufacturer>
                    <CommandClasses>
                            <CommandClass id="32" name="COMMAND_CLASS_BASIC" version="1" mapping="38">
                                    <Instance index="1" />
                            </CommandClass>
                            <CommandClass id="38" name="COMMAND_CLASS_SWITCH_MULTILEVEL" version="1">
                                    <Instance index="1" />
                                    <Value type="byte" genre="user" instance="1" index="0" label="Level" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="255" value="0" />
                                    <Value type="button" genre="user" instance="1" index="1" label="Bright" units="" read_only="false" write_only="true" verify_changes="false" poll_intensity="0" min="0" max="0" />
                                    <Value type="button" genre="user" instance="1" index="2" label="Dim" units="" read_only="false" write_only="true" verify_changes="false" poll_intensity="0" min="0" max="0" />
                                    <Value type="bool" genre="system" instance="1" index="3" label="Ignore Start Level" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="0" value="True" />
                                    <Value type="byte" genre="system" instance="1" index="4" label="Start Level" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="255" value="0" />
                            </CommandClass>
                            <CommandClass id="39" name="COMMAND_CLASS_SWITCH_ALL" version="1">
                                    <Instance index="1" />
                                    <Value type="list" genre="system" instance="1" index="0" label="Switch All" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="0" vindex="0" size="1">
                                            <Item label="Disabled" value="0" />
                                            <Item label="Off Enabled" value="1" />
                                            <Item label="On Enabled" value="2" />
                                            <Item label="On and Off Enabled" value="255" />
                                    </Value>
                            </CommandClass>
                    </CommandClasses>
            </Node>
            <Node id="3" name="" location="" basic="4" generic="7" specific="1" type="Notification Sensor" listening="false" frequentListening="false" beaming="true" routing="true" max_baud_rate="40000" version="4" query_stage="Probe">
                    <Manufacturer id="0" name="">
                            <Product type="0" id="0" name="" />
                    </Manufacturer>
                    <CommandClasses>
                            <CommandClass id="32" name="COMMAND_CLASS_BASIC" version="1">
                                    <Instance index="1" />
                                    <Value type="byte" genre="basic" instance="1" index="0" label="Basic" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="255" value="0" />
                            </CommandClass>
                            <CommandClass id="132" name="COMMAND_CLASS_WAKE_UP" version="1" request_flags="2">
                                    <Instance index="1" />
                                    <Value type="int" genre="system" instance="1" index="0" label="Wake-up Interval" units="Seconds" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="21474$
                            </CommandClass>
                    </CommandClasses>
            </Node>
    </Driver>
    Im Admintool beim zwave Plugin habe ich als Pfad /usr/local/bin angegeben.

    im log steht allerding folgender Fehler:

    Code:
    2019-07-05  06:46:49 ERROR    lib.plugin          Plugin 'zwave' from section 'Zwave' exception: 'ZWave' object has no attribute 'init_webinterface'
    Traceback (most recent call last):
      File "/usr/local/smarthome/lib/plugin.py", line 145, in __init__
        plugin_thread = PluginWrapper(smarthome, plugin, classname, classpath, args, instance, self.meta, self._gtrans)
      File "/usr/local/smarthome/lib/plugin.py", line 627, in __init__
        exec("self.plugin.__init__(smarthome{0}{1})".format("," if len(arglist) else "", argstring))
      File "<string>", line 1, in <module>
      File "/usr/local/smarthome/plugins/zwave/__init__.py", line 71, in __init__
        if not self.init_webinterface():
    AttributeError: 'ZWave' object has no attribute 'init_webinterface'
    2019-07-05  06:46:49 WARNING  lib.item            load_itemdefinitions(): For testing the joined item structs are saved to /usr/local/smarthome/etc/structs_joined.yaml
    Ist wahrscheinlich, weil es noch kein Webinterface gibt.
    Unter Plugins im Backend taucht es aber auch nach einem Neustart nicht auf.

    Das mit den items verstehe ich leider trotzdem nicht. Hast du oder irgendjemand vielleicht ein Beispiel für mich, damit ich mich daran orientieren kann?

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    Im Admin Tool oder im plugin.yaml des Plugins findest du Infos zur Itemkonfiguration:
    Code:
    item_attributes:
        # Definition of item attributes defined by this plugin
    
        zwave_node:
            type: str
            description:
                en: 'connects the item to the defined node'
    
        zwave_value:
            type: str
            description:
                en: 'connects the item to the defined value'
    Prinzipiell ist es eine gute Idee, Problemen auf "neutralem" Weg außerhalb von Plugins etc. nachzugehen. Mich würde aber dennoch interessieren, ob du für das zwave Plugin wirklich das ganze Gedöns von NodeJS brauchst oder ob nicht einfach python_openzwave, das auf meinem Raspi Image schon drauf ist, ausreicht. Das Plugin baut ja auf Letzterem und nicht auf MinOZW auf.

    Kannst du es vielleicht nochmals ohne den openzwave Packages probieren? Wäre eine wichtige Info für das kommen Raspi Image. Danke

    Einen Kommentar schreiben:

Lädt...
X