FHEM Forum

FHEM - Hausautomations-Systeme => RFXTRX => Thema gestartet von: oliv06 am 04 Juni 2014, 02:38:41

Titel: Somfy RTS support with the RFXtrx433
Beitrag von: oliv06 am 04 Juni 2014, 02:38:41
I have added the support for this protocol in the Willi code, and wrote a small howto (http://play.with.free.fr/index.php/somfy-rts-devices-in-fhem-with-the-rfxtrx433e/) on my blog
Could it be tested (works fine for me, except for minor details that I have documented in my blog) and integrated in the main code ?

Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: Willi am 04 Juni 2014, 07:00:33
Zitat von: oliv06 am 04 Juni 2014, 02:38:41
I have added the support for this protocol in the Willi code, and wrote a small howto (http://play.with.free.fr/index.php/somfy-rts-devices-in-fhem-with-the-rfxtrx433e/) on my blog
Could it be tested (works fine for me, except for minor details that I have documented in my blog) and integrated in the main code ?
Very good.
Please post the code so I can overlook it and check it in.

Regards

Willi
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: oliv06 am 04 Juni 2014, 08:04:56
Zitat von: Willi am 04 Juni 2014, 07:00:33
Please post the code so I can overlook it and check it in.
http://play.with.free.fr/wp-content/uploads/46_TRX_LIGHT.pm_.txt
If you have time, could you look at my remarks on :
- on-till and on-for-timer implementation
- command widget
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: Hoeness am 04 Juni 2014, 16:08:49
Hello,

This sounds very nice.

I looking forward to move my somfy blinds ;-)
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: geek am 05 Juni 2014, 20:26:11
Hi Oliv06,

this is looking really amazing. I was desperately searching for a way to automate my somfy blinds.

The example on your blog seems to control all your blinds with a single fhem define (=sinlge unit id + unit code). Did you try to use multiple unit ids + codes, aswell? Just asking as I'd prefer to control my blinds individually - and I have 10 to control.

Rainer
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: oliv06 am 05 Juni 2014, 23:19:38
In my example, this is the definition of a single blind. I called it myBlinds for the post because of my bad english (it is called "volets roulants" - plural- in french) and when I realized it I was too lazy to make new screenshots  ;) . I may change its name to myBlind without changing the screenshots ...

I tried to define a group of blinds using the 00 unitcode (which I though was supposed to group all devices sharing a single unit-id) but it did not work. You will have to use a structure to address them all together.
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: Simon74 am 21 Juni 2014, 17:18:02
Hello,

my Question:
i must set the ID and Unit Code over the RFXmngr Tool or not ? (RFY Program Transmit)
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: Willi am 21 Juni 2014, 18:53:55
Zitat von: oliv06 am 04 Juni 2014, 08:04:56
http://play.with.free.fr/wp-content/uploads/46_TRX_LIGHT.pm_.txt
I have added your code to SVN. I just did a simple fix for RFY_ext which was not defeined in the set command.
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: oliv06 am 24 Juni 2014, 22:00:09
Zitat von: Simon74 am 21 Juni 2014, 17:18:02
i must set the ID and Unit Code over the RFXmngr Tool or not ? (RFY Program Transmit)
You can but it is not necessary. You just need to choose them, define the device accordingly (http://play.with.free.fr/index.php/somfy-rts-devices-in-fhem-with-the-rfxtrx433e/#Definition) in FHEM and then associate it to the blind (http://play.with.free.fr/index.php/somfy-rts-devices-in-fhem-with-the-rfxtrx433e/#Association)
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: oliv06 am 24 Juni 2014, 22:08:46
Zitat von: Willi am 21 Juni 2014, 18:53:55
I have added your code to SVN. I just did a simple fix for RFY_ext which was not defeined in the set command.
Thanks Willi !
I have a question for you: it is possible to define more commands (up+stop, down+stop, up+down, program-2s, program-7s, stop-2s,stop-5s,up+down-5s,erase-this,erase-all) than the ones defined now (stop, up, down,program). As it is for power users, how would you treat it in the module : have different types (such as "blind" for normal use and "blind-poweruser" for more functions) ?
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: oliv06 am 25 Juni 2014, 23:00:26
Some news from Bert (RFXCOM) :
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: Bombjack am 23 Juli 2014, 23:13:00
Zitat von: oliv06 am 24 Juni 2014, 22:08:46
Thanks Willi !
I have a question for you: it is possible to define more commands (up+stop, down+stop, up+down, program-2s, program-7s, stop-2s,stop-5s,up+down-5s,erase-this,erase-all) than the ones defined now (stop, up, down,program). As it is for power users, how would you treat it in the module : have different types (such as "blind" for normal use and "blind-poweruser" for more functions) ?

Hallo Willi, mit dem RFXmngr kann ich meine Somfy Centralis UNO RTS VB mit den Kommandos Up / Down (transmit > 2 seconds) problemlos rauf und runter fahren, mit den Up und Down Kommandos innerhalb von FHEM bewegen sich die Raffstores nur für ca 1 Sekunde. Könntest Du die Kommandos bitte noch einbauen?
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: Bombjack am 24 Juli 2014, 22:58:18
Hallo zusammen, trotz meiner sehr eingeschränkten Perl Kenntnisse habe ich es irgendwie geschafft die neuen Kommandos Up / Down < 0.5 seconds und > 2 seconds in Willis Modul einzubauen, funktioniert ganz prima mit meinen bisher sehr unwilligen Somfy Empfängern :) Im Anhang das angepasste Modul, bitte mal testen und ich würde mich freuen wenn es offiziell mit aufgenommen wird. Definition wie in der Beschreibung von Oliv06, nur die webCmd und devStateIcon Attribute müssen angepasst werden.

Device type RFY_ext lässt sich bei mir übrigens nicht definieren, ist da evtl. noch ein Bug im Modul? Fehlermeldung bei z.B. define Raffstore_West TRX_LIGHT RFY_ext 0F1F1F02 light ist TRX_LIGHT: wrong type: RFY_EXT Meine Empfänger laufen aber inkl. der neuen Befehle auch als type = RFY

Viel Spaß damit, Andreas

Installation: Einfach das bestehende TRX_LIGHT Modul mit dem Anhang überschreiben und mit reload 46_TRX_LIGHT.pm innerhalb der FHEM Kommandozeile neu laden. Bestehende Definitionen von Somfy Empfängern können beibehalten werden, die neuen Set Kommandos sind dann innerhalb der FHEM Detailansicht zu finden. 
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: Steeeve am 23 November 2014, 12:09:43
Hi!
Ich hab mir einen Rfxtrx433e bestellt und wolle es so machen wie in der Anleitung von oliv06.
Leider bekomme ich schon den Fehler einen Fehler beim Zuweisen vom IODEV

wz_Rollo: unknown IODev specified

mit lsusb finde ich aber das device (müsste das sein: Bus 001 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC)

Hat jemand eine idee wo das Problem liegt?

lg
Steeeve
Ps: Ich hab das Device ausgepackt und angeschlossen - Firmware muss ich da ja wohl keine manuell installieren, oder doch?
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: Steeeve am 23 November 2014, 12:41:50
Alles bitte retour - ich habs jetzt mit meinem CUL 868 (?) machen können - so geil - danke an alle die hier Module entwickeln, ihr seit die Besten!!!
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: oliv06 am 24 November 2014, 07:48:00
@Steeeve
I do not speak german so I am not sure I understand your point. In order to clarify, this topic is about support of RTS with the RFXCOM RFXtrx433 hardware, not the CUL (which has the SOMFY module). Moreover, you need a CUL433 not a CUL868, I suppose, as SOMFY is not in the 868 radiofrequency range
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: Simon74 am 29 November 2014, 11:57:14
Warum ist das noch nicht eingecheckt ?
http://forum.fhem.de/index.php/topic,24270.msg186494.html#msg186494
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: ronny332 am 23 Mai 2015, 20:01:15
Sorry, dass ich das Thema ausgrabe, aber scheinbar haben die Änderungen von Bombjack leider keinen Einzug ins FHEM Modul gehalten, weshalb ich den ganzen Nachmittag am Grübeln war, wo der Fehler sein könnte.

Zitat von: Bombjack am 24 Juli 2014, 22:58:18
Hallo zusammen, trotz meiner sehr eingeschränkten Perl Kenntnisse habe ich es irgendwie geschafft die neuen Kommandos Up / Down < 0.5 seconds und > 2 seconds in Willis Modul einzubauen, ...

Die Änderungen haben mir den Nachmittag gerettet, endlich funktionieren die 24V Empfänger für unsere neuen Dachrollos, Vielen Dank!

Wäre es nicht möglich diese Änderungen auch in das originale TRX LIGHT Modul einzupflegen? Ideal wäre sogar noch eine Variablen Nutzung, um z.b. variable Positionen (nach Zeit) anfahren zu können.

Zitat von: Bombjack am 24 Juli 2014, 22:58:18
Device type RFY_ext lässt sich bei mir übrigens nicht definieren, ist da evtl. noch ein Bug im Modul? Fehlermeldung bei z.B. define Raffstore_West TRX_LIGHT RFY_ext 0F1F1F02 light ist TRX_LIGHT: wrong type: RFY_EXT Meine Empfänger laufen aber inkl. der neuen Befehle auch als type = RFY

Geht bei übrigens bald ein Jahr später ebenfalls nicht.

Kleines Update:
vom RFXCOM Support habe ich Version 243 der Firmware bekommen (gradios schneller Support übrigens). Damit scheinen alle "Down" Befehle jetzt quasi "< 0.5s" zu sein. Somit funktionieren auch alle 24V Rolladen wie es sein soll.
Scheinbar machen nur ein paar Modelle von Somfy einen Unterschied zwischen z.B. < 0.5s und < 1.0s. Meine Rollos im Keller (normale 230V Funkmotoren von 2012) reagierten mit der alten Version (242) auf "DOWN" und "DOWN < 0.5s" komplett identisch.
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: chbla am 15 September 2015, 15:13:03
Auch noch eine Frage, vielleicht kann mir da jemand helfen: Ich steuere meine Somfy Rolladen auch mit dem RFXtrx433 an, und zwar nur Auf/Zu.

Auf http://play.with.free.fr/index.php/somfy-rts-devices-in-fhem-with-the-rfxtrx433e/ wird eine "Favorite position" anfahren kann, funktioniert das?
Finde dazu nichts.
Alternative fuer eine bestimmte Position waere sonst nur ein CUL mit dem Somfy device, oder?

Danke,
Christoph
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: oliv06 am 16 September 2015, 22:07:50
Zitat von: chbla am 15 September 2015, 15:13:03
Auch noch eine Frage, vielleicht kann mir da jemand helfen: Ich steuere meine Somfy Rolladen auch mit dem RFXtrx433 an, und zwar nur Auf/Zu.

Auf http://play.with.free.fr/index.php/somfy-rts-devices-in-fhem-with-the-rfxtrx433e/ (http://play.with.free.fr/index.php/somfy-rts-devices-in-fhem-with-the-rfxtrx433e/) wird eine "Favorite position" anfahren kann, funktioniert das?
Finde dazu nichts.
Alternative fuer eine bestimmte Position waere sonst nur ein CUL mit dem Somfy device, oder?
I wrote this blog, but I do not understand german and Google did not help me to understand your question. Could you please ask it in english again ?
The "stop" command is equivalent to the "my" command on Somfy remotes : you can use it to go to your prefered position
At the present time if you want to go to another position (say "20% open" as an example, you would have to write some code, count how much time it takes to go from 0% to 100%, then use this to time on and off commands in order to go to the right position. I think that's what's in the SOMFY module which relies on CUL.
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: _Ralph am 20 November 2015, 19:49:18
Hi,

is it possible to receive commands which are sent by other Somfy remote controls? I would like to update the state of my rollershutter if another remote control opens or closes the roller shutter.

Thanks for your answer.

Ralph
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: oliv06 am 27 November 2015, 16:42:43
no, it isn't with this. The RFXTRX433E does not support it. Not sure if it is possible with the CUL and the SOMFY module.
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: MrLarodos am 21 März 2017, 19:51:49
Hallo zusammen,

ich habe ebenfalls den RFXTRX433e und wollte meine Rollos damit steuern. Es handelt sich um Solar-Rollos von Heim und Haus mit Somfy-Fernbedienung. Mit den einfachen Befehlen "up" und "down" liefen die Rollos nicht immer an und das war kein Problem mit der Entfernung (3m Luftlinie). Ich musste den jeweiligen Befehl bis zu 8 mal antriggern, um ein garantiertes Ergebnis (Rollobewegung) zu erhalten. Der RFXTRX433e-Erfinder Bert schrieb mir, ich solle die ">2_seconds"-Befehle nutzen.
Diese gibt es ja wie von Bombjack weiter oben beschrieben im Modul "46_TRX_LIGHT.pm" von Haus aus offensichtlich nicht.

Die beiden relevanten Zeilen im Originalmodul ...
0x1A00 => [ "stop", "up", "", "down", "", "", "", "program"], # RTS RFY
0x1A01 => [ "stop", "up", "", "down", "", "", "", "program"], # RTS RFY ext

... habe ich durch die von Bombjack ausgetauscht:
0x1A00 => [ "stop", "up", "", "down", "", "", "", "program", "", "", "", "", "", "", "", "up_<0.5_seconds", "down_<0.5_seconds", "up_>2_seconds", "down_>2_seconds"], # RTS RFY
0x1A01 => [ "stop", "up", "", "down", "", "", "", "program", "", "", "", "", "", "", "", "up_<0.5_seconds", "down_<0.5_seconds", "up_>2_seconds", "down_>2_seconds"], # RTS RFY ext


Mit denen funktioniert es wunderbar :D Nun habe ich das Problem, dass diese bei nahezu jedem FHEM-Update wieder verloren gehen, da diese offensichtlich nicht im Original drin sind und somit immer wieder überschrieben werden. Wie kann das ins Original eingebaut werden? Den Bedarf haben ja bestimmt noch mehr Leute, oder nicht?

Danke und Gruß
MrLarodos
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: KölnSolar am 21 März 2017, 22:23:38
ZitatNun habe ich das Problem, dass diese bei nahezu jedem FHEM-Update wieder verloren gehen
Ahm, das letzte Update war im Juli letzten Jahres  :o
Das offenbart dann mal wieder, dass wir keinen Entwickler mehr für TRX haben  :'(
Du kannst das update über das exclude_from_update-Attribut im device global umgehen.
Grüße Markus
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: MrLarodos am 21 März 2017, 22:30:37
Hi Markus!

Zitat von: KölnSolar am 21 März 2017, 22:23:38
Das offenbart dann mal wieder, dass wir keinen Entwickler mehr für TRX haben  :'(
Wieso, was ist mit dem Willi passiert, der das geschrieben hat?

Zitat von: KölnSolar am 21 März 2017, 22:23:38
Du kannst das update über das exclude_from_update-Attribut im device global umgehen.
Danke für den Tipp! ;D Normalerweise wär das ja nicht meine Wahl, aber wenn das ohnehin nicht mehr geupdatet wird, richtet es ja keinen Schaden an bzw. man verpasst nix :(

Nochmal zum Kern der Sache, sonst ist das ja nicht zufriedenstellend: Die Codeergänzung, die ich beschrieben habe, ist ja lauffähig und sehr gut. Wo liegt denn das Original und kann das niemand anders ergänzen, der da Zugriff hat?
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: oliv06 am 24 März 2017, 08:40:45
Hello, I had problems to have some changes included by Willi (https://forum.fhem.de/index.php?action=profile;u=136) last year who is probably less present on the forum. He seems do be no longer present since june last year. You can try to post him a private message : perheaps it generates a mail to him?
If not successful I could probably do the update (I am the one who integrated RTS support in the module) but it is not the normal way of working : the maintainer has to do it.  Or you may ask  rudolfkoenig (https://forum.fhem.de/index.php?action=profile;u=8) to do it.

I tested your change on my own setup to check if it does not break anything on my RTS setup : that's OK for me  :)
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: KölnSolar am 24 März 2017, 10:44:23
Zitatperheaps it generates a mail to him?
it does. But i've made the experience that he will not answer  :'(

Therefore I asked already for a new maintainer here. But nobody reacted  :'(

There is a lot of work to be done, e.g. change sources to standard-development-guidelines to get events and status-update if a set function out of FHEM is done.
Best regards
Markus
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: KernSani am 24 März 2017, 14:10:17
<<OFF TOPIC>>

Zitat von: KölnSolar am 24 März 2017, 10:44:23
Therefore I asked already for a new maintainer here. But nobody reacted  :'(
Isn't there already a candidate for a new maintainer:
Zitat von: oliv06 am 24 März 2017, 08:40:45
I could probably do the update (I am the one who integrated RTS support in the module)
Seriously - I also see the need for a new maintainer for the TRX_.* modules... no volunteers? 

Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: oliv06 am 24 März 2017, 17:55:35
I have no time to add new functions nor maintain the module, not mentioning that I do not understand german so it is difficult for me to get up to date with news on the forum. But I can help occasionally to submit changes on the SVN if needed.
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: oliv06 am 24 März 2017, 18:01:26
For those interested, I wrote a tutorial (http://play.with.free.fr/index.php/volets-somfy-rts-et-fhem-encore-mieux-et-en-francais/) (in french... tell me if I need to translate it in english) about using the ROLLO module with this one in order to get better functionalities in FHEM for our RTS devices.
Titel: Antw:Somfy RTS support with the RFXtrx433
Beitrag von: KernSani am 24 März 2017, 18:24:09
Zitat von: oliv06 am 24 März 2017, 18:01:26
For those interested, I wrote a tutorial (http://play.with.free.fr/index.php/volets-somfy-rts-et-fhem-encore-mieux-et-en-francais/) (in french... tell me if I need to translate it in english) about using the ROLLO module with this one in order to get better functionalities in FHEM for our RTS devices.
Too bad... i just recently moved all my blinds setup to ROLLO... i will have a look and see if my school french is still somewhere back in my mind ;-)