Silent() not working for Qubino shutter [Solved]
Moderator: leecollings
-
ronaldbro
- Posts: 327
- Joined: Thursday 15 November 2018 21:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: Netherlands
- Contact:
Silent() not working for Qubino shutter
Hi,
When I use the following commands to my Qubino z-wave roller shutter I still get device triggers in my scripts:
dz.devices('shutter').close().silent()
dz.devices('shutter').open().silent()
dz.devices('shutter').dimTo().silent()
Is this a bug or has it something to do with the hardware?
Is there any way to work around this?
I'm building a script to control my roller shutters and want to detect a manual action to change the controlling state in my script. Normally it should run automatically but when a manual action occurs it should stay in manual mode until it gets dark.
Because of this problem the state goed to manual mode after the first automatic action.
Regards Ronald
When I use the following commands to my Qubino z-wave roller shutter I still get device triggers in my scripts:
dz.devices('shutter').close().silent()
dz.devices('shutter').open().silent()
dz.devices('shutter').dimTo().silent()
Is this a bug or has it something to do with the hardware?
Is there any way to work around this?
I'm building a script to control my roller shutters and want to detect a manual action to change the controlling state in my script. Normally it should run automatically but when a manual action occurs it should stay in manual mode until it gets dark.
Because of this problem the state goed to manual mode after the first automatic action.
Regards Ronald
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Silent() not working for Qubino shutter
Seems to be related to what is described hereronaldbro wrote: Wednesday 20 November 2019 23:03 When I use the following commands to my Qubino z-wave roller shutter I still get device triggers in my scripts:
dz.devices('shutter').close().silent()
dz.devices('shutter').open().silent()
dz.devices('shutter').dimTo().silent()
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
ronaldbro
- Posts: 327
- Joined: Thursday 15 November 2018 21:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: Netherlands
- Contact:
Re: Silent() not working for Qubino shutter
Not really, I don’t send two commands. Only one command is send to the shutter.
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Silent() not working for Qubino shutter
Even if you do not send this on purpose some zwave devices kind of echo the command causing domoticz to trigger an event.ronaldbro wrote: Thursday 21 November 2019 0:17 Not really, I don’t send two commands. Only one command is send to the shutter.
Would be interesting to see what is in the log.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
ronaldbro
- Posts: 327
- Joined: Thursday 15 November 2018 21:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: Netherlands
- Contact:
Re: Silent() not working for Qubino shutter
I guess you are right.
I made a simple test script to remove all the extra fuzz in the log and I see two switch commands.
Also in the device log I see two entries. First the sutter reports it's current position and then the setpoint.
Do you have any suggestions to work around this? I can think of storing the time the command is send in the script and then ignore all device updates for 1 second but I don't think this is very reliable. It could take longer to send the command to the device and when I increase the time I could mis a manual stop command.
Script:
2019-11-21 08:59:42 Open
2019-11-21 08:59:42 Closed
I made a simple test script to remove all the extra fuzz in the log and I see two switch commands.
Also in the device log I see two entries. First the sutter reports it's current position and then the setpoint.
Do you have any suggestions to work around this? I can think of storing the time the command is send in the script and then ignore all device updates for 1 second but I don't think this is very reliable. It could take longer to send the command to the device and when I increase the time I could mis a manual stop command.
Script:
- Spoiler: show
- Spoiler: show
2019-11-21 08:59:42 Open
2019-11-21 08:59:42 Closed
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Silent() not working for Qubino shutter
Only work-around I can think of is the script in the topic I posted earlier in this thread
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
hestia
- Posts: 361
- Joined: Monday 25 December 2017 23:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: Paris
- Contact:
Re: Silent() not working for Qubino shutter
Hi
it seems to be the same issue as this post https://www.domoticz.com/forum/viewtopi ... 99#p224799
I've set up this workaround, but I have to go to 9 seconds, and of course I miss some manual On/Off
I first find it in a previous beta of the previous release, perhaps it is due to an extension of my network ("some zwave devices kind of echo the command causing domoticz to trigger an event").
I have 1 device that don't have the issue, but on the other hand , its state is not refresh in domoticz when I switch if manually.
it seems to be the same issue as this post https://www.domoticz.com/forum/viewtopi ... 99#p224799
I've set up this workaround, but I have to go to 9 seconds, and of course I miss some manual On/Off
I first find it in a previous beta of the previous release, perhaps it is due to an extension of my network ("some zwave devices kind of echo the command causing domoticz to trigger an event").
I have 1 device that don't have the issue, but on the other hand , its state is not refresh in domoticz when I switch if manually.
-
hestia
- Posts: 361
- Joined: Monday 25 December 2017 23:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: Paris
- Contact:
Re: Silent() not working for Qubino shutter
I've just include a new Qubino ZMNHBDx Flush 2 Relays+
For the refresh in Domoticz when I switch it manually it is OK
And for the silent it is also ok. I did a testing during 1/2 hour with 1 test / min. No wrong event.
I put it near another one with this issue and heal the network: no change it still work fine. I think this test show it is not an echo on the network...
Version: 4.11503
For the refresh in Domoticz when I switch it manually it is OK
And for the silent it is also ok. I did a testing during 1/2 hour with 1 test / min. No wrong event.
I put it near another one with this issue and heal the network: no change it still work fine. I think this test show it is not an echo on the network...
Version: 4.11503
-
ronaldbro
- Posts: 327
- Joined: Thursday 15 November 2018 21:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: Netherlands
- Contact:
Re: Silent() not working for Qubino shutter
I did some investigation on the triggeredItem.dump() return values and noticed some differences when controlled with the buttons or from the script.
When I control it with the buttons the dump() returns values like LOG_FORCE, LOG_INFO, LOG_MODULE_EXEC_INFO.
But when I try to use this by:
If triggeredItem.LOG_MODULE_EXEC_INFO ~= nil then
ManualMode = true
End
Then I always see nil for LOG_MODULE_EXEC_INFO
Is there any way to use this?
When I control it with the buttons the dump() returns values like LOG_FORCE, LOG_INFO, LOG_MODULE_EXEC_INFO.
But when I try to use this by:
If triggeredItem.LOG_MODULE_EXEC_INFO ~= nil then
ManualMode = true
End
Then I always see nil for LOG_MODULE_EXEC_INFO
Is there any way to use this?
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Silent() not working for Qubino shutter
What you see in the dump as value for LOG_MODULE_EXEC_INFO is actually the value forronaldbro wrote: Monday 25 November 2019 9:30 I did some investigation on the triggeredItem.dump() return values and noticed some differences when controlled with the buttons or from the script.
When I control it with the buttons the dump() returns values like LOG_FORCE, LOG_INFO, LOG_MODULE_EXEC_INFO.
But when I try to use this by:
If triggeredItem.LOG_MODULE_EXEC_INFO ~= nil then
ManualMode = true
End
Then I always see nil for LOG_MODULE_EXEC_INFO
Is there any way to use this?
triggeredItem.lastUpdate.utils.LOG_MODULE_EXEC_INFO and this should be the same as domoticz.LOG_MODULE_EXEC_INFO (or dz.LOG_MODULE_EXEC_INFO depending how you pass your domoticz object to the dzVents script in the execute = call )
I have no idea why the value of this attribute could be different for your device when triggered by button or triggered by script but if it is you can use it with:
Code: Select all
dz.log('value of dz.LOG_MODULE_EXEC_INFO: ' .. tostring(dz.LOG_MODULE_EXEC_INFO),dz.LOG_FORCE)
dz.log('value of triggeredItem.lastUpdate.utils.LOG_MODULE_EXEC_INFO: ' .. tostring(triggeredItem.lastUpdate.utils.LOG_MODULE_EXEC_INFO),dz.LOG_FORCE)
if dz.LOG_MODULE_EXEC_INFO ~= nil then
ManualMode = true
end
Code: Select all
dz.log('value of dz.LOG_MODULE_EXEC_INFO: ' .. tostring(dz.LOG_MODULE_EXEC_INFO),dz.LOG_FORCE)
dz.log('value of triggeredItem.lastUpdate.utils.LOG_MODULE_EXEC_INFO: ' .. tostring(triggeredItem.lastUpdate.utils.LOG_MODULE_EXEC_INFO),dz.LOG_FORCE)
ManualMode = triggeredItem.lastUpdate.utils.LOG_MODULE_EXEC_INFO ~= nil
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
hestia
- Posts: 361
- Joined: Monday 25 December 2017 23:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: Paris
- Contact:
Re: Silent() not working for Qubino shutter
I've tried this
I've got this error
On the other hand, no difference for my device dz.LOG_MODULE_EXEC_INFO: 2 with a real switch or the dz device
Code: Select all
local SWITCH = {867}
return {
on = { devices = SWITCH },
logging = { level = domoticz.LOG_DEBUG,
marker = "ZwaveSwitch" },
execute = function(dz, triggeredItem)
local ManualMode = false
dz.log('Device '.. triggeredItem.name .. " (" .. triggeredItem.id .. ")" .. triggeredItem.state , dz.LOG_DEBUG)
if triggeredItem.active then
dz.log('Active',dz.LOG_FORCE)
else
dz.log('NOT active',dz.LOG_FORCE)
end
if dz.LOG_MODULE_EXEC_INFO == nil then
dz.log('value of dz.LOG_MODULE_EXEC_INFO: NIL',dz.LOG_FORCE)
else
dz.log('value of dz.LOG_MODULE_EXEC_INFO: ' .. tostring(dz.LOG_MODULE_EXEC_INFO),dz.LOG_FORCE)
end
if tostring(triggeredItem.lastUpdate.utils.dz.LOG_MODULE_EXEC_INFO) == nil then
dz.log('value of triggeredItem.lastUpdate.utils.dz.LOG_MODULE_EXEC_INFO: NIL',dz.LOG_FORCE)
else
dz.log('value of triggeredItem.lastUpdate.utils.dz.LOG_MODULE_EXEC_INFO: ' .. tostring(triggeredItem.lastUpdate.utils.dz.LOG_MODULE_EXEC_INFO),dz.LOG_FORCE)
end
end
} - Spoiler: show
On the other hand, no difference for my device dz.LOG_MODULE_EXEC_INFO: 2 with a real switch or the dz device
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Silent() not working for Qubino shutter
No, mine
change utils.dz to utils everywhere in the script.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
hestia
- Posts: 361
- Joined: Monday 25 December 2017 23:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: Paris
- Contact:
Re: Silent() not working for Qubino shutter
Thanks waaren
no longer an error, but still the same value for the real switch or the dz device.
It would have been convenient to have a field with a different value regarding a real switch or the GUI
no longer an error, but still the same value for the real switch or the dz device.
It would have been convenient to have a field with a different value regarding a real switch or the GUI
-
ronaldbro
- Posts: 327
- Joined: Thursday 15 November 2018 21:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: Netherlands
- Contact:
Re: Silent() not working for Qubino shutter [Solved]
I decided to solve the problem in a different way. In my shutter script I save the send setpoint and the datetime and then I use an execute time of 60 seconds in which the script will not do anything. After this time I compare the shutter level to the send setpoint and when it’s different I assume it’s manual operated and a state change is forced.
This solution will be more stable in future then maybe getting it to work with an undocumented feature
Anyway, thanks for your help.
This solution will be more stable in future then maybe getting it to work with an undocumented feature
Anyway, thanks for your help.
-
ronaldbro
- Posts: 327
- Joined: Thursday 15 November 2018 21:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: Netherlands
- Contact:
Re: Silent() not working for Qubino shutter
I just posted my script:
https://www.domoticz.com/forum/viewtopi ... 72&t=30466
https://www.domoticz.com/forum/viewtopi ... 72&t=30466
Who is online
Users browsing this forum: No registered users and 1 guest