help with blocky wissel

Moderator: leecollings

Post Reply
Gianni
Posts: 230
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Home@Belgium
Contact:

help with blocky wissel

Post by Gianni »

My dzvent wont work anymore sinds i moved from sonnof to Zwave.
The wissel send a command to the other switch but the other switch does not send a command to the wissel.

The strange thing is that it work by switching te lights on and off in domoticz self.

SO now i try to get this work with blocky but now i cannot turn on my lamp anymore :lol:
If i switch on of the 2 (wissel of schakelaar) then i a second it's turn of again :mrgreen:
So i think i made a loop but i cannot find how to fix=

My script in dzvents wit my sonoff

Code: Select all

local MASTER = 'Schakelaar_Living'
local SLAVE = 'Wissel_Living'

return {
	on = {
		devices = {
			MASTER,
			SLAVE
		}
	},
    execute = function(domoticz, device, triggerInfo)
        if (domoticz.EVENT_TYPE_TIMER == triggerInfo.type) then
            domoticz.log( 'timer event: '..tostring(triggerInfo.trigger)..'.', domoticz.LOG_INFO)

        elseif (domoticz.EVENT_TYPE_DEVICE == triggerInfo.type) then
            if (device.name == MASTER) then
                if (device.state ~= domoticz.devices(SLAVE).state) then
                    domoticz.devices(SLAVE).setState(device.state).silent()
                end
            elseif (device.name == SLAVE) then
                if (device.state ~= domoticz.devices(MASTER).state) then
                    domoticz.devices(MASTER).setState(device.state).silent()
                end
            end
        end
    end
}
and my blocky
Knipsel3.JPG
Knipsel3.JPG (57.68 KiB) Viewed 830 times
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: help with blocky wissel

Post by waaren »

Gianni wrote: Thursday 27 September 2018 15:58 My dzvent wont work anymore sinds i moved from sonnof to Zwave.
The wissel send a command to the other switch but the other switch does not send a command to the wissel.
You don't mention what version of domoticz / dzVents you are using but the (simplified) dzVents script below should work. If not, I am interested in the relevant loglines.

Code: Select all

local MASTER = 'Schakelaar_Living'
local SLAVE = 'Wissel_Living'

return {
    on = { devices = { MASTER, SLAVE }},
    
    execute = function(domoticz, item)
        if item.name == MASTER  then
            domoticz.devices(SLAVE).setState(item.state).silent().checkFirst()
        else
            domoticz.devices(MASTER).setState(item.state).silent().checkFirst()
        end
    end
}
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Gianni
Posts: 230
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Home@Belgium
Contact:

Re: help with blocky wissel

Post by Gianni »

hello Waaren

i'm using the latest stable version.
I'm at "avondschool" now but when i'm home i will try your script
Weird that the script worked before on sonoff but not on Neo. ;-)
Gianni
Posts: 230
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Home@Belgium
Contact:

Re: help with blocky wissel

Post by Gianni »

nope same effect :-(

when i switch on and off from the schakelaar living then the wissel stay the same
log

Code: Select all

 018-09-27 22:11:24.111 Status: dzVents: Debug: Dumping domoticz data to /home/gianni/domoticz/scripts/dzVents/domoticzData.lua
2018-09-27 22:11:24.151 Status: dzVents: Debug: Processing device-adapter for Schakelaar_Living: Switch device adapter
2018-09-27 22:11:24.151 Status: dzVents: Debug: dzVents version: 2.4.6
2018-09-27 22:11:24.151 Status: dzVents: Debug: Event triggers:
2018-09-27 22:11:24.151 Status: dzVents: Debug: - Device: Schakelaar_Living
2018-09-27 22:11:24.176 Status: dzVents: Info: Handling events for: "Schakelaar_Living", value: "On"
2018-09-27 22:11:24.176 Status: dzVents: Info: ------ Start internal script: test2: Device: "Schakelaar_Living (Controller)", Index: 59
2018-09-27 22:11:24.177 Status: dzVents: Debug: Processing device-adapter for Wissel_Living: Switch device adapter
2018-09-27 22:11:24.177 Status: dzVents: Debug: Constructed timed-command: On
2018-09-27 22:11:24.177 Status: dzVents: Debug: Constructed timed-command: On NOTRIGGER
2018-09-27 22:11:24.177 Status: dzVents: Debug: Constructed timed-command: On NOTRIGGER
2018-09-27 22:11:24.177 Status: dzVents: Info: ------ Finished test2
2018-09-27 22:11:24.177 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Schakelaar_Living (Controller)", Index: 59
2018-09-27 22:11:24.177 Status: dzVents: Debug: Constructed timed-command: On
2018-09-27 22:11:24.177 Status: dzVents: Debug: Constructed timed-command: On NOTRIGGER
2018-09-27 22:11:24.177 Status: dzVents: Info: ------ Finished Wissel_Living
2018-09-27 22:11:24.178 Status: dzVents: Debug: Commands sent to Domoticz:
2018-09-27 22:11:24.178 Status: dzVents: Debug: - Wissel_Living = On NOTRIGGER
2018-09-27 22:11:24.178 Status: dzVents: Debug: - Wissel_Living = On NOTRIGGER
2018-09-27 22:11:24.178 Status: dzVents: Debug: =====================================================
2018-09-27 22:11:24.248 Status: EventSystem: Script event triggered: /home/gianni/domoticz/dzVents/runtime/dzVents.lua
2018-09-27 22:11:29.189 Status: dzVents: Debug: Dumping domoticz data to /home/gianni/domoticz/scripts/dzVents/domoticzData.lua
2018-09-27 22:11:29.238 Status: dzVents: Debug: Processing device-adapter for Schakelaar_Living: Switch device adapter
2018-09-27 22:11:29.239 Status: dzVents: Debug: dzVents version: 2.4.6
2018-09-27 22:11:29.239 Status: dzVents: Debug: Event triggers:
2018-09-27 22:11:29.239 Status: dzVents: Debug: - Device: Schakelaar_Living
2018-09-27 22:11:29.280 Status: dzVents: Info: Handling events for: "Schakelaar_Living", value: "Off"
2018-09-27 22:11:29.281 Status: dzVents: Info: ------ Start internal script: test2: Device: "Schakelaar_Living (Controller)", Index: 59
2018-09-27 22:11:29.281 Status: dzVents: Debug: Processing device-adapter for Wissel_Living: Switch device adapter
2018-09-27 22:11:29.282 Status: dzVents: Debug: Constructed timed-command: Off
2018-09-27 22:11:29.282 Status: dzVents: Debug: Constructed timed-command: Off NOTRIGGER
2018-09-27 22:11:29.282 Status: dzVents: Debug: Constructed timed-command: Off NOTRIGGER
2018-09-27 22:11:29.282 Status: dzVents: Info: ------ Finished test2
2018-09-27 22:11:29.282 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Schakelaar_Living (Controller)", Index: 59
2018-09-27 22:11:29.282 Status: dzVents: Debug: Constructed timed-command: Off
2018-09-27 22:11:29.282 Status: dzVents: Debug: Constructed timed-command: Off NOTRIGGER
2018-09-27 22:11:29.282 Status: dzVents: Info: ------ Finished Wissel_Living
2018-09-27 22:11:29.282 Status: dzVents: Debug: Commands sent to Domoticz:
2018-09-27 22:11:29.282 Status: dzVents: Debug: - Wissel_Living = Off NOTRIGGER
2018-09-27 22:11:29.282 Status: dzVents: Debug: - Wissel_Living = Off NOTRIGGER
2018-09-27 22:11:29.282 Status: dzVents: Debug: =====================================================  
when i swith the wissel the schakelaar switch with it

log

Code: Select all

 2018-09-27 21:55:42.526 Status: dzVents: Debug: =====================================================
2018-09-27 21:55:42.597 Status: EventSystem: Script event triggered: /home/gianni/domoticz/dzVents/runtime/dzVents.lua
2018-09-27 21:55:45.256 Status: dzVents: Debug: Dumping domoticz data to /home/gianni/domoticz/scripts/dzVents/domoticzData.lua
2018-09-27 21:55:45.304 Status: dzVents: Debug: Processing device-adapter for Wissel_Living: Switch device adapter
2018-09-27 21:55:45.305 Status: dzVents: Debug: dzVents version: 2.4.6
2018-09-27 21:55:45.305 Status: dzVents: Debug: Event triggers:
2018-09-27 21:55:45.305 Status: dzVents: Debug: - Device: Wissel_Living
2018-09-27 21:55:45.349 Status: dzVents: Info: Handling events for: "Wissel_Living", value: "On"
2018-09-27 21:55:45.349 Status: dzVents: Info: ------ Start internal script: test2: Device: "Wissel_Living (Controller)", Index: 62
2018-09-27 21:55:45.350 Status: dzVents: Debug: Processing device-adapter for Schakelaar_Living: Switch device adapter
2018-09-27 21:55:45.350 Status: dzVents: Debug: Constructed timed-command: On
2018-09-27 21:55:45.350 Status: dzVents: Debug: Constructed timed-command: On NOTRIGGER
2018-09-27 21:55:45.350 Status: dzVents: Debug: Constructed timed-command: On NOTRIGGER
2018-09-27 21:55:45.350 Status: dzVents: Info: ------ Finished test2
2018-09-27 21:55:45.350 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Wissel_Living (Controller)", Index: 62
2018-09-27 21:55:45.350 Status: dzVents: Debug: Constructed timed-command: On
2018-09-27 21:55:45.350 Status: dzVents: Debug: Constructed timed-command: On NOTRIGGER
2018-09-27 21:55:45.350 Status: dzVents: Info: ------ Finished Wissel_Living
2018-09-27 21:55:45.350 Status: dzVents: Debug: Commands sent to Domoticz:
2018-09-27 21:55:45.350 Status: dzVents: Debug: - Schakelaar_Living = On NOTRIGGER
2018-09-27 21:55:45.350 Status: dzVents: Debug: - Schakelaar_Living = On NOTRIGGER
2018-09-27 21:55:45.351 Status: dzVents: Debug: =====================================================
2018-09-27 21:55:45.421 Status: EventSystem: Script event triggered: /home/gianni/domoticz/dzVents/runtime/dzVents.lua
2018-09-27 21:55:48.678 Status: dzVents: Debug: Dumping domoticz data to /home/gianni/domoticz/scripts/dzVents/domoticzData.lua
2018-09-27 21:55:48.715 Status: dzVents: Debug: Processing device-adapter for Wissel_Living: Switch device adapter
2018-09-27 21:55:48.715 Status: dzVents: Debug: dzVents version: 2.4.6
2018-09-27 21:55:48.715 Status: dzVents: Debug: Event triggers:
2018-09-27 21:55:48.715 Status: dzVents: Debug: - Device: Wissel_Living
2018-09-27 21:55:48.740 Status: dzVents: Info: Handling events for: "Wissel_Living", value: "Off"
2018-09-27 21:55:48.740 Status: dzVents: Info: ------ Start internal script: test2: Device: "Wissel_Living (Controller)", Index: 62
2018-09-27 21:55:48.741 Status: dzVents: Debug: Processing device-adapter for Schakelaar_Living: Switch device adapter
2018-09-27 21:55:48.741 Status: dzVents: Debug: Constructed timed-command: Off
2018-09-27 21:55:48.742 Status: dzVents: Debug: Constructed timed-command: Off NOTRIGGER
2018-09-27 21:55:48.742 Status: dzVents: Debug: Constructed timed-command: Off NOTRIGGER
2018-09-27 21:55:48.742 Status: dzVents: Info: ------ Finished test2
2018-09-27 21:55:48.742 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Wissel_Living (Controller)", Index: 62
2018-09-27 21:55:48.742 Status: dzVents: Debug: Constructed timed-command: Off
2018-09-27 21:55:48.742 Status: dzVents: Debug: Constructed timed-command: Off NOTRIGGER
2018-09-27 21:55:48.742 Status: dzVents: Info: ------ Finished Wissel_Living
2018-09-27 21:55:48.742 Status: dzVents: Debug: Commands sent to Domoticz:
2018-09-27 21:55:48.742 Status: dzVents: Debug: - Schakelaar_Living = Off NOTRIGGER
2018-09-27 21:55:48.742 Status: dzVents: Debug: - Schakelaar_Living = Off NOTRIGGER
2018-09-27 21:55:48.742 Status: dzVents: Debug: ===================================================== 
when i switch the wissel on and then off on the schakelaar the wissel stay on.

Code: Select all

Dumping domoticz data to /home/gianni/domoticz/scripts/dzVents/domoticzData.lua
2018-09-27 22:01:18.872 Status: dzVents: Debug: Processing device-adapter for Wissel_Living: Switch device adapter
2018-09-27 22:01:18.872 Status: dzVents: Debug: dzVents version: 2.4.6
2018-09-27 22:01:18.872 Status: dzVents: Debug: Event triggers:
2018-09-27 22:01:18.872 Status: dzVents: Debug: - Device: Wissel_Living
2018-09-27 22:01:18.897 Status: dzVents: Info: Handling events for: "Wissel_Living", value: "On"
2018-09-27 22:01:18.897 Status: dzVents: Info: ------ Start internal script: test2: Device: "Wissel_Living (Controller)", Index: 62
2018-09-27 22:01:18.898 Status: dzVents: Debug: Processing device-adapter for Schakelaar_Living: Switch device adapter
2018-09-27 22:01:18.899 Status: dzVents: Debug: Constructed timed-command: On
2018-09-27 22:01:18.899 Status: dzVents: Debug: Constructed timed-command: On NOTRIGGER
2018-09-27 22:01:18.899 Status: dzVents: Debug: Constructed timed-command: On NOTRIGGER
2018-09-27 22:01:18.899 Status: dzVents: Info: ------ Finished test2
2018-09-27 22:01:18.899 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Wissel_Living (Controller)", Index: 62
2018-09-27 22:01:18.899 Status: dzVents: Debug: Constructed timed-command: On
2018-09-27 22:01:18.899 Status: dzVents: Debug: Constructed timed-command: On NOTRIGGER
2018-09-27 22:01:18.899 Status: dzVents: Info: ------ Finished Wissel_Living
2018-09-27 22:01:18.899 Status: dzVents: Debug: Commands sent to Domoticz:
2018-09-27 22:01:18.899 Status: dzVents: Debug: - Schakelaar_Living = On NOTRIGGER
2018-09-27 22:01:18.899 Status: dzVents: Debug: - Schakelaar_Living = On NOTRIGGER
2018-09-27 22:01:18.899 Status: dzVents: Debug: ===================================================== 

so if i activate the lamp from wissel the schakelaar living get activted to.
If i shut down the lamp from wissel the schakelaar is deactivated to.
if i activate the lamp from schakelaar the wissel stay off
if i shutdown from schakelaar the wissel not change

It's looks like the schakelaar did not give the command to the wissel.

this is the log when i switch the schakelaar living from within domoticz and when the wissel switch together with the schakelaar

Code: Select all

 2018-09-27 22:16:05.428 OpenZWave: Domoticz has send a Switch command! NodeID: 4 (0x04)
2018-09-27 22:16:05.436 (Controller) Light/Switch (Schakelaar_Living)
2018-09-27 22:16:05.641 OpenZWave: Domoticz has send a Switch command! NodeID: 5 (0x05)
2018-09-27 22:16:05.645 (Controller) Light/Switch (Wissel_Living)
2018-09-27 22:16:05.427 Status: User: gianni initiated a switch command (59/Schakelaar_Living/On)
2018-09-27 22:16:05.499 Status: dzVents: Debug: Dumping domoticz data to /home/gianni/domoticz/scripts/dzVents/domoticzData.lua
2018-09-27 22:16:05.529 Status: dzVents: Debug: Processing device-adapter for Schakelaar_Living: Switch device adapter
2018-09-27 22:16:05.529 Status: dzVents: Debug: dzVents version: 2.4.6
2018-09-27 22:16:05.529 Status: dzVents: Debug: Event triggers:
2018-09-27 22:16:05.530 Status: dzVents: Debug: - Device: Schakelaar_Living
2018-09-27 22:16:05.555 Status: dzVents: Info: Handling events for: "Schakelaar_Living", value: "On"
2018-09-27 22:16:05.555 Status: dzVents: Info: ------ Start internal script: test2: Device: "Schakelaar_Living (Controller)", Index: 59
2018-09-27 22:16:05.556 Status: dzVents: Debug: Processing device-adapter for Wissel_Living: Switch device adapter
2018-09-27 22:16:05.556 Status: dzVents: Debug: Constructed timed-command: On
2018-09-27 22:16:05.556 Status: dzVents: Debug: Constructed timed-command: On NOTRIGGER
2018-09-27 22:16:05.556 Status: dzVents: Debug: Constructed timed-command: On NOTRIGGER
2018-09-27 22:16:05.556 Status: dzVents: Info: ------ Finished test2
2018-09-27 22:16:05.556 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Schakelaar_Living (Controller)", Index: 59
2018-09-27 22:16:05.556 Status: dzVents: Debug: Constructed timed-command: On
2018-09-27 22:16:05.557 Status: dzVents: Debug: Constructed timed-command: On NOTRIGGER
2018-09-27 22:16:05.557 Status: dzVents: Info: ------ Finished Wissel_Living
2018-09-27 22:16:05.557 Status: dzVents: Debug: Commands sent to Domoticz:
2018-09-27 22:16:05.557 Status: dzVents: Debug: - Wissel_Living = On NOTRIGGER
2018-09-27 22:16:05.557 Status: dzVents: Debug: - Wissel_Living = On NOTRIGGER
2018-09-27 22:16:05.557 Status: dzVents: Debug: =====================================================
2018-09-27 22:16:05.628 Status: EventSystem: Script event triggered: /home/gianni/domoticz/dzVents/runtime/dzVents.lua
2018-09-27 22:16:08.849 OpenZWave: Domoticz has send a Switch command! NodeID: 4 (0x04)
2018-09-27 22:16:08.856 (Controller) Light/Switch (Schakelaar_Living)
2018-09-27 22:16:08.848 Status: User: gianni initiated a switch command (59/Schakelaar_Living/Off)
2018-09-27 22:16:08.919 Status: dzVents: Debug: Dumping domoticz data to /home/gianni/domoticz/scripts/dzVents/domoticzData.lua
2018-09-27 22:16:08.960 Status: dzVents: Debug: Processing device-adapter for Schakelaar_Living: Switch device adapter
2018-09-27 22:16:08.960 Status: dzVents: Debug: dzVents version: 2.4.6
2018-09-27 22:16:08.960 Status: dzVents: Debug: Event triggers:
2018-09-27 22:16:08.960 Status: dzVents: Debug: - Device: Schakelaar_Living
2018-09-27 22:16:08.986 Status: dzVents: Info: Handling events for: "Schakelaar_Living", value: "Off"
2018-09-27 22:16:08.986 Status: dzVents: Info: ------ Start internal script: test2: Device: "Schakelaar_Living (Controller)", Index: 59
2018-09-27 22:16:08.987 Status: dzVents: Debug: Processing device-adapter for Wissel_Living: Switch device adapter
2018-09-27 22:16:08.987 Status: dzVents: Debug: Constructed timed-command: Off
2018-09-27 22:16:08.987 Status: dzVents: Debug: Constructed timed-command: Off NOTRIGGER
2018-09-27 22:16:08.987 Status: dzVents: Debug: Constructed timed-command: Off NOTRIGGER
2018-09-27 22:16:08.987 Status: dzVents: Info: ------ Finished test2
2018-09-27 22:16:08.987 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Schakelaar_Living (Controller)", Index: 59
2018-09-27 22:16:08.987 Status: dzVents: Debug: Constructed timed-command: Off
2018-09-27 22:16:08.988 Status: dzVents: Debug: Constructed timed-command: Off NOTRIGGER
2018-09-27 22:16:08.988 Status: dzVents: Info: ------ Finished Wissel_Living
2018-09-27 22:16:08.988 Status: dzVents: Debug: Commands sent to Domoticz:
2018-09-27 22:16:08.988 Status: dzVents: Debug: - Wissel_Living = Off NOTRIGGER
2018-09-27 22:16:08.988 Status: dzVents: Debug: - Wissel_Living = Off NOTRIGGER
2018-09-27 22:16:08.988 Status: dzVents: Debug: =====================================================
2018-09-27 22:16:09.095 OpenZWave: Domoticz has send a Switch command! NodeID: 5 (0x05)
2018-09-27 22:16:09.098 (Controller) Light/Switch (Wissel_Living) 
i have compared the script from manual switch the schakelaar living and from within domoticz and this is the only change

Code: Select all

 2018-09-27 22:16:05.428 OpenZWave: Domoticz has send a Switch command! NodeID: 4 (0x04)
2018-09-27 22:16:05.436 (Controller) Light/Switch (Schakelaar_Living)
2018-09-27 22:16:05.641 OpenZWave: Domoticz has send a Switch command! NodeID: 5 (0x05)
2018-09-27 22:16:05.645 (Controller) Light/Switch (Wissel_Living)
i dont think it's the switch himself who is broken because i have the same setup in the kitchen and i got the same problem
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: help with blocky wissel

Post by waaren »

Gianni wrote: Thursday 27 September 2018 21:46 nope same effect :-(
when i switch on and off from the schakelaar living then the wissel stay the same
what I see in your logs that there are two scripts reacting to these switches. Can you deactivate the other script and only execute mine ?

Code: Select all

2018-09-27 22:11:24.176 Status: dzVents: Info: ------ Start internal script: test2: Device: "Schakelaar_Living (Controller)", Index: 59
2018-09-27 22:11:24.177 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Schakelaar_Living (Controller)", Index: 59
2018-09-27 22:11:29.281 Status: dzVents: Info: ------ Start internal script: test2: Device: "Schakelaar_Living (Controller)", Index: 59
2018-09-27 22:11:29.282 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Schakelaar_Living (Controller)", Index: 59

2018-09-27 22:16:05.555 Status: dzVents: Info: ------ Start internal script: test2: Device: "Schakelaar_Living (Controller)", Index: 59
2018-09-27 22:16:05.556 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Schakelaar_Living (Controller)", Index: 59
2018-09-27 22:16:08.986 Status: dzVents: Info: ------ Start internal script: test2: Device: "Schakelaar_Living (Controller)", Index: 59
2018-09-27 22:16:08.987 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Schakelaar_Living (Controller)", Index: 59
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Gianni
Posts: 230
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Home@Belgium
Contact:

Re: help with blocky wissel

Post by Gianni »

hello Waaren

that was strange because all the other scripst where offline.
So i tought to start with a fresh image and do it all over again.
It's worse then before :-(
Now the Sch does not update anymore in domoticz when i manual switch on and off (its stay off)
The wissels works like before and update the domoticz switch.

So first power on Sch_Living from within domoticz.
The Sch_living and the Wissel come up in domoticz and on the switch

Code: Select all

 2018-09-28 23:07:50.001 OpenZWave: Domoticz has send a Switch command! NodeID: 8 (0x08)
2018-09-28 23:07:50.007 (Zwave_Controller) Light/Switch (Sch_Living)
2018-09-28 23:07:50.218 OpenZWave: Domoticz has send a Switch command! NodeID: 5 (0x05)
2018-09-28 23:07:50.222 (Zwave_Controller) Light/Switch (Wissel_Living)
2018-09-28 23:07:50.000 Status: User: Admin initiated a switch command (25/Sch_Living/On)
2018-09-28 23:07:50.145 Status: dzVents: Info: Handling events for: "Sch_Living", value: "On"
2018-09-28 23:07:50.145 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Sch_Living (Zwave_Controller)", Index: 25
2018-09-28 23:07:50.147 Status: dzVents: Info: ------ Finished Wissel_Living
2018-09-28 23:07:50.203 Status: EventSystem: Script event triggered: /home/gianni/domoticz/dzVents/runtime/dzVents.lua
2018-09-28 23:07:54.140 OpenZWave: Domoticz has send a Switch command! NodeID: 8 (0x08)
2018-09-28 23:07:54.147 (Zwave_Controller) Light/Switch (Sch_Living)
2018-09-28 23:07:54.311 OpenZWave: Domoticz has send a Switch command! NodeID: 5 (0x05)
2018-09-28 23:07:54.314 (Zwave_Controller) Light/Switch (Wissel_Living)
2018-09-28 23:07:54.140 Status: User: Admin initiated a switch command (25/Sch_Living/Off)
2018-09-28 23:07:54.245 Status: dzVents: Info: Handling events for: "Sch_Living", value: "Off"
2018-09-28 23:07:54.245 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Sch_Living (Zwave_Controller)", Index: 25
2018-09-28 23:07:54.246 Status: dzVents: Info: ------ Finished Wissel_Living
2018-09-28 23:07:54.301 Status: EventSystem: Script event triggered: /home/gianni/domoticz/dzVents/runtime/dzVents.lua 
Now the Wissel from domoticz
The Sch_living and the Wissel come up in domoticz and on the switch

Code: Select all

 2018-09-28 23:09:29.877 Status: User: Admin initiated a switch command (15/Wissel_Living/On)
2018-09-28 23:09:29.993 Status: dzVents: Info: Handling events for: "Wissel_Living", value: "On"
2018-09-28 23:09:29.993 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Wissel_Living (Zwave_Controller)", Index: 15
2018-09-28 23:09:29.994 Status: dzVents: Info: ------ Finished Wissel_Living
2018-09-28 23:09:30.052 OpenZWave: Domoticz has send a Switch command! NodeID: 8 (0x08)
2018-09-28 23:09:30.055 (Zwave_Controller) Light/Switch (Sch_Living)
2018-09-28 23:09:30.050 Status: EventSystem: Script event triggered: /home/gianni/domoticz/dzVents/runtime/dzVents.lua
2018-09-28 23:09:59.152 OpenZWave: Domoticz has send a Switch command! NodeID: 5 (0x05)
2018-09-28 23:09:59.159 (Zwave_Controller) Light/Switch (Wissel_Living)
2018-09-28 23:09:59.354 OpenZWave: Domoticz has send a Switch command! NodeID: 8 (0x08)
2018-09-28 23:09:59.357 (Zwave_Controller) Light/Switch (Sch_Living)
2018-09-28 23:09:59.151 Status: User: Admin initiated a switch command (15/Wissel_Living/Off)
2018-09-28 23:09:59.279 Status: dzVents: Info: Handling events for: "Wissel_Living", value: "Off"
2018-09-28 23:09:59.280 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Wissel_Living (Zwave_Controller)", Index: 15
2018-09-28 23:09:59.281 Status: dzVents: Info: ------ Finished Wissel_Living
2018-09-28 23:09:59.336 Status: EventSystem: Script event triggered: /home/gianni/domoticz/dzVents/runtime/dzVents.lua 
Now manual mode from the wissel
The wissel come up and the Sch_Living to

Code: Select all

 2018-09-28 23:11:23.258 (Zwave_Controller) Light/Switch (Wissel_Living)
2018-09-28 23:11:23.474 OpenZWave: Domoticz has send a Switch command! NodeID: 8 (0x08)
2018-09-28 23:11:23.479 (Zwave_Controller) Light/Switch (Sch_Living)
2018-09-28 23:11:23.387 Status: dzVents: Info: Handling events for: "Wissel_Living", value: "On"
2018-09-28 23:11:23.387 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Wissel_Living (Zwave_Controller)", Index: 15
2018-09-28 23:11:23.390 Status: dzVents: Info: ------ Finished Wissel_Living
2018-09-28 23:11:23.454 Status: EventSystem: Script event triggered: /home/gianni/domoticz/dzVents/runtime/dzVents.lua
2018-09-28 23:11:26.685 (Zwave_Controller) Light/Switch (Wissel_Living)
2018-09-28 23:11:26.887 OpenZWave: Domoticz has send a Switch command! NodeID: 8 (0x08)
2018-09-28 23:11:26.890 (Zwave_Controller) Light/Switch (Sch_Living)
2018-09-28 23:11:26.792 Status: dzVents: Info: Handling events for: "Wissel_Living", value: "Off"
2018-09-28 23:11:26.792 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Wissel_Living (Zwave_Controller)", Index: 15
2018-09-28 23:11:26.793 Status: dzVents: Info: ------ Finished Wissel_Living
2018-09-28 23:11:26.849 Status: EventSystem: Script event triggered: /home/gianni/domoticz/dzVents/runtime/dzVents.lua 
Now manual from the Sch_Living
Only the sch_Living come up not the wissel.
NO events in domoticz log???

Now Manual on the wissel en power off on the Sch_Living.
Power on bold switches come up but power of only the Sch_Living go off (lamps or off to) but the wissel stay on.

Code: Select all

 2018-09-28 23:15:15.069 OpenZWave: Domoticz has send a Switch command! NodeID: 8 (0x08)
2018-09-28 23:15:15.073 (Zwave_Controller) Light/Switch (Sch_Living)
2018-09-28 23:15:15.004 Status: dzVents: Info: Handling events for: "Wissel_Living", value: "On"
2018-09-28 23:15:15.004 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Wissel_Living (Zwave_Controller)", Index: 15
2018-09-28 23:15:15.006 Status: dzVents: Info: ------ Finished Wissel_Living
2018-09-28 23:15:15.063 Status: EventSystem: Script event triggered: /home/gianni/domoticz/dzVents/runtime/dzVents.lua 
Now manual from the Sch_Living and power off on the wissel.
switch on the SCh_Living come up not on the Wissel (lamp on)
Manuals switch the wissel on (lamp stay on)
And then switch off from the wissel and the Sch_Lvinig go off 2

Code: Select all

 2018-09-28 23:17:41.278 (Zwave_Controller) Light/Switch (Wissel_Living)
2018-09-28 23:17:41.432 OpenZWave: Domoticz has send a Switch command! NodeID: 8 (0x08)
2018-09-28 23:17:41.436 (Zwave_Controller) Light/Switch (Sch_Living)
2018-09-28 23:17:41.374 Status: dzVents: Info: Handling events for: "Wissel_Living", value: "On"
2018-09-28 23:17:41.374 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Wissel_Living (Zwave_Controller)", Index: 15
2018-09-28 23:17:41.376 Status: dzVents: Info: ------ Finished Wissel_Living
2018-09-28 23:17:41.431 Status: EventSystem: Script event triggered: /home/gianni/domoticz/dzVents/runtime/dzVents.lua
2018-09-28 23:17:42.685 (Zwave_Controller) Light/Switch (Wissel_Living)
2018-09-28 23:17:42.805 Status: dzVents: Info: Handling events for: "Wissel_Living", value: "Off"
2018-09-28 23:17:42.805 Status: dzVents: Info: ------ Start internal script: Wissel_Living: Device: "Wissel_Living (Zwave_Controller)", Index: 15
2018-09-28 23:17:42.806 Status: dzVents: Info: ------ Finished Wissel_Living 
I dont get it anymore i have the same setup in my kitchen and exact the same errors.
But like i say ,now bold the Sch does not come up anymore in domoticz with manual manipulation en yesterday well.
Today i put my sonff's to my second floor ,reconfigured the name's change the script and the 2 wissels working perfect :-)

THx for trying to figure out this problem
Gianni
Posts: 230
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Home@Belgium
Contact:

Re: help with blocky wissel

Post by Gianni »

just find something out by accident.
If i put on the Wissel then the Sch go on to.
But if i turn of the Sch the wissel did not change.
BUT if i power on the Sch again on and THEN power off the wissel turn of 2 and then it's works .
But if i manupilate te wissel again i need to do the dubbel tap on the Sch everytime?
And then domoticz update 2 with the correct state in the dashboard.

Shouild it be somtehing to do with these settings?
I enabeled now and see if it's changed tommorow.

Code: Select all

Relay On/Off States Saved Enable:


This parameter defines the on/off status of relay needs to be saved. The status will be saved when relay status is changed if this parameter is set to '1'. Otherwise the relay stataus is not saved. The Light Switch will restore the relay On/Off status when powered again.
Gianni
Posts: 230
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Home@Belgium
Contact:

Re: help with blocky wissel

Post by Gianni »

found out it's not the script it's a problem with the 1 gang Neo Switches.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest