Switch turns dimmer on and off and on again...

Moderator: leecollings

Post Reply
michah
Posts: 4
Joined: Saturday 02 May 2020 15:54
Target OS: Raspberry Pi / ODroid
Domoticz version: dev-fork
Location: The Netherlands
Contact:

Switch turns dimmer on and off and on again...

Post by michah »

Hello,

I have a dimmer configured in Domoticz with a [Light/Switch] and a [Usage] and the switch behaves in a weird way. Could someone please help me and find out what I am doing wrong. My problem could be related to: Spurious events...

0. Initial situation is normal: the dimmer itself (the light) is off as is the [Light/Switch] on the Switches page in Domoticz.

1. Then when I click the [Light/Switch] in Domoticz to turn it on, the [Light/Switch] switches to On and immediately to Off and to On again. The dimmer is on after that.

2. Then when I click the [Light/Switch] in Domoticz to turn it off, the [Light/Switch] switches to Off and immediately back to On again. The dimmer is off after that. This is the weird situation where Domoticz says the light is on when in fact it is off.

3. Then when I click the [Light/Switch] in Domoticz, the [Light/Switch] switches to Off. The dimmer stays off after that.

I have started Domoticz with loglevel 'all' and the following shows the logging I get at each of the previously described steps.

Logging at step 1:

Code: Select all

2020-05-02 16:48:17.308 (Aeotec Z-Stick Gen5) Usage (Kroonluchter Verbruik)
2020-05-02 16:48:17.365 (Aeotec Z-Stick Gen5) General/kWh (kWh Meter)
2020-05-02 16:48:17.293 Debug: SQLH UpdateValueInt Kroonluchter Verbruik HwID:7 DevID:0000401 Type:248 sType:1 nValue:0 sValue:0.0
2020-05-02 16:48:17.364 Debug: SQLH UpdateValueInt kWh Meter HwID:7 DevID:00000401 Type:243 sType:29 nValue:0 sValue:0.000;1170.000
2020-05-02 16:48:18.471 OpenZWave: Domoticz has send a Switch command!, Level: 255, NodeID: 4 (0x04)
2020-05-02 16:48:18.553 (Aeotec Z-Stick Gen5) Light/Switch (Kroonluchter)
2020-05-02 16:48:18.755 (Aeotec Z-Stick Gen5) Light/Switch (Kroonluchter)
2020-05-02 16:48:18.937 (Aeotec Z-Stick Gen5) Light/Switch (Kroonluchter)
2020-05-02 16:48:18.467 Status: User: Admin initiated a switch command (21/Kroonluchter/On)
2020-05-02 16:48:18.468 Debug: MAIN SwitchLight idx:21 cmd:On lvl:-1
2020-05-02 16:48:18.469 Debug: MAIN SwitchLightInt : switchcmd:On level:-1 HWid:7 sd:7 00000401 1 244 73 7
2020-05-02 16:48:18.470 Debug: MAIN SwitchLightInt : switchcmd=="On" || level < 0, new level:51
2020-05-02 16:48:18.482 Debug: SQLH HandleOnOffAction: OnAction:
2020-05-02 16:48:18.534 Debug: SQLH UpdateValueInt Kroonluchter HwID:7 DevID:00000401 Type:244 sType:73 nValue:1 sValue:51
2020-05-02 16:48:18.636 Debug: SQLH HandleOnOffAction: OffAction:
2020-05-02 16:48:18.714 Debug: SQLH UpdateValueInt Kroonluchter HwID:7 DevID:00000401 Type:244 sType:73 nValue:0 sValue:0
2020-05-02 16:48:18.829 Debug: SQLH HandleOnOffAction: OnAction:
2020-05-02 16:48:18.911 Debug: SQLH UpdateValueInt Kroonluchter HwID:7 DevID:00000401 Type:244 sType:73 nValue:2 sValue:51
Logging at step 2:

Code: Select all

2020-05-02 16:48:58.209 OpenZWave: Domoticz has send a Switch command!, Level: 0, NodeID: 4 (0x04)
2020-05-02 16:48:58.231 (Aeotec Z-Stick Gen5) Usage (Kroonluchter Verbruik)
2020-05-02 16:48:58.306 (Aeotec Z-Stick Gen5) General/kWh (kWh Meter)
2020-05-02 16:48:58.486 (Aeotec Z-Stick Gen5) Light/Switch (Kroonluchter)
2020-05-02 16:48:58.675 (Aeotec Z-Stick Gen5) Light/Switch (Kroonluchter)
2020-05-02 16:48:58.205 Status: User: Admin initiated a switch command (21/Kroonluchter/Off)
2020-05-02 16:48:58.206 Debug: MAIN SwitchLight idx:21 cmd:Off lvl:-1
2020-05-02 16:48:58.207 Debug: MAIN SwitchLightInt : switchcmd:Off level:-1 HWid:7 sd:7 00000401 1 244 73 7
2020-05-02 16:48:58.208 Debug: MAIN SwitchLightInt : switchcmd=="On" || level < 0, new level:51
2020-05-02 16:48:58.215 Debug: SQLH UpdateValueInt Kroonluchter Verbruik HwID:7 DevID:0000401 Type:248 sType:1 nValue:0 sValue:0.0
2020-05-02 16:48:58.289 Debug: SQLH UpdateValueInt kWh Meter HwID:7 DevID:00000401 Type:243 sType:29 nValue:0 sValue:0.000;1170.000
2020-05-02 16:48:58.375 Debug: SQLH HandleOnOffAction: OffAction:
2020-05-02 16:48:58.455 Debug: SQLH UpdateValueInt Kroonluchter HwID:7 DevID:00000401 Type:244 sType:73 nValue:0 sValue:51
2020-05-02 16:48:58.572 Debug: SQLH HandleOnOffAction: OnAction:
2020-05-02 16:48:58.642 Debug: SQLH UpdateValueInt Kroonluchter HwID:7 DevID:00000401 Type:244 sType:73 nValue:2 sValue:51
Logging at step 3:

Code: Select all

2020-05-02 16:49:40.720 Debug: SQLH UpdateValueInt CPU HwID:6 DevID:0000044D Type:243 sType:6 nValue:0 sValue:5.90
2020-05-02 16:49:40.793 Debug: SQLH UpdateValueInt Memory Usage HwID:6 DevID:0000044C Type:243 sType:6 nValue:0 sValue:55.81
2020-05-02 16:49:40.848 Debug: SQLH UpdateValueInt Process Usage HwID:6 DevID:000000DC Type:243 sType:31 nValue:0 sValue:38.8900
2020-05-02 16:49:41.962 OpenZWave: Domoticz has send a Switch command!, Level: 0, NodeID: 4 (0x04)
2020-05-02 16:49:41.995 (Aeotec Z-Stick Gen5) Usage (Kroonluchter Verbruik)
2020-05-02 16:49:41.958 Status: User: Admin initiated a switch command (21/Kroonluchter/Off)
2020-05-02 16:49:41.959 Debug: MAIN SwitchLight idx:21 cmd:Off lvl:-1
2020-05-02 16:49:41.961 Debug: MAIN SwitchLightInt : switchcmd:Off level:-1 HWid:7 sd:7 00000401 1 244 73 7
2020-05-02 16:49:41.962 Debug: MAIN SwitchLightInt : switchcmd=="On" || level < 0, new level:51
2020-05-02 16:49:41.969 Debug: SQLH UpdateValueInt Kroonluchter Verbruik HwID:7 DevID:0000401 Type:248 sType:1 nValue:0 sValue:0.0
2020-05-02 16:49:42.059 (Aeotec Z-Stick Gen5) General/kWh (kWh Meter)
2020-05-02 16:49:42.244 (Aeotec Z-Stick Gen5) Light/Switch (Kroonluchter)
2020-05-02 16:49:42.058 Debug: SQLH UpdateValueInt kWh Meter HwID:7 DevID:00000401 Type:243 sType:29 nValue:0 sValue:0.000;1170.000
2020-05-02 16:49:42.142 Debug: SQLH HandleOnOffAction: OffAction:
2020-05-02 16:49:42.215 Debug: SQLH UpdateValueInt Kroonluchter HwID:7 DevID:00000401 Type:244 sType:73 nValue:0 sValue:51

The following shows the devices in Domoticz (right-click image and choose open in separate tab to view in readable format):
devices.png
devices.png (56.69 KiB) Viewed 392 times
Where device 21 is configured as a [Light/Switch] named 'Kroonluchter' and device 26 is configured as [Usage] named 'Kroonluchter Verbruik'.

The hardware:
Host = Raspbian on Raspberry Pi 2
Domoticz = 2020.2
Controller = Aeotec Z-Stick Gen5
Dimmer = Fibaro Dimmer 350W Walli Z-Wave Plus
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest