Blockly Qubino shutter sunscreen/Blinds

Moderator: leecollings

Post Reply
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

Blockly Qubino shutter sunscreen/Blinds

Post 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.
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

Re: Blockly Qubino shutter sunscreen/Blinds

Post by AllesVanZelf »

No one uses the Qubino shutter in a script?
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
Jan Jansen
Posts: 229
Joined: Wednesday 30 April 2014 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: Blockly Qubino shutter sunscreen/Blinds

Post 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)
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

Re: Blockly Qubino shutter sunscreen/Blinds

Post 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
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

Re: Blockly Qubino shutter sunscreen/Blinds

Post 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?
Last edited by AllesVanZelf on Monday 11 May 2020 10:11, edited 1 time in total.
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

Re: Blockly Qubino shutter sunscreen/Blinds

Post 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?
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

Re: Blockly Qubino shutter sunscreen/Blinds

Post 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.
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

Re: Blockly Qubino shutter sunscreen/Blinds

Post 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?
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest