Page 1 of 1

Blockly Qubino shutter sunscreen/Blinds

Posted: Friday 24 April 2020 16:55
by AllesVanZelf
Domoticz 2020.1 - 11953
I have a problem with my Qubino shutter in a Blockly. See below Blockly image.
Image

Now the shutter/sunscreen opens at the right time, sun power > 500. But the screen does not close at the specified time. I assume that:
[Zonwering Keuken Shutter] = Open is not the right value. But [Zonwering Keuken Shutter] (is Not) Level 100% Or (Is Not) Closed, doesn't work either.
Anyone with a Qubino shutter nows how to handle this?

Edit: with more specific information about what is working and what not.

Re: Blockly Qubino shutter sunscreen/Blinds

Posted: Tuesday 28 April 2020 12:32
by AllesVanZelf
No one uses the Qubino shutter in a script?

Re: Blockly Qubino shutter sunscreen/Blinds

Posted: Tuesday 28 April 2020 12:43
by Jan Jansen
try time>09:30 or time <16:00 and zonwering=closed and BR mogelijk regen=off and BR regent het? (not in one and block)

Re: Blockly Qubino shutter sunscreen/Blinds

Posted: Tuesday 28 April 2020 13:03
by AllesVanZelf
Thank you Jan, for replying.
That Open part is working well.
It is the closing part that give me trouble.

[Else If] - [Zonwering shutter] = [Open] AND
( [Time => 16:00] OR BR [Wind > 5] OR [Regen = ON] OR [Regen > 0] )

I think it is the [Zonwering shutter] = [Open] part that is never triggered.

If I enter: [Zonwering shutter] < [Level % 100] I get:

Code: Select all

Error: EventSystem: Lua script error (Blockly), Name: Zonnescherm_2 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare string with number

Re: Blockly Qubino shutter sunscreen/Blinds

Posted: Tuesday 28 April 2020 15:39
by AllesVanZelf
I think this is a bug in the way that Qubino shutter is handled.

If the sunscreen is closed it is reported 100% on the switch in domoticz and has a status: closed. That is oke with me.
If I open the sunscreen to percentage 83% (by hand on the real switch or in Domoticz). It is not reported "open", but in the log there is a line: "Set Level: 83 %".
But I can also not use a statement like > or < then [level % 100]. Because then I get the error message: "attempt to compare string with number".

That is a bug or not?

Re: Blockly Qubino shutter sunscreen/Blinds

Posted: Tuesday 28 April 2020 17:17
by AllesVanZelf
I did experiment a little and somehow I managed to get a step further.

Image

If I set the closing part - else if part to [=not] [closed] and then: set Zonwering = level % 100, the sunscreen closes!! But 1% a time. So If the sunscreen was set to 30%, it will close as 31%, 32%, 33% etc. That makes it very slow.
Why is this?

Re: Blockly Qubino shutter sunscreen/Blinds

Posted: Monday 11 May 2020 10:09
by AllesVanZelf
Since no-one could help me with this issue that this Qubino shutter does not report a [open] status and Level % is not accepted as a status,
I bypass this by installing a dummy switch that will open or close by blockly.
Image

And for the case that the switch is pushed by hand, I created a dummy blockly to switch the dummy switch. Hope this will work.

Image

But in my opinion: a statement like: " If Qubino shutter is [open] " should also work, but it isn't.

ps. Same problem with a Qubino dimmer, that is never ON, but is Off or set to level. But never [On].

A fix would be very helpfull.

Re: Blockly Qubino shutter sunscreen/Blinds

Posted: Friday 15 May 2020 11:58
by AllesVanZelf
The Blockly in last post was working, but also 1% by 1% closing. Too complicated.

I now do it this way, but without dummy switch:
Image
Same result. The sunscreen closes 1% by 1% till closed at 100%.

How do I close this screen in one run?

I did some testing. Disabled this above script and created a simple script with a dummy. Like this:
Image

If I set the dummy switch on, the sunscreen opens to 96%. If I set the dummy switch to off, the sunscreen closes to 100%, but still 1% by 1% till 100% = closed.

Again, how do I close it in one run?