Giter Site home page Giter Site logo

openzwave / ozw-admin Goto Github PK

View Code? Open in Web Editor NEW
62.0 15.0 9.0 931 KB

OpenZWave Gui

License: GNU General Public License v3.0

C++ 95.65% QMake 1.44% Shell 0.12% Batchfile 0.08% Dockerfile 0.07% Python 2.40% CSS 0.23% Smarty 0.02%
openzwave zwave zwave-gateway

ozw-admin's Introduction

ozw-admin

This is a Gui for OpenZWave, intended to replace the open-zwave-control-panel eventually.

Latest Installer Images/AppImages can be found here: https://github.com/OpenZWave/ozw-admin/releases

Work in Progress. Don't expect much right now :)

If you are using the ozwdaemon docker image, you need to allow remote network access to the Docker Image:

docker run -it --security-opt seccomp=unconfined --device=/dev/ttyUSB0 -v /tmp/ozw:/opt/ozw/config -e MQTT_SERVER="10.100.200.102" -e USB_PATH=/dev/ttyUSB0 --network host openzwave/ozwdaemon:latest

Then in the OZWAdmin gui, when opening a "Remote Connection" specify the IP address of the Host the Docker Image is running on.

ozw-admin's People

Contributors

ajschmidt8 avatar bwachter avatar fishwaldo avatar lordmike avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ozw-admin's Issues

Build fails on Mac OSX 10.14.6

during the build process, ozw-admin/scripts/macdeployqtfix.py fails with the following error:

INFO | fixing executable '../ozwadmin.app/Contents/MacOS/ozwadmin'
Traceback (most recent call last):
  File "/Users/gbromley/projects/HomeAutomation/Z-Wave/ozw-admin/scripts/macdeployqtfix.py", line 395, in <module>
    main()
  File "/Users/gbromley/projects/HomeAutomation/Z-Wave/ozw-admin/scripts/macdeployqtfix.py", line 385, in main
    if fix_main_binaries():
  File "/Users/gbromley/projects/HomeAutomation/Z-Wave/ozw-admin/scripts/macdeployqtfix.py", line 323, in fix_main_binaries
    if fix_binary(GlobalConfig.exepath):
  File "/Users/gbromley/projects/HomeAutomation/Z-Wave/ozw-admin/scripts/macdeployqtfix.py", line 307, in fix_binary
    for dep in get_dependencies(binary):
  File "/Users/gbromley/projects/HomeAutomation/Z-Wave/ozw-admin/scripts/macdeployqtfix.py", line 64, in get_dependencies
    deps = [s.strip().split(' ')[0] for s in proc_out.stdout.splitlines()[1:] if s]
  File "/Users/gbromley/projects/HomeAutomation/Z-Wave/ozw-admin/scripts/macdeployqtfix.py", line 64, in <listcomp>
    deps = [s.strip().split(' ')[0] for s in proc_out.stdout.splitlines()[1:] if s]
TypeError: a bytes-like object is required, not 'str'
make[1]: *** [../ozwadmin.app/Contents/MacOS/ozwadmin] Error 1
make: *** [sub-ozwadmin-main-make_first-ordered] Error 2

The issue is the binary output from the otool command.
It's a simple fix so I haven't created a pull request, just the diff below. I hope this is ok.

--- a/scripts/macdeployqtfix.py
+++ b/scripts/macdeployqtfix.py
@@ -61,7 +61,7 @@ def get_dependencies(filename):
     deps = []
     if proc_out.retcode == 0:
         # some string splitting
-        deps = [s.strip().split(' ')[0] for s in proc_out.stdout.splitlines()[1:] if s]
+        deps = [s.strip().split(b' ')[0].decode('utf-8') for s in proc_out.stdout.splitlines()[1:] if s]
         # prevent infinite recursion when a binary depends on itself (seen with QtWidgets)...
         deps = [s for s in deps if os.path.basename(filename) not in s]
     return deps

OpenZwave Admin GUI - stalls at loading 64%

With the latest release of qt-openzwave - the OpenZwave Admin GUI won't load. It stalls at "GotValueData" with 64%.

The qt-openzwave logs shows:

[20200512 16:14:38.575 UTC] [ozw.manager] [info]: New Client WebSocket Connection QHostAddress("::ffff:192.168.1.131")
[20200512 16:14:38.586 UTC] [ozw.manager] [info]: Client Connection Authenticated!

From mqtt: OpenZWave.1.status:

{
    "OpenZWave_Version": "1.6.1115",
    "OZWDaemon_Version": "0.1.95",
    "QTOpenZWave_Version": "1.0.0",
    "QT_Version": "5.12.5",
    "Status": "driverAllNodesQueried",
    "TimeStamp": 1589282111,
    "ManufacturerSpecificDBReady": true,
    "homeID": 4153509092,
    "getControllerNodeId": 1,
    "getSUCNodeId": 1,
    "isPrimaryController": true,
    "isBridgeController": false,
    "hasExtendedTXStatistics": true,
    "getControllerLibraryVersion": "Z-Wave 4.54",
    "getControllerLibraryType": "Static Controller",
    "getControllerPath": "/dev/ttyACM0"
}

Some GUI controls have non-standard behavior

When I click on a list item's pull-down menu there is no response. I need to double click on the control for it to show the list values. It should only require one click. Example: go to the "Node Configuration" tab for a node. Click on a value to change the parameter, it just selects the row instead of showing the available values.

Some controls are modifiable, but should be read only. Example: go to the "Node Status" tab for a node. Click on the "Sleeping" radio button. For a mains-powered device, the checkbox is set for a moment, then disappears.

StatusBar Updates

  • Decode VidKey into Labels with values
  • Decode controllerCommands into Strings
  • Decode ozwNotifications into Strings
  • Decode ozwAlerts into Strings and consider PopUp MessageBoxes
  • Status Updates about Remote Connections

File->Preferences crashes AppImage

Using the Linux AppImage, the following versions crash when clicking "File -> Preferences":

0.1.74
0.1.72

Version 0.1.69 is the latest version of the AppImage that lets me open the Preferences.

Create a portable windows app

It would be nice to have a version of the Windows app that is just a zip file with necessary files, aka a portable application. I use Scoop to manage installation of as many applications as I can, and it works best with plain zip files.

I can take a look at this.

Progress "GotValueData" stuck at 64%

I'm using the latest OZW-Admin appimage to connect to my qt-ozwdaemon instance. When I try to open the connection, it hangs with a "Progress" window "GotValueData" at 64%. I'm not sure what further debug information might be useful, but here's the relevant logs from the admin tool:

[20200511 18:59:34.492 CDT] [ozw.manager] [info]: WebSocket Client Connected to  "192.168.1.11" QHostAddress("192.168.1.11") 1983
[20200511 18:59:34.498 CDT] [ozw.manager] [debug]: WebSocket Client Authenticated!
[20200511 18:59:34.498 CDT] [qt.remoteobjects] [warning]:  Signature mismatch for QTOZWManagerReplica "QTOZWManager"
[20200511 18:59:34.498 CDT] [ozw.manager] [debug]: Manager State Change:  QRemoteObjectReplica::SignatureMismatch
[20200511 18:59:34.498 CDT] [ozw.manager] [debug]: checkReplicaReady: Manager: QRemoteObjectReplica::SignatureMismatch Options: QRemoteObjectReplica::State(8060965) Nodes: true Values false Associations: true Logs: false
[20200511 18:59:34.498 CDT] [ozw.manager] [debug]: Options State Change:  QRemoteObjectReplica::Valid
[20200511 18:59:34.499 CDT] [ozwadmin] [debug]: QTOZWManager::GotOptionData QAbstractSocket::UnknownSocketError
[20200511 18:59:34.499 CDT] [ozwadmin] [debug]: 16
[20200511 18:59:34.499 CDT] [ozw.manager] [debug]: checkReplicaReady: Manager: QRemoteObjectReplica::SignatureMismatch Options: QRemoteObjectReplica::Valid Nodes: true Values false Associations: true Logs: false
[20200511 18:59:34.502 CDT] [ozwadmin] [debug]: QTOZWManager::GotAssociationData QAbstractSocket::UnknownSocketError
[20200511 18:59:34.503 CDT] [ozwadmin] [debug]: 32
[20200511 18:59:34.503 CDT] [ozw.manager] [debug]: checkReplicaReady: Manager: QRemoteObjectReplica::SignatureMismatch Options: QRemoteObjectReplica::Valid Nodes: true Values false Associations: true Logs: false
[20200511 18:59:34.503 CDT] [ozwadmin] [debug]: QTOZWManager::GotNodeData QAbstractSocket::UnknownSocketError
[20200511 18:59:34.503 CDT] [ozwadmin] [debug]: 48
[20200511 18:59:34.503 CDT] [ozw.manager] [debug]: checkReplicaReady: Manager: QRemoteObjectReplica::SignatureMismatch Options: QRemoteObjectReplica::Valid Nodes: true Values false Associations: true Logs: false
[20200511 18:59:34.504 CDT] [ozwadmin] [debug]: QTOZWManager::GotValueData QAbstractSocket::UnknownSocketError
[20200511 18:59:34.504 CDT] [ozwadmin] [debug]: 64
[20200511 18:59:34.504 CDT] [ozw.manager] [debug]: checkReplicaReady: Manager: QRemoteObjectReplica::SignatureMismatch Options: QRemoteObjectReplica::Valid Nodes: true Values true Associations: true Logs: false

No config parameters available

Hi there,

i am using the following OZW-Admin Version omg MAC-OS 10.15.4

Versions:
OpenZWave Version 1.6.1133
qt-openzwave Version: 1.1.0
QT Version: 5.12.4

I can connect to the OpenZwave daemon on another host in my network and I see the notes, however I don't get any options for the config parameters.

parems

On the other hand, the tab with the node statistics seems fine.

Any idea what's going wrong?

-Christian

MQTT command documentation does not match implementation

MQTT topics are case sensitive. I tried to issue a refreshNodeInfo command as documented:

topic: OpenZWave/1/command/refreshNodeInfo
data: {"node": 11"}

There was no response, and ozwdaemon debug logs showed the command published but no action was taken.

I changed the topic to OpenZWave/1/command/refreshnodeinfo. That was successful and ozwdaemon replied with OpenZWave/1/event/refreshnodeinfo. I noticed all the setValue commands issued by Home Assistant are lowercase setvalue as well, not setValue as documented.

If I am understanding everything correctly, there are 3 different forms of topic letter-casing being used:

  1. Documentation use camel case with lower case first letter, e.g. refreshNodeInfo.
  2. The MQTT class static method StaticGetCommand() use camel case with upper case first letter, e.g. AssignReturnRoute
  3. The subscription setup code that registers MQTT topics to the class implementations lower cases the class string (e.g. refreshnodeinfo) and listens for the lower case topic.

So either the documentation needs updating, or the implementation needs to use the proper case?

Unable to set switch intervial

Hi, I' running the latest Windows build, 104. I'm having trouble setting a config value for all of my Aeotec Smart Switch 6 devices. I'm able to adjust other values, but not 'Send Interval for Reporting Group 1' and 2, and 3.

By default the value is 600 but after you click on the field it goes to zero and you can't increase or decrease the value. Copy and paste does not work.

Loving the software so far, this is my first Issue posted on this project so forgive me if I'm missing any required info.

2020-05-27_09-38-51

Config Database

implement the qt-openzwavedatabase extension so we can deploy our config files for Local Connections (not needed for remote connections).

Finishing

Hey. I saw your project and was wondering if and when it will be finished,

Local Client Stuck at 0% starting on Windows

0.163 build, have a aeotec zstick plugged into windows. Start local w/ com port selected sits at starting 0% forever.

Also, maybe related, in the config it defaults config and user value to c:/ if you try to change to any other path and save it crashes the entire program. (perhaps windows wont let it write to c:\ and since we cant change it that is why it doesnt start? I tried run as admin too)

also just tried 0.169, same issue.

SS: https://i.imgur.com/lDTFitQ.png

EDIT: on 0.169 it does not crash when trying to save config path and user path, however it always reverts back to c:/

Implement DockWidget

So we can resize/move panes around etc.

Depends upon #9

  • Review Connections to OZWCore for individual window Widgets

Windows installer choose a bad default installation directory

Just went and installed that 0.1.63 build downloaded from the github releases. When I run the installer, it chooses a bad path:

image

Notice the paths is missing a backslash, C:\Program Files (x86)OpenZwave Admin instead of C:\Program Files (x86)\OpenZwave Admin. The installer from Build 142 does not have this problem.

Environment variable "USBPATH" doesn't seem to work

$ docker run --rm -it --security-opt seccomp=unconfined --device /dev/aeotec_zwave -e USBPATH=/dev/aeotec_zwave openzwave/ozwdaemon:latest
USB Path "/dev/ttyUSB0" does not exist or is not a Character Device 
failed to resize tty, using default size

Seems USBPATH wasn't used.

File->Preferences crashes Windows app

OS: Windows 10 Education (10.0.19041 Build 19041) Language: Norwegian
Ozw-admin version: V0.1.74 (2020-07-03)

Similar to #51 I experience crash with File-Preference. This is on Windows though. I have not been able to test if the app actualy works at all as I'm not able to connect to my remote OZWDaemon due to Network Cache size.

Create a "recognized" Windows installer

When using the Windows installer, a scary warning is produced because of an "unrecognized app":

image

Windows complains, I presume, because the publisher is unverified, maybe for more reasons. Installing requires clicking on More Info.

image

Do whatever is necessary to make Windows happy.

Setting Decimal/Raw ValueIDs - Need to create a new ValueDelegate

It's possible I'm just not doing this right, but I can't update User Values that aren't dropdowns. This is what I'm talking about:
Can't change value
I double click on the value, type in my new value, hit enter, and nothing happens. I don't get anything in the log either. But if I change a value that is a dropdown, the change works.

Am I just doing it wrong, or is that not working?
Thanks!

Windows installer does not add an entry for "Add/Remove Programs"

After installing in Windows, the Windows list of programs does not show the OpenZWave Admin application so it cannot be uninstalled from that location or by 3rd party uninstallers. Only the uninstaller shortcut from the start menu works.

In Windows 10, open the Settings App, go to Apps and look for OpenZWave Admin but find no entry. Normally the version and install date of a program is shown, with an option to uninstall. Or, use a 3rd party tool like Geek Uninstaller, and notice there is not an entry to uninstall the application.

I think it's always been like this, nothing new.

Network Cache Size

When I start OZWAdmin (windows, build 145) I receive the following error after I establish a remote connection

Please increase the Network Cache Size in the configuration. Current Setting: 1000 Remote Max Records 1733

Steps I took:
Restarted docker and the host system
Install same build on another Windows system

This also happened with an earlier build; I believe it was from this past Monday.

I'm using QT-ozw, all in one, and running 'latest'

Thanks for working on this project!

2020-06-17_20-35-55

[Bug] Refreshing Node Info causes ghost record

If you refresh the node info on a device, the existing row in the node list will become blank leaving only the NodeID and a new row will be created.

You will be left with a ghost record (UI Only) untill ozw admin is restarted

opening configuration window before starting a local or remote connection crashes ozw-admin

I'm trying to migrate away from Z-Wave integrated in HASS to qt-openzwave. I started container with these parameters:

docker run -it --restart always --name ozwdaemon --security-opt seccomp=unconfined --device=/dev/ttyAMAzwave -v /opt/ozw/config:/opt/ozw -e MQTT_SERVER="192.168.178.250" -e USB_PATH=/dev/ttyAMAzwave -p1983:1983 -p 5901:5901 -p7800:7800 openzwave/ozwdaemon:allinone-latest

The container starts and I can connect to port 7800 and start VNC.
Then as soon as I click on 'Configuration' from the File menu, the VNC connection is closed and I see that ozw-admin was terminated:

2020-06-09 10:18:35,994 INFO success: ozw-admin entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-06-09 10:18:35,995 INFO success: websockify entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-06-09 10:18:44,321 INFO success: ozwdaemon entered RUNNING state, process has stayed up for > than 10 seconds (startsecs)
2020-06-09 10:18:59,362 INFO exited: ozw-admin (terminated by SIGSEGV (core dumped); not expected)
2020-06-09 10:18:59,374 INFO spawned: 'ozw-admin' with pid 25
2020-06-09 10:19:00,372 INFO success: ozw-admin entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-06-09 10:20:50,169 INFO exited: ozw-admin (terminated by SIGSEGV (core dumped); not expected)
2020-06-09 10:20:51,181 INFO spawned: 'ozw-admin' with pid 27
2020-06-09 10:20:52,538 INFO success: ozw-admin entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

I can reproduce this over and over.

The same issue occurs when I click on 'Open', enter /dev/ttyAMAzwave as device and click on 'Start'. As soon as I click on Start, the VNC connection is closed and ozw-admin is terminated by SIGSEGV.

I created /opt/ozw/crashes and /opt/ozw/config/crashes but I see no core-dumps.

The same occurs when I manually start ozwadmin from within the container and specify a device:

root@8a93fdf8d34e:/opt/ozw# /usr/local/bin/ozwadmin -platform vnc:port=5901 -s /dev/ttyAMAzwave
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
ozwadmin: Checking  "/opt/ozw/"  for manufacturer_specific.xml
ozwadmin: Checking  "/opt/ozw/"  for options.xml
ozwadmin: DBPath:  "/opt/ozw/"
ozwadmin: userPath:  "/opt/ozw/"
[20200609 10:24:37.898 UTC] [default] [warning]: QVncServer created on port 5901
[20200609 10:24:37.913 UTC] [ozwadmin] [debug]: Doing Local Connection:  "/dev/ttyAMAzwave" false
[20200609 10:24:37.916 UTC] [ozw.manager] [debug]: Database Path:  "/opt/ozw/"  User Path "/opt/ozw/"
[20200609 10:24:37.916 UTC] [ozw.manager] [debug]: OpenZWave Options Class Creating
[20200609 10:24:37.917 UTC] [ozw.manager] [debug]: OpenZWave Options Class Set
[20200609 10:24:37.917 UTC] [ozw.manager] [debug]: Models Created
[20200609 10:24:37.917 UTC] [ozw.manager] [debug]: QTOZWManager Ready!
[20200609 10:24:37.917 UTC] [ozwadmin] [debug]: QTOZW Ready
[20200609 10:24:37.917 UTC] [ozwadmin] [debug]: Updating Option  "ConfigPath"  to  QVariant(QString, "/opt/ozw/")
[20200609 10:24:37.918 UTC] [ozwadmin] [debug]: Updating Option  "UserPath"  to  QVariant(QString, "/opt/ozw/")
[20200609 10:24:38.085 UTC] [ozw.manager] [debug]: QTOZWLog Ready!
Segmentation fault (core dumped)

Any ideas?

Mac OS app not for 10.13 and lower

I just tried to install this on my 2011 Macbook pro which does not support Mac OS beyond High Sierra (10.13). Unfortunately the OZW Admin app is not compatible with 10.13 or lower. Is this because of something specific introduced after 10.13 or is it a compilation setting?

I was also wondering if there is a web-app in your planning?

ozwadmin crashes with "Version mismatch"

Trying to connect to Hass.io Official OpenZWave AddOn (version 0.3.0) using Port 1983.

After clicking "Start" Button in "Remote OZWDaemon"-Section the following errors are displayed:
image

Reason might be that OZWAdmin shows "unknown" ozwave version in splash-screen, which may lead to comparing "unknown" to some version on the daemon side ..?

image

Wireshark trace shows (full trace available if helpful):

GET / HTTP/1.1
Host: 192.168.43.97:1983
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: X+GleTnsfeMtDiEVKJB3Rg==
Sec-WebSocket-Version: 13

HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: kv93o9cIIhEitvYLq0wEul/ocr4=
Server: WS QtRO
Access-Control-Allow-Credentials: false
Access-Control-Allow-Methods: GET
Access-Control-Allow-Headers: content-type
Access-Control-Allow-Origin: *
Date: Thu, 11 Jun 2020 07:15:49 GMT

..PROTOCOL 1 ..U..0.......^6..@4..R9..`'.._6......C<....ERROR Protocol Violation....
<<<

Logs from LinuxApp:

31100053@31NL00025:~/Downloads$ ./OZWAdmin-0.1-x86_64\ (1).AppImage
ozwadmin: Checking "/home/itsv.org.sv-services.at/31100053/" for manufacturer_specific.xml
ozwadmin: Checking "/home/itsv.org.sv-services.at/31100053/Downloads/config/" for manufacturer_specific.xml
ozwadmin: Checking "/home/config/" for manufacturer_specific.xml
ozwadmin: Checking "/home/itsv.org.sv-services.at/31100053/.local/share/OpenZWave/ozw-admin" for manufacturer_specific.xml
ozwadmin: Checking "/usr/share/ubuntu/OpenZWave/ozw-admin" for manufacturer_specific.xml
ozwadmin: Checking "/usr/local/share/OpenZWave/ozw-admin" for manufacturer_specific.xml
ozwadmin: Checking "/usr/share/OpenZWave/ozw-admin" for manufacturer_specific.xml
ozwadmin: Checking "/var/lib/snapd/desktop/OpenZWave/ozw-admin" for manufacturer_specific.xml
ozwadmin: Configuration Database Does Not Exist - Copying Database to Default Location "/home/itsv.org.sv-services.at/31100053/Downloads/"
ozw.database: Testing "./qt-openzwavedatabase.rcc"
ozw.database: Testing Standard Paths "/home/itsv.org.sv-services.at/31100053/.local/share/OpenZWave/qt-openzwavedatabase.rcc"
ozw.database: Testing Standard Paths "/usr/share/ubuntu/OpenZWave/qt-openzwavedatabase.rcc"
ozw.database: Testing Standard Paths "/usr/local/share/OpenZWave/qt-openzwavedatabase.rcc"
ozw.database: Testing Standard Paths "/usr/share/OpenZWave/qt-openzwavedatabase.rcc"
ozw.database: Testing Standard Paths "/var/lib/snapd/desktop/OpenZWave/qt-openzwavedatabase.rcc"
ozwadmin: Cant find qt-openzwavedatabase.rcc
ozwadmin: Checking "/home/itsv.org.sv-services.at/31100053/" for options.xml
ozwadmin: Checking "/home/itsv.org.sv-services.at/31100053/Downloads/config/" for options.xml
ozwadmin: Checking "/home/config/" for options.xml
ozwadmin: Checking "/home/itsv.org.sv-services.at/31100053/.local/share/OpenZWave/ozw-admin" for options.xml
ozwadmin: Checking "/usr/share/ubuntu/OpenZWave/ozw-admin" for options.xml
ozwadmin: Checking "/usr/local/share/OpenZWave/ozw-admin" for options.xml
ozwadmin: Checking "/usr/share/OpenZWave/ozw-admin" for options.xml
ozwadmin: Checking "/var/lib/snapd/desktop/OpenZWave/ozw-admin" for options.xml
ozwadmin: Configuration Database Does Not Exist - Copying Database to Default Location "/home/itsv.org.sv-services.at/31100053/Downloads/"
ozw.database: Testing "./qt-openzwavedatabase.rcc"
ozw.database: Testing Standard Paths "/home/itsv.org.sv-services.at/31100053/.local/share/OpenZWave/qt-openzwavedatabase.rcc"
ozw.database: Testing Standard Paths "/usr/share/ubuntu/OpenZWave/qt-openzwavedatabase.rcc"
ozw.database: Testing Standard Paths "/usr/local/share/OpenZWave/qt-openzwavedatabase.rcc"
ozw.database: Testing Standard Paths "/usr/share/OpenZWave/qt-openzwavedatabase.rcc"
ozw.database: Testing Standard Paths "/var/lib/snapd/desktop/OpenZWave/qt-openzwavedatabase.rcc"
ozwadmin: Cant find qt-openzwavedatabase.rcc
ozwadmin: DBPath: "/home/itsv.org.sv-services.at/31100053/Downloads/"
ozwadmin: userPath: "/home/itsv.org.sv-services.at/31100053/Downloads/"
[20200611 9:14:10.496 CEST] [ozwadmin] [debug]: Doing Remote Connection: QUrl("ws://192.168.43.97:1983")
[20200611 9:14:10.557 CEST] [ozw.manager] [debug]: Attempting Connection to QUrl("ws://192.168.43.97:1983")
[20200611 9:14:10.557 CEST] [ozw.manager] [info]: WebSocket Client State Changed: QAbstractSocket::ConnectingState
[20200611 9:14:10.560 CEST] [ozwadmin] [debug]: Remote Connection Status: QTOZWManager::ConnectingState QAbstractSocket::UnknownSocketError
[20200611 9:14:10.560 CEST] [ozwadmin] [debug]: QTOZWManager::ConnectingState QAbstractSocket::UnknownSocketError
[20200611 9:14:10.573 CEST] [ozw.manager] [info]: WebSocket Client State Changed: QAbstractSocket::ConnectedState
[20200611 9:14:10.573 CEST] [ozwadmin] [debug]: Remote Connection Status: QTOZWManager::ConnectedState QAbstractSocket::UnknownSocketError
[20200611 9:14:10.573 CEST] [ozwadmin] [debug]: QTOZWManager::ConnectedState QAbstractSocket::UnknownSocketError
[20200611 9:14:10.573 CEST] [ozw.manager] [info]: WebSocket Client Connected to "192.168.43.97" QHostAddress("192.168.43.97") 1983
[20200611 9:14:10.576 CEST] [ozw.remote] [warning]: Got Invalid Protocol Version 1
[20200611 9:14:10.577 CEST] [ozw.manager] [warning]: WebSocket Client Authentication Error: "Got Invalid Protocol Version"
[20200611 9:14:10.577 CEST] [ozwadmin] [debug]: Remote Connection Status: QTOZWManager::VersionMisMatchError QAbstractSocket::UnknownSocketError
[20200611 9:14:10.612 CEST] [ozw.remote] [warning]: Got Error Message From Peer: "ERROR Protocol Violation"
[20200611 9:14:10.612 CEST] [ozw.manager] [warning]: WebSocket Client Authentication Error: "ERROR Protocol Violation"
[20200611 9:14:10.612 CEST] [ozwadmin] [debug]: Remote Connection Status: QTOZWManager::VersionMisMatchError QAbstractSocket::UnknownSocketError
[20200611 9:14:10.615 CEST] [ozw.manager] [warning]: WebSocket Client Error QAbstractSocket::RemoteHostClosedError
[20200611 9:14:10.615 CEST] [ozwadmin] [debug]: Remote Connection Status: QTOZWManager::ConnectionErrorState QAbstractSocket::RemoteHostClosedError
[20200611 9:14:14.995 CEST] [ozwadmin] [debug]: QTOZWManager::ConnectionErrorState QAbstractSocket::RemoteHostClosedError
[20200611 9:14:14.995 CEST] [ozw.manager] [info]: WebSocket Client State Changed: QAbstractSocket::ClosingState
[20200611 9:14:14.995 CEST] [ozwadmin] [debug]: Remote Connection Status: QTOZWManager::ListeningState QAbstractSocket::UnknownSocketError
[20200611 9:14:14.995 CEST] [ozwadmin] [debug]: QTOZWManager::ListeningState QAbstractSocket::UnknownSocketError
[20200611 9:14:14.995 CEST] [ozw.manager] [info]: WebSocket Client State Changed: QAbstractSocket::UnconnectedState
[20200611 9:14:14.995 CEST] [ozwadmin] [debug]: Remote Connection Status: QTOZWManager::UnconnectedState QAbstractSocket::UnknownSocketError
[20200611 9:14:14.995 CEST] [ozwadmin] [debug]: QTOZWManager::UnconnectedState QAbstractSocket::UnknownSocketError
[20200611 9:14:14.995 CEST] [ozw.manager] [info]: WebSocket Client Disconnected from "192.168.43.97" QHostAddress("192.168.43.97") 1983
[20200611 9:14:15.004 CEST] [ozwadmin] [debug]: QTOZWManager::VersionMisMatchError QAbstractSocket::UnknownSocketError
[20200611 9:14:15.007 CEST] [ozwadmin] [debug]: QTOZWManager::VersionMisMatchError QAbstractSocket::UnknownSocketError
<<<
hope thats not a pebcake ..
best regards
/Andi

Remove connection progress dialog stops at 30%

When connecting to a remote host, the connection progress dialog stops updating at exactly 30% ("OpenZWave Ready"), both on Linux and WIndows. I thought it was hung and left it running for tens of minutes. When I went to take a screenshot, the dialog was gone. I found that just hitting escape gets rid of the dialog and everything seems to be working normally.

This is on build 60. Previously I think I was using build 52 on Linux and there was no dialog, Windows did not even connect. Windows is working now.

Is submitting these kind of issues helpful? I know this is an early work in progress.

GUI hung after clicking on a node entry

Not sure how I triggered it, but I was navigating through the different nodes, values and back to nodes. At some point, clicking on a different node caused the application to hang and peg at 100% CPU. The OZW Logs were paused at the time. Attached below are the ozwadmin logs and core dump. Here is the tail of the logs and the stack trace.

...
[20200604 15:09:59.127 PDT] [ozwadmin] [debug]: SelectionChanged UnFiltered Rows: 180
[20200604 15:09:59.127 PDT] [ozwadmin] [debug]:          Filtered Rows:  7
[20200604 15:09:59.127 PDT] [ozwadmin] [debug]:          TableView Rows: 7
[20200604 15:10:37.732 PDT] [ozw.values] [debug]: Selection Model Changed to Node  4
[20200604 15:10:37.741 PDT] [ozw.values] [debug]: Selection Model Changed to Node  4
Thread 1 (Thread 0x7f32f11b8780 (LWP 12)):
#0  0x00007f32f54daed4 in QTableView::sizeHintForColumn(int) const () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#1  0x00007f32f5497757 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#2  0x00007f32f46534e8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f32f45d66de in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f32f45deb64 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f32f460438d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f32f460490c in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f32f4604cf9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f32f4605c5a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f32f5817451 in QTOZW_proxyValueModel::currentSelectedRowChanged (this=0x55a5a7de09d0, current=..., previous=...) at source/qtozwproxymodels.cpp:57
...

This occurred with the openzwave/ozwdaemon:allinone-build-10 Docker image while connected to the "Basic" VNC screen. I haven't reproduced it yet.

OZW Admin VNC window keeps closing

I am running openzwave/ozwdaemon:allinone-latest in a docker container on my Pi. The OZW Admin VNC viewer opens but as soon as the Events start scrolling on the bottom it disconnects. It also disconnects when a user value changes from the device.

GUI hung on connection attempt at GotValueData 80%

This is on Windows 10.

Is there an easy way to pull logs for this process? I didn't see anything in EventViewer, the install directory, or my home directory.

I also have two hard crash reports that I can submit if that's helpful.

Application hangs when ozwd is stopped

The application will hang and remain unresponsive when connected to a remote ozwd and the ozwd instance is stopped.

Reproduced on build 82, in both Windows and Linux. It requires killing the process. Restarting ozw while hung does not resume it.

In Linux, I see these stdout logs after the daemon is stopped:

[20200429 21:59:55.131 PDT] [ozw.manager] [warning]: WebSocket Client Error  QAbstractSocket::RemoteHostClosedError
[20200429 21:59:55.131 PDT] [ozwadmin] [debug]: QTOZWManager::ConnectionErrorState QAbstractSocket::RemoteHostClosedError
[20200429 21:59:55.131 PDT] [ozw.manager] [info]: WebSocket Client State Changed:  QAbstractSocket::ClosingState
[20200429 21:59:55.131 PDT] [ozwadmin] [debug]: QTOZWManager::ListeningState QAbstractSocket::UnknownSocketError
[20200429 21:59:55.131 PDT] [ozw.manager] [info]: WebSocket Client State Changed:  QAbstractSocket::UnconnectedState
[20200429 21:59:55.131 PDT] [ozwadmin] [debug]: QTOZWManager::UnconnectedState QAbstractSocket::UnknownSocketError
[20200429 21:59:55.132 PDT] [ozw.manager] [info]: WebSocket Client Disconnected from  "localhost" QHostAddress("::1") 1983

Linux AppImage does not recognize qt-openzwavedatabase.rcc

When I try to run the appimage from http://bamboo.my-ho.st/bamboo/browse/OZW-OZW-84/artifact/JOB1/Linux---AppImage/OZWAdmin-0.1-x86_64.AppImage on my Ubuntu 18.04 machine:

ozwadmin: Deploying OZW Database to  "/home/jordan/.local/share/OpenZWave/ozw-admin"
ozw.database: Testing  "./qt-openzwavedatabase.rcc"
ozw.database: Testing  "../../qt-openzwave/qt-openzwavedatabase//qt-openzwavedatabase.rcc"
ozw.database: Testing Standard Paths "/home/jordan/.local/share/OpenZWave/qt-openzwavedatabase.rcc"
ozw.database: Testing Standard Paths "/usr/share/ubuntu/OpenZWave/qt-openzwavedatabase.rcc"
ozw.database: Testing Standard Paths "/usr/local/share/OpenZWave/qt-openzwavedatabase.rcc"
ozw.database: Testing Standard Paths "/usr/share/OpenZWave/qt-openzwavedatabase.rcc"
ozw.database: Testing Standard Paths "/var/lib/snapd/desktop/OpenZWave/qt-openzwavedatabase.rcc"

Then I get a popup error stating that "qt-openzwavedatabase.rcc" could not be found.

I inspected the AppImage squashfs, which does include squashfs-root/usr/share/OpenZWave/qt-openzwavedatabase.rcc

If I move qt-openzwavedatabase.rcc into the same directory as the AppImage and where I execute it from, the program launches fine.

Application version information

Add an "About" menu command to show a dialog that describes the OZW Admin version and perhaps other build info, and whatever else is desired.

Increment version number and/or add other build properties to version info

Per #21 there is now a launch splash screen and About dialog that show the OZW Admin version. However, the version is pinned to "0.1.0" so it's not very useful.

Consider adding some other properties besides a version number, such as date of build, Git commit SHA, and build number. The last one would be most useful for users as it refers back to a specific downloaded artificat.

GUI not showing values for all devices

It seems the GUI does not show all values for all devices. I tried it with the latest version as of today on Windows, OSX and the new allinone build which is linux based.
I have 60+ devices added to the controller, these devices are all functioning correctly and showing up in mqtt with all the correct values. It is also possible to change them from there and Home Assistant and use them.
The values are not visible in the GUI for the first 17 devices, but the following 45 do show all the values as expected. I tried a refreshnodeinfo on the nodes that are not displaying correctly. After the refresh the node moved to the bottom of the list and shows the values, but the first 17 nodes still don't show any values. So there is a new node which did show the values and after refreshing another node it now doesn't show it anymore.

Somehow it looks like it is only possible to show values for the last 45 added nodes.
I hope the problem is clear and if not please let me know.

Remember the details of the last remote host connection

This is an enhancement request to remember the last used remote connection details (probably should apply to Local settings as well, but I haven't tried those).

When I open the app and click "Open", the Remote Client details are defaulted to 127.0.0.1:1983 (the sections says Remote Client, should it be Host?). I enter my daemon's host name and click Start to connect. When I close the application and open it again, it forgets the server details and fills in the defaults. It would be convenient if the last entered values were saved, so I can just reconnect immediately.

Even better would be some kind of connection management dialog that allowed saving multiple hosts, but I personally have no need for that and would be happy just to have the last values remembered.

High CPU usage

The latest build seems to have resulted in high cpu usage. I am using the new allinone ozwdaemon image, which currently is ozwdaemon:allinone-build-9. I presume this is OZW Admin build 115. Upon connecting to ozwdaemon via VNC, ozwadmin is pegged at 100% and doesn't stop.

OSX image fails to build

Following compile errors appear on your CI:

/Users/fish/bamboo-agent-home/xml-data/build-dir/OZW-OZW-MAC/open-zwave/cpp/src/command_classes/Configuration.cpp:126:45: error: format specifies type 'unsigned short' but the argument has type 'uint8' (aka 'unsigned char') [-Werror,-Wformat]

What ever gets placed in the final dmg can not be started.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.