Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

switch #30

Open
olast opened this issue Nov 5, 2020 · 4 comments
Open

switch #30

olast opened this issue Nov 5, 2020 · 4 comments

Comments

@olast
Copy link

olast commented Nov 5, 2020

I know Namron "has taken over". But since "taken over" in this case means nothing, I'll give it a try:
I have added a Namron wall switch (z-wave). Homey does not detect state changes when using impulse switch to change state.

When looking at raw messages, it seems like the switch is sending state to homey, but the driver does nothing.

Is there one code line I could add by myself and cli install the package?

v5!

@fiLLLip
Copy link
Owner

fiLLLip commented Nov 5, 2020

Which Namron switch is this? On the wall panels, I use the "When... A scene has been activated" and Group 2 is top row, on is left and off is right to react to button pushes in flows.

@olast
Copy link
Author

olast commented Nov 5, 2020

Build in switch, Namron Z-Wave Switch 400W actuator.
https://www.elektroimportoren.no/namron-z-wave-switch-400w/4512715/Product.html
Using plain impuls switch (Elko) to change states, which the Homey/driver does not notice.

@fiLLLip
Copy link
Owner

fiLLLip commented Nov 5, 2020

If you look at the dimmers, e.g. 3wire dimmer, they have the registerReportListener -> https://github.com/fiLLLip/namron-homey/blob/master/drivers/ZW_Dimmer_3wire/device.js#L28

Which frames do you see on the ZWave monitoring? Maybe you could try a direct copy paste like:

                this.registerReportListener('BASIC', 'BASIC_REPORT', (report) => {
			if (report && report.hasOwnProperty('Current Value')) {
				if (this.hasCapability('onoff')) this.setCapabilityValue('onoff', report['Current Value'] > 0);
			}
		});

@olast
Copy link
Author

olast commented Nov 6, 2020

Thanks! Works!
But now I cant control the switch by the app. I'll take a look, thank you for pointing me in the right direction.

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

No branches or pull requests

2 participants