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

Unable to change zwave config #3728

Closed
3 tasks done
zackbcom opened this issue May 30, 2024 · 4 comments
Closed
3 tasks done

Unable to change zwave config #3728

zackbcom opened this issue May 30, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@zackbcom
Copy link
Contributor

zackbcom commented May 30, 2024

Checklist

  • I am not using Home Assistant. Or: a developer has told me to come here.
  • I have checked the troubleshooting section and my problem is not described there.
  • I have read the changelog and my problem is not mentioned there.

Deploy method

Docker

Z-Wave JS UI version

9.13.0

ZwaveJS version

12.9.1

Describe the bug

Unable to save config if zniffer is disabled.

prob needs another check in there for zwave enabled, zniffer disabled.

		differentPorts() {
			return (
                                (this.newZwave.enabled &&
					!this.newZniffer.enabled ) ||
				(this.newZwave.enabled &&
					this.newZniffer.enabled &&
					this.newZwave.port !== this.newZniffer.port) ||
				'Zniffer and Z-Wave ports must be different.'
			)
		}

SOURCE -

(this.newZwave.enabled &&

To Reproduce

have zwave enabled, have zniffer disabled. make change to zwave configs, save.

Expected behavior

able to save zwave config.

Additional context

image image
@zackbcom zackbcom added the bug Something isn't working label May 30, 2024
@robertsLando
Copy link
Member

@zackbcom Did you used the same port on zniffer? I mean if you enable it and clear the port and then disable it again does it works?

@robertsLando
Copy link
Member

This is better:

differentPorts() {
			return (
				!this.newZwave.enabled ||
				!this.newZniffer.enabled ||
				this.newZwave.port !== this.newZniffer.port ||
				'Zniffer and Z-Wave ports must be different.'
			)
		},

@zackbcom
Copy link
Contributor Author

@zackbcom Did you used the same port on zniffer? I mean if you enable it and clear the port and then disable it again does it works?

I tried both ways. wouldn't save with same port though.

New updates fixes it. thanks! Currently testing the zniffer, so far it's awesome.

@robertsLando
Copy link
Member

@zackbcom Thanks for your feedback 🙏🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants