Page 1 of 1

Somfy Sunscreen status

Posted: Wednesday 03 May 2017 9:38
by SteGe
Hi all,

Maybe this isn't the right sub-forum which I posted it into, so moderators please feel free to modify it.

I'm struggeling with this question. I have a somfy RFY motorized sunscreen and have it connected to my Domoticz by a RFXcom. So far, so good! It is working quite well and I have already some logic to shut the sunscreen (or is it to open it ;-) ) when it is raining or to windy.

But, the problem is the remote of Somfy itself. My girlfriend/wife2be isn't always using the Domoticz app to close the sunscreen and will use the remote of Somfy occasionally. At that moment Domoticz doesn't recognized the "closed" state of the sunscreen.

Is there a solution for it? I know the RfxCom has some reasons not to implement the incoming messages of the original remote, but how are others doing this? Because "opening" it when it is already opened isn't quite sorrow, but if it is "closed" (in dutch I would say the sunscreen is opengevouwen) when Domoticz doesn't know then it would be a pain in the ass when I'm relying on the logic for wind/rain....

I was thinking about a sensor on the sunscreen to check if it is open or not, but then I would like to have a contact sensor which also sends a open and a close signal, which I haven't found yet (and no place to connect it on a proper way to the sunscreen).

So please help me out!

Re: Somfy Sunscreen status

Posted: Wednesday 03 May 2017 9:53
by Egregius
You can't receive the commands from the remote. Remove the remote from the wall and learn your girlfriend to use domoticz.
What I do as a secondary safety is sending the close command every hour (if rain or wind is to high). Or every hour the open command if there's to much sun and my living room is to warm.
In my pass2php script that looks like this:

Code: Select all

$zonopen=2500;
$zontoe=200;
$luifel=apcu_fetch('sluifel');
$buien=apcu_fetch('buien');
$maxbuien=20;
$wind=apcu_fetch('wind');
$winddir=apcu_fetch('wind_dir');
if($winddir='W')$maxwind=6;
elseif($winddir='S')$maxwind=5;
elseif($winddir='SE')$maxwind=5;
else $maxwind=8;

if($luifel!='Closed'&&($wind>=$maxwind||$buien>=$maxbuien||$zon<$zontoe)){
    sw('luifel','Off');
    if(apcu_fetch('tluifel')<time-3598)sw('luifel','Off');
}elseif($luifel!='Open'&&time>strtotime('10:25')&&$wind<$maxwind&&$buien<$maxbuien&&apcu_fetch('living_temp')>22&&$zon>$zonopen&&apcu_fetch('tluifel')<time-598){
    sw('luifel','On',$msg);
    if(apcu_fetch('tluifel')<time-3598)sw('luifel','On');
}

Re: Somfy Sunscreen status

Posted: Wednesday 03 May 2017 11:32
by b_weijenberg
Maybe you can use a Kerui D026 sensor. In Ext2 firmware select Lighting4 and X10, the sensor is decoded as alarm sensor with alert/normal status.