fiLLLip / namron-homey

Athom Homey app repository to add support for Namron Z-wave devices
GNU General Public License v3.0
8 stars 7 forks source link

switch #30

Open olast opened 3 years ago

olast commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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.