Hallo Markus,
genau, ich habe ROLLO als Modul genutzt. Viel ändern musste ich eigentlich nicht, nur hat das Modul aktuell noch einen Fehler, sodass ich in Zeile 415 (gem. [url=https://forum.fhem.de/index.php/topic,47202.msg498833.html#msg498833]https://forum.fhem.de/index.ph….msg498833.html#msg498833[/url]) folgendes ergänzt habe:
readingsSingleUpdate($hash,"position",$state,1);
Der Type muss im Anschluss auf "Normal" stehen, sonst funktioniert die Steuerung vom iPhone nicht korrekt.
define RolladeBuero ROLLO
attr RolladeBuero alias Rollade Büro
attr RolladeBuero autoStop 1
attr RolladeBuero devStateIcon open:fts_shutter_10:closed closed:fts_shutter_100:open half:fts_shutter_50:closed drive-up:fts_shutter_up@red:stop drive-down:fts_shutter_down@red:stop position-100:fts_shutter_100:open position-90:fts_shutter_80:closed position-80:fts_shutter_80:closed position-70:fts_shutter_70:closed position-60:fts_shutter_60:closed position-50:fts_shutter_50:closed position-40:fts_shutter_40:open position-30:fts_shutter_30:open position-20:fts_shutter_20:open position-10:fts_shutter_10:open position-0:fts_shutter_10:closed
attr RolladeBuero excessBottom 2
attr RolladeBuero excessTop 4
attr RolladeBuero genericDeviceType blind
attr RolladeBuero group Rolladen,
attr RolladeBuero homebridgeMapping clear\
CurrentPosition=position,invert=1,minValue=0,maxValue=100 \
TargetPosition=position,invert=1,minValue=0,maxValue=100,minStep=10,delay=300,cmd=position,\
PositionState=state,values=drive-up:INCREASING;;drive-down:DECREASING;;no:STOPPED;;undefined:STOPPED,default=STOPPED
attr RolladeBuero resetTime 0
attr RolladeBuero room Büro,Homekit
attr RolladeBuero secondsDown 25
attr RolladeBuero secondsUp 25
attr RolladeBuero switchTime 1
attr RolladeBuero type normal
attr RolladeBuero webCmd open:closed:half:stop:position
Display More
Die folgende Notify-Steuerung kann man bestimmt auch schöner lösen, funktioniert so aber zumindest :)
define RolladeBuero_drive_up notify RolladeBuero:drive-up {system('python /opt/fhem/elro.py 1 drive-up&');;;;}
define RolladeBuero_drive_down notify RolladeBuero:drive-down {system('python /opt/fhem/elro.py 1 drive-down&');;;;}
define RolladeBuero_stop notify RolladeBuero:position-10|RolladeBuero:position-20|RolladeBuero:position-30|RolladeBuero:position-40|RolladeBuero:half|RolladeBuero:position-60|RolladeBuero:position-70|RolladeBuero:position-80|RolladeBuero:position-90 {system('python /opt/fhem/elro.py 1 stop&');;;;}
Mit Pin 16 wird die Kanalauswahltaste (-) bedient. Also um wieder auf eine kleinere Kanalzahl zu kommen.
Schöne Grüße
Simon