Confused about which device belong to which zwave-node Topic is solved

For Z-Wave related questions in Domoticz
User avatar
jvdz
Posts: 1463
Joined: Tuesday 30 December 2014 20:25
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Westland/Netherlands
Contact:

Re: Confused about which device belong to which zwave-node

Post by jvdz » Sunday 07 January 2018 12:11

datagutten wrote:
Sunday 31 December 2017 15:14
You should send a pull request on this, it would be nice to have as a default feature.
Pull request is made: https://github.com/domoticz/domoticz/pull/2033
datagutten wrote:
Sunday 31 December 2017 15: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
Knipsel.PNG (56.74 KiB) Viewed 1040 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.

Jos

mischa
Posts: 106
Joined: Tuesday 07 April 2015 20:32
Target OS: Raspberry Pi
Domoticz version: 3.8872
Location: Heerhugowaard, The Netherlands
Contact:

Re: Confused about which device belong to which zwave-node

Post by mischa » Tuesday 23 January 2018 0:43

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

Mischa
Pi 2 - Pi 1 - Razzbery 2.0 - Fibaro FGD-211 - Fibaro FGD-212 - Fibaro FGRGBWM-441 (RGBW Module) - Fibaro FGBS321 (Universal Switch) - FGWPF-102 - TBK Home TZ67-G - Synology DS1515+ - Esp Easy (with wemos D1 mini)

SchattenMann
Posts: 77
Joined: Friday 09 October 2015 19:14
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Confused about which device belong to which zwave-node

Post by SchattenMann » Wednesday 14 February 2018 13:04

thank you @jvdz - this is the single best add to Domoticz since I can remember :D

As a suggestion, add a "link" on the device ID to filter the devices' table. This is how I'm doing it now (added to my themes custom.js)

Code: Select all

$("#devices tbody tr").each(function() {
			var html = $(this).children()[2].innerHTML;
			var className = $(this)[0].className;
			
			var res = html.match(/(\s[0-9]{3}\s[\(][0-9]x[a-zA-Z0-9]{2}[\)])$/g);
			
			var css = "";
			
			if(className == "odd") {
				css = 'style="color: #FFF"';
			}
			
			if(res){
				$(this).children()[2].innerHTML = $(this).children()[2].innerHTML.replace(res,'<a href="#/Devices" '+css+' onClick="filter(\''+res+'\')">'+res+'</a>');
			}
			
		});

		function filter (idx) {
			$("#devices_filter input").val(idx);
			$("#devices_filter input").trigger( "keyup" );
		};

mischa
Posts: 106
Joined: Tuesday 07 April 2015 20:32
Target OS: Raspberry Pi
Domoticz version: 3.8872
Location: Heerhugowaard, The Netherlands
Contact:

Re: Confused about which device belong to which zwave-node

Post by mischa » Wednesday 14 February 2018 18:58

@SchattenMann

where to put it, if you use the default theme?
Pi 2 - Pi 1 - Razzbery 2.0 - Fibaro FGD-211 - Fibaro FGD-212 - Fibaro FGRGBWM-441 (RGBW Module) - Fibaro FGBS321 (Universal Switch) - FGWPF-102 - TBK Home TZ67-G - Synology DS1515+ - Esp Easy (with wemos D1 mini)

SchattenMann
Posts: 77
Joined: Friday 09 October 2015 19:14
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Confused about which device belong to which zwave-node

Post by SchattenMann » Wednesday 14 February 2018 19:22

just create a custom.js file on /domoticz/www/styles/your_theme and paste

Code: Select all

jQuery(window).load(function() {


	
	setTimeout(function () {
		$("#devices tbody tr").each(function() {
			var html = $(this).children()[2].innerHTML;
			var className = $(this)[0].className;
			
			var res = html.match(/(\s[0-9]{3}\s[\(][0-9]x[a-zA-Z0-9]{2}[\)])$/g);
			
			var css = "";
			
			if(className == "odd") {
				css = 'style="color: #FFF"';
			}
			
			if(res){
				$(this).children()[2].innerHTML = $(this).children()[2].innerHTML.replace(res,'<a href="#/Devices" '+css+' onClick="filter(\''+res+'\')">'+res+'</a>');
			}
			
		});

		

	},2500);

});

function filter (idx) {
			$("#devices_filter input").val(idx);
			$("#devices_filter input").trigger( "keyup" );
		};

User avatar
madpatrick
Posts: 65
Joined: Monday 26 December 2016 13:17
Target OS: Linux
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: Confused about which device belong to which zwave-node

Post by madpatrick » Wednesday 01 August 2018 16:32

jvdz wrote:
Sunday 07 January 2018 12:11
datagutten wrote:
Sunday 31 December 2017 15:14
You should send a pull request on this, it would be nice to have as a default feature.
Pull request is made: https://github.com/domoticz/domoticz/pull/2033
datagutten wrote:
Sunday 31 December 2017 15: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 ?
ClearOS v7.5.0 - Toon2 v4.19.10 (rooted) - Domoticz v4.9700

User avatar
jvdz
Posts: 1463
Joined: Tuesday 30 December 2014 20:25
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Westland/Netherlands
Contact:

Re: Confused about which device belong to which zwave-node

Post by jvdz » Wednesday 01 August 2018 17:05

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. ;)

Jos

User avatar
madpatrick
Posts: 65
Joined: Monday 26 December 2016 13:17
Target OS: Linux
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: Confused about which device belong to which zwave-node

Post by madpatrick » Wednesday 01 August 2018 17:10

I'm currently still on v.3.8153, so that must the case ;-)

I did not make any changes to the database, but only adjusted the file.
After clearing the cache and refresh nothing is changed.
ClearOS v7.5.0 - Toon2 v4.19.10 (rooted) - Domoticz v4.9700

User avatar
jvdz
Posts: 1463
Joined: Tuesday 30 December 2014 20:25
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Westland/Netherlands
Contact:

Re: Confused about which device belong to which zwave-node

Post by jvdz » 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

User avatar
madpatrick
Posts: 65
Joined: Monday 26 December 2016 13:17
Target OS: Linux
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: Confused about which device belong to which zwave-node

Post by madpatrick » Wednesday 01 August 2018 17:23

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 :roll:
Thanks for the help
ClearOS v7.5.0 - Toon2 v4.19.10 (rooted) - Domoticz v4.9700

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests