datagutten wrote: ↑Sunday 31 December 2017 14:14
Edit:
When using whitespace the search does not work, so the underscore must be there.
I see you changed your post, but I have implemented it in the same was as displayed in the Zwave hardware devices list.
It now displays like this:
Knipsel.PNG (56.74 KiB) Viewed 3413 times
What I do to check things is just type the name of the ZWave hardware "ZWAVE" and then sort on the Hardware column so the display has the same sequence as the ZWave hardware devices list.
First of all, thank you for this addition. Makes life a lot easier, switching from PI to Synology and have to include 30 nodes.
As some of the devices only appear after a while or for example when clicked on like the triple click of Fibaro devices.
this could take a while.
Not sure if possible but would it be a nice addition if the table could be grouped
Something like this.
Hardware
NodeID
Devices
Perhaps there is other hardware that could also benefit from this approach, like evohome, rfxcomm, ect ect
datagutten wrote: ↑Sunday 31 December 2017 14:14
Edit:
When using whitespace the search does not work, so the underscore must be there.
I see you changed your post, but I have implemented it in the same was as displayed in the Zwave hardware devices list.
It now displays like this: Knipsel.PNG
What I do to check things is just type the name of the ZWave hardware "ZWAVE" and then sort on the Hardware column so the display has the same sequence as the ZWave hardware devices list.
Jos
Hello Jos,
I've adjusted the file /app/DevicesController.js but i don't see any changes in list.
Do i need to chage the database also as in your previous post ? or should changing the file be enough ?
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.14b on Tab8" =-
This patch is part for the current release & beta, but it should appear right away after you clear the browser cache and refresh the page.
No other changes required.
jvdz wrote: ↑Wednesday 01 August 2018 17:13
Check with F12 in Chrome whether the source looks correct as it is really a pretty simple change to the page generation for the Zwave devices.
Jos
That was the problem
Thanks for the help
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.14b on Tab8" =-
Hmm, I had it like this in the previous domoticz version. Now, updated and running Version: 4.10730 , I do no longer see the node-id , next to the controller (I want it to show as mentioned in this thread)
Am I doing something wrong or what do I need to change in the version I am running now... ?
jvdz wrote: ↑Friday 29 December 2017 22:16
Guess I have too much time on my hands.
...so was playing with file /www/app/DevicesController.js, which generates the Domoticz devices webpage.
Added a few lines of code to extract the ZWave DeviceID from the DeviceID and concatenated that to the Hardware name to allow for sorting in the Hardware name to group all devices by ZWave device. This is actually a pretty simple modification to accomplish what is wanted here.
This is the diff for the file in case you are interested to play and comment on this:
+++ b/www/app/DevicesController.js
@@ -384,6 +384,13 @@ define(['app'], function (app) {
itemSubIcons += ' <img src="images/empty16.png">';
}
var ID = item.ID;
+ if (item.HardwareTypeVal != undefined && item.HardwareTypeVal == 21) {
+ var ZWID = item.ID.substr(-4, 2);
+ if (ZWID == '00') {
+ ZWID = item.ID.substr(-2, 2);
+ }
+ item.HardwareName = item.HardwareName + ' ' + ZWID;
+ }
if (item.Type == "Lighting 1") {
ID = String.fromCharCode(item.ID);
}
Jos
Hmmm, I tried just adding this piece of code. That didn't work. Now I replaced a part that looks like this with this part and if still doesn't seem to do anything.
Can you tell me exactly where this goes?
Did you clear your browser cache to ensure it did load the updated DevicesController.js?
You can check it also in developer mode (F12), to see whether you have the modified code loaded.
EDIT: I don't see DevicesController.js in the current version anymore so which file did you change?
jvdz wrote: ↑Wednesday 29 May 2019 10:04
Did you clear your browser cache to ensure it did load the updated DevicesController.js?
Did a full reboot of my Domoticz server
Clearing the cache is a PC side thing, nothing to do with the Domoticz server itself!
It looks like the last modification I made should still be in there, which is the highlighting of the Hardware id part in the deviceId.
Altering the .js file like you suggested didn't work or I am doing it wrong... the latter is most likely the case.
I don't see any highlighting in the ID when searching.
vinisz wrote: ↑Sunday 12 May 2019 9:55
Hmm, I had it like this in the previous domoticz version. Now, updated and running Version: 4.10730 , I do no longer see the node-id , next to the controller (I want it to show as mentioned in this thread)
Am I doing something wrong or what do I need to change in the version I am running now... ?
I am running version 4.10717; is this already added? (I did not modify the domoticz code)
It will not be added anymore. If you want it, you need to add it yourself.
Currently I'm having a hard time altering the files as TeamViewer has for some reason flagged my usage as commercial