Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenZwave HW doesn't display the nodes anymore #2556

Closed
pipiche38 opened this issue Jul 10, 2018 · 38 comments
Closed

OpenZwave HW doesn't display the nodes anymore #2556

pipiche38 opened this issue Jul 10, 2018 · 38 comments

Comments

@pipiche38
Copy link
Contributor

pipiche38 commented Jul 10, 2018

I have updated with a git pull my domoticz beta branch . V4.9756

Since , I am not able to see the Open ZWave nodes. Hopefully the Openzwave Control panel works !

No error in the logs

Here are the screenshots:
screen shot 2018-07-10 at 19 58 14

screen shot 2018-07-10 at 19 57 58

screen shot 2018-07-10 at 19 58 29

@pipiche38
Copy link
Contributor Author

The Group&Network function which give a map of the Zwave network doesn't produce anything !

@pipiche38 pipiche38 changed the title OpenZwace HW doesn't display the nodes anymore OpenZwave HW doesn't display the nodes anymore Jul 10, 2018
@gizmocuz
Copy link
Contributor

Did you cleared your browser cache + appcache ? If you open the chrome developer console, does it report anything when you press the setup button ?
I still see all nodes here on 9758

@pipiche38
Copy link
Contributor Author

Did a full clear of the firefox (MacOs) and problem remains
Did try with Safari same proble

@Biggav87
Copy link

I have the same issue, my system is running on a pi using the razberri daughter board. i am using chrome on windows 7. I have nothing in the log of domoticz nor in the chrome log. i have also just added a new wallmote quad switch and it appears in the openzwave console but not in domotics. i have tried clearing the cache and app cache with no luck.

i have also reported it here with no responses yet.
https://www.domoticz.com/forum/viewtopic.php?f=6&t=24135&p=185978#p185978

@rwaaren
Copy link
Contributor

rwaaren commented Jul 11, 2018

Same issue on Chrome Version 67.0.3396.99 and Edge and Iexplorer on windows 10.
Even after clearing cache and appcache

@gizmocuz
Copy link
Contributor

None of you mention anything about the developer console, this is very important as it might be a javascript error
I updated two other systems here (both raspberry) to 9578, also no issues

@Biggav87 , that might be another issue, did you enable accept new hardware in the settings ?
Did you add it via the domoticz openzwave setup, or directly on the stick ?

@rwaaren
Copy link
Contributor

rwaaren commented Jul 11, 2018

@gizmocuz

developer console in chrome complain about missing file
blob:http://192.168.192.51:8084/9b5216c5-48c3-4bff-b389-b58726cd51a1:1

@Biggav87
Copy link

@gizmocuz This is all i have in the console, the non-unique error repeats a couple of time further.

When i added the new device (fresh out of the box) i clicked the 'include node' button under the 'node management' menu. i am adding this to an existing operational system and when the new device is added you get the usual popup identifying the device however it doesn't end up on the list.

image

@rwaaren
Copy link
Contributor

rwaaren commented Jul 11, 2018

Only replacing binary with V4.9756 ==>> same behaviour
Only replacing binary with V4.9754 ==>> Nodes reappear

@Biggav87
Copy link

excuse my ignorance @rwaaren what exactly did you change? and how?

@rwaaren
Copy link
Contributor

rwaaren commented Jul 11, 2018

@Biggav87 Sent you a PM on the forum but in short; I copied the locally kept previous binaries over the current domoticz binary on my test system and restarted domoticz. This is NOT an advise to do this on your production system as it might break stuff.

@ookonbekend
Copy link

@gizmocuz Fyi, I've the same issue

@gizmocuz
Copy link
Contributor

@Biggav87 , sorry, i can not see the file that is missing in the error.
You only copied the executable ? In that case, there is no file missing

@ookonbekend
Copy link

image

Not sure if this error is related or new, but this one is different compared to the other errors (like Biggav87's screenshot)

@gizmocuz
Copy link
Contributor

This is not a file from Domoticz
@ookonbekend , could you (or someone else) send me a PM on the forum, i would like to see this myself via remote access to domoticz...
Very strange, updated 3 machines with each an OZW usb stick, all working fine

@ookonbekend
Copy link

@gizmocuz Sorry, I can't assist you with a remote session (Policies, hopefully someone else can!)

Additional, when click Node management > Groups & Network, I get a empty screen and the following error

PS I use a Aeotec ZW090 Z-Stick Gen5 EU

image

@gizmocuz
Copy link
Contributor

@ookonbekend , no problem, i think @pipiche38 already contacted me, hopefully we get this sorted.
In your case, it looks that

json.htm?type=command&param=zwavegroupinfo&idx=<HW_IDX>

does not return any nodes, where HW_IDX is the idx in the hardware setup page

http://xxx.xxx.xxx.xxx:8080/json.htm?type=command&param=zwavegroupinfo&idx=<HW_IDX>

@ookonbekend
Copy link

Correct!
http://xxx.xxx.xxx.xxx:8080/json.htm?type=command&param=zwavegroupinfo&idx=<HW_IDX>

{
"result" : {
"MaxNoOfGroups" : 0
},
"status" : "OK",
"title" : "ZWaveGroupInfo"
}

@gizmocuz
Copy link
Contributor

I did change some bits in the code, but that should have the same functionality

Changed:

unsigned int homeID = boost::lexical_cast<unsigned int>(sd[0]);

to

unsigned int homeID = (unsigned int)atoi(sd[1].c_str());

there are a few lines with boost:lexical_cast i changes to 'atoi', double checked everything again

@gizmocuz
Copy link
Contributor

Wait a sec... i remember some zwave sticks with a large home id number. Could you export your database from the settings page, open this with an editor (for example with 'SQLite Expert Personal Edition')
Then open the ZWaveNodes table, and post the value of 'HomeID' ? (or a partly screenshot)

@ookonbekend
Copy link

Thanks for SQLite tip accessing the database ;-)
image

@gizmocuz
Copy link
Contributor

Thanks ! Yes, that is what is going wrong... hold on.. doing some testing/debugging

@pipiche38
Copy link
Contributor Author

Here is mine
sqlite> select * from ZWaveNodes;
1|20|3290841831|1|Controller|Aeotec ZW090 Z-Stick Gen5 EU|0
2|20|3290841831|2|Unknown|FIBARO System FGMS001-ZW5 Motion Sensor|0
3|20|3290841831|3|Unknown|EUROtronic EUR_SPIRITZ Wall Radiator Thermostat|0
4|20|3290841831|4|Unknown|EUROtronic EUR_SPIRITZ Wall Radiator Thermostat|0
5|20|3290841831|5|Unknown|EUROtronic EUR_SPIRITZ Wall Radiator Thermostat|0
6|20|3290841831|6|Unknown|EUROtronic EUR_SPIRITZ Wall Radiator Thermostat|0
7|20|3290841831|7|Unknown|EUROtronic EUR_SPIRITZ Wall Radiator Thermostat|0
8|20|3290841831|8|Unknown|EUROtronic EUR_SPIRITZ Wall Radiator Thermostat|0

@gizmocuz
Copy link
Contributor

Yep, also a large HomeID... fixed the screw up, code committed, and building a new beta
(That could take an hour because i changed some other things as well)

@ookonbekend
Copy link

Just updated to v4.9763
Great, all nodes visible again.
Many thanks for your efforts, much appreciated!

@pipiche38
Copy link
Contributor Author

Yes, I do confirm.

Thanks a lot

@Biggav87
Copy link

I have just updated to V4.9763 and they are all back.

Thanks All!

@bbqkees
Copy link

bbqkees commented Jul 12, 2018

This afternoon I restarted my machine. This evening I noticed my lights did not turn on. I was on 4.9760. Indeed no Z-Wave devices in the Z-Wave hardware page, the Z-Wave control panel is empty . However, after the update to 4.9763 still no Z-Wave devices and all Z-Wave switches are red.

There is still a populated ZWaveNodes table in the database. Home ID is just 8 digits long.

Do I need to restore a backup or is there another solution?

@gizmocuz
Copy link
Contributor

@bbqkees , maybe just disable/enable the hardware... this has nothing to do with this bug, as nodes where operational and visible in the control panel.
Could be that usb ports have swapped ?

@bbqkees
Copy link

bbqkees commented Jul 13, 2018

disable/enable did not work unfortunately.
USB device is persistent, and I can see it's still there with lsusb.
All other hardware is running fine, my Hue lights f.i. turn on in the evening.

The following appears in the Domoticz log, it times out 5 times:

OpenZWave: Starting...
2018-07-13 08:56:20.122 Status: OpenZWave: Version: 1.4-3102-g8bbcfb25-dirty
2018-07-13 08:56:21.127 Status: OpenZWave: Received timeout notification from HomeID: 0, NodeID: 255 (0xff) 

I'm running it on Debian Stretch (recently updated succesfully from Jessy).

@gizmocuz
Copy link
Contributor

Could you stop domoticz
edit the zwave configuration file (or restore a backup) in Config/zwcfg_xxxxx.xml (replace xxxx with the correct id)
Check if you have a xml node for node 0 or 255, remove them (be careful to keep the xml syntax intact)
Now start domoticz, it should work again

@bbqkees
Copy link

bbqkees commented Jul 13, 2018

I have no node with id 0 or 255 in that config file.

Could it be a hardware failure?

@gizmocuz
Copy link
Contributor

Hope not.... yes, you should not have node 0 or 255 ... do you use the binary version ?

@bbqkees
Copy link

bbqkees commented Jul 13, 2018

I'm sorry but what do you mean with 'binary version'?
I'm using the older Aeotec Zstick v2.

@gizmocuz
Copy link
Contributor

Are you compiling domoticz yourself ?
If you plug the stick in a windows system and launch domoticz, is it starting correctly ?

@gizmocuz
Copy link
Contributor

(But again, you should create another issue actually for this)

@bbqkees
Copy link

bbqkees commented Jul 13, 2018

Turns out the stick was turned off for some reason, normally a blue led is on when it is plugged in but it was not.
After I reinserted the stick the blue light came back on and everything is back.

@gizmocuz
Copy link
Contributor

@bbqkees , pfview... great to hear it's working again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants