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

For Z-Wave related questions in Domoticz
User avatar
jvdz
Posts: 1316
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 631 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" );
		};

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests