FS20AMS Markise mit separaten Buttons 'Einfahren' / 'Ausfahren' anstatt Ein/Aus toggeln

Begonnen von Guest, 19 September 2012, 22:58:39

Vorheriges Thema - Nächstes Thema

Guest

Originally posted by: <email address deleted>

Hallo zusammen,
 
unter http://andfhem.klass.li/hooks bin ich (wohl) auf die lange gesuchte
Möglichkeit gestoßen, anstatt toggeln (Ein/Aus) die beiden Zustände Ein und
Aus unter andFHEM auf meinem Handy separat anzeigen zu lassen. Somit hätte
ich endlich die Möglichkeit unsere Markise mit der automatischen
Markisensteuerung FS20AMS stückchenweise aus- und einzufahren. Mit dem
toggeln Ein/Aus klappt das nicht.
 
------------------------------------------------------------------------------------------------------------------------------------------
Hooks
Hooks to change andFHEM behaviour from within the *fhem.cfg* file.
Each user attribute has to be added separately to the allowed user
attributes in FHEM (i.e. attr global userattr onOffDevice)
---------------------------------------------------------------------
*Name*
*OnOffButtons
*Display on / off buttons instead of toggle buttons
 
*User Attribute *
onOffDevice
the value has to be boolean (true or false)
 
*Example*
attr mat_halogen onOffDevice true
attr mat_halogen onOffDevice false
------------------------------------------------------------------------------------------------------------------------------------------
**
Jedoch bekomme ich den korrekten Eintrag in der fhem.cfg nicht hin :-(
 
Mein funktionierender Eintrag betreffend der Markise lautet:
define Markise FS20 4112 1c
attr Markise eventMap on:Einfahren off:Ausfahren
attr Markise icon icoPirBaum.png
attr Markise room Aussen
define FileLog_Markise FileLog /var/log/fhem/Markise-%Y.log Markise
attr FileLog_Markise icon icoLog.png
attr FileLog_Markise logtype text
attr FileLo
g_Markise room FS20
 
 
wenn ich
attr global userattr onOffDevice
attr Markise onOffDevice true
attr Markise onOffDevice false
in die fhem.cfg eintrage und speichere erscheint:
 
ERROR:

Unknown attribute icon, choose one of room comment alias IODev
follow-on-for-timer:1,0 follow-on-timer do_not_notify:1,0 ignore:1,0
dummy:1,0 showtime:1,0 loglevel:0,1,2,3,4,5,6
model:dummyDimmer,dummySender,dummySimple,fs20as1,fs20as4,fs20bf,fs20bs,fs20di,fs20di10,fs20du,fs20fms,fs20hgs,fs20irl,fs20kse,fs20ls,fs20ms2,fs20pira,fs20piri,fs20piru,fs20rgbsa,fs20rst,fs20rsu,fs20s16,fs20s20,fs20s4,fs20s4a,fs20s4m,fs20s4u,fs20s4ub,fs20s8,fs20s8m,fs20sa,fs20sd,fs20sig,fs20sm4,fs20sm8,fs20sn,fs20sr,fs20ss,fs20st,fs20st2,fs20str,fs20su,fs20sv,fs20tc1,fs20tc6,fs20tfk,fs20tk,fs20ue1,fs20usr,fs20uts,fs20ws1,fs20ze
onOffDevice eventMap or use attr global userattr icon Unknown attribute
icon, choose one of room comment alias disable:0,1 logtype nrarchive
archivedir archivecmd onOffDevice eventMap or use attr global userattr icon
Unknown attribute icon, choose one of room comment alias IODev
follow-on-for-timer:1,0 follow-on-timer do_not_notify:1,0 ignore:1,0
dummy:1,0 showtime:1,0 loglevel:0,1,2,3,4,5,6
model:dummyDimmer,dummySender,dummySimple,fs20as1,fs20as4,fs20bf,fs20bs,fs20di,fs20di10,fs20du,fs20fms,fs20hgs,fs20irl,fs20kse,fs20ls,fs20ms2,fs20pira,fs20piri,fs20piru,fs20rgbsa,fs20rst,fs20rsu,fs20s16,fs20s20,fs20s4,fs20s4a,fs20s4m,fs20s4u,fs20s4ub,fs20s8,fs20s8m,fs20sa,fs20sd,fs20sig,fs20sm4,fs20sm8,fs20sn,fs20sr,fs20ss,fs20st,fs20st2,fs20str,fs20su,fs20sv,fs20tc1,fs20tc6,fs20tfk,fs20tk,fs20ue1,fs20usr,fs20uts,fs20ws1,fs20ze
onOffDevice eventMap or use attr global userattr icon Unknown attribute
icon, choose one of room comment alias disable:0,1 logtype nrarchive
archivedir archivecmd onOffDevice eventMap or use attr global userattr icon
Unknown attribute icon, choose one of room comment alias IODev
follow-on-for-timer:1,0 follow-on-timer do_not_notify:1,0 ignore:1,0
dummy:1,0 showtime:1,0 loglevel:0,1,2,3,4,5,6
model:dummyDimmer,dummySender,dummySimple,fs20as1,fs20as4,fs20bf,fs20bs,fs20di,fs20di10,fs20du,fs20fms,fs20hgs,fs20irl,fs20kse,fs20ls,fs20ms2,fs20pira,fs20piri,fs20piru,fs20rgbsa,fs20rst,fs20rsu,fs20s16,fs20s20,fs20s4,fs20s4a,fs20s4m,fs20s4u,fs20s4ub,fs20s8,fs20s8m,fs20sa,fs20sd,fs20sig,fs20sm4,fs20sm8,fs20sn,fs20sr,fs20ss,fs20st,fs20st2,fs20str,fs20su,fs20sv,fs20tc1,fs20tc6,fs20tfk,fs20tk,fs20ue1,fs20usr,fs20uts,fs20ws1,fs20ze
onOffDevice eventMap or use attr global userattr icon Unknown attribute
icon, choose one of room comment alias disable:0,1 logtype nrarchive
archivedir archivecmd onOffDevice eventMap or use attr global userattr icon
Unknown attribute icon, choose one of room comment alias IODev
do_not_notify:1,0 ignore:0,1 showtime:1,0 loglevel:0,1,2,3,4,5,6
onOffDevice eventMap or use attr global userattr icon Unknown attribute
icon, choose one of room comment alias IODev do_not_notify:1,0 ignore:0,1
showtime:1,0 loglevel:0,1,2,3,4,5,6 onOffDevice eventMap or use attr global
userattr icon

Kann mir jemand weiterhelfen, damit ich auf meinem Android-Handy zwei
Buttons sehe: Einfahren und Ausfahren? Vorab herzlichen Dank!

*PS: die ersten Zeilen der fhem.cfg lauten
*attr global autoload_undefined_devices 1
attr global logfile /var/log/fhem/fhem-%Y-%m.log
attr global modpath /usr/share/fhem
attr global port 7072 global
attr global statefile /var/log/fhem/fhem.save
attr global userattr icon
attr global verbose 3

 

--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com

Guest

Originally posted by: <email address deleted>

habs mit den zwei Knöpfen 'Einfahren' und 'Ausfahren' hinbekommen. War wohl
sonst ein Fehler in der fhem.cfg.

Ist ganz einfach:

attr global userattr onOffDevice
attr Markise eventMap on:Einfahren off:Ausfahren
attr Markise onOffDevice false
attr Markise onOffDevice true

und schon erscheinen in andFHEM zwei Knöpfe: einer zum Einfahren und einer
zum Ausfahren der Markise

Jedoch ist das noch nicht befriedigend.

Die Markise benötigt etwa 30s zum kompletten Ausfahren. Man kann die
Markise am Funkschalter im Raum durch einen kurzen Impuls auf 'Ausfahren'
ausfahren. Ein nochmaliger Impuls auf 'Ausfahren' oder 'Einfahren' stoppt
die Markisenfahrt. Das gleiche beim Einfahren. Der Knopf 'Einfahren'
respektive 'Ausfahren' in andFHEM bleibt nun jedoch beim 1. Druck grün
markiert. Da muss wohl noch was hinzuprogrammiert werden. Etwa mit
'on-for-timer' oder Ähnlichem - damit der Status des Knopfes wieder von
grün auf grau wechselt. Oder am besten wäre ein 'Stopp'. Aber drei Knöpfe -
geht das denn auch??




Am Mittwoch, 19. September 2012 22:58:39 UTC+2 schrieb Fiso:
>
> Hallo zusammen,
>  
> unter http://andfhem.klass.li/hooks bin ich (wohl) auf die lange gesuchte
> Möglichkeit gestoßen, anstatt toggeln (Ein/Aus) die beiden Zustände Ein und
> Aus unter andFHEM auf meinem Handy separat anzeigen zu lassen. Somit hätte
> ich endlich die Möglichkeit unsere Markise mit der automatischen
> Markisensteuerung FS20AMS stückchenweise aus- und einzufahren. Mit dem
> toggeln Ein/Aus klappt das nicht.
>  
>
> ------------------------------------------------------------------------------------------------------------------------------------------
> Hooks
> Hooks to change andFHEM behaviour from within the *fhem.cfg* file.
> Each user attribute has to be added separately to the allowed user
> attributes in FHEM (i.e. attr global userattr onOffDevice)
> ---------------------------------------------------------------------
> *Name*
> *OnOffButtons
> *Display on / off buttons instead of toggle buttons
>  
> *User Attribute *
> onOffDevice
> the value has to be boolean (true or false)
>  
> *Example*
> attr mat_halogen onOffDevice true
> attr mat_halogen onOffDevice false
>
> ------------------------------------------------------------------------------------------------------------------------------------------
> **
> Jedoch bekomme ich den korrekten Eintrag in der fhem.cfg nicht hin :-(
>  
> Mein funktionierender Eintrag betreffend der Markise lautet:
> define Markise FS20 4112 1c
> attr Markise eventMap on:Einfahren off:Ausfahren
> attr Markise icon icoPirBaum.png
> attr Markise room Aussen
> define FileLog_Markise FileLog /var/log/fhem/Markise-%Y.log Markise
> attr FileLog_Markise icon icoLog.png
> attr FileLog_Markise logtype text
> attr FileLo
> g_Markise room FS20
>  
>  
> wenn ich
> attr global userattr onOffDevice
> attr Markise onOffDevice true
> attr Markise onOffDevice false
> in die fhem.cfg eintrage und speichere erscheint:
>  
> ERROR:
>
> Unknown attribute icon, choose one of room comment alias IODev
> follow-on-for-timer:1,0 follow-on-timer do_not_notify:1,0 ignore:1,0
> dummy:1,0 showtime:1,0 loglevel:0,1,2,3,4,5,6
> model:dummyDimmer,dummySender,dummySimple,fs20as1,fs20as4,fs20bf,fs20bs,fs20di,fs20di10,fs20du,fs20fms,fs20hgs,fs20irl,fs20kse,fs20ls,fs20ms2,fs20pira,fs20piri,fs20piru,fs20rgbsa,fs20rst,fs20rsu,fs20s16,fs20s20,fs20s4,fs20s4a,fs20s4m,fs20s4u,fs20s4ub,fs20s8,fs20s8m,fs20sa,fs20sd,fs20sig,fs20sm4,fs20sm8,fs20sn,fs20sr,fs20ss,fs20st,fs20st2,fs20str,fs20su,fs20sv,fs20tc1,fs20tc6,fs20tfk,fs20tk,fs20ue1,fs20usr,fs20uts,fs20ws1,fs20ze
> onOffDevice eventMap or use attr global userattr icon Unknown attribute
> icon, choose one of room comment alias disable:0,1 logtype nrarchive
> archivedir archivecmd onOffDevice eventMap or use attr global userattr icon
> Unknown attribute icon, choose one of room comment alias IODev
> follow-on-for-timer:1,0 follow-on-timer do_not_notify:1,0 ignore:1,0
> dummy:1,0 showtime:1,0 loglevel:0,1,2,3,4,5,6
> model:dummyDimmer,dummySender,dummySimple,fs20as1,fs20as4,fs20bf,fs20bs,fs20di,fs20di10,fs20du,fs20fms,fs20hgs,fs20irl,fs20kse,fs20ls,fs20ms2,fs20pira,fs20piri,fs20piru,fs20rgbsa,fs20rst,fs20rsu,fs20s16,fs20s20,fs20s4,fs20s4a,fs20s4m,fs20s4u,fs20s4ub,fs20s8,fs20s8m,fs20sa,fs20sd,fs20sig,fs20sm4,fs20sm8,fs20sn,fs20sr,fs20ss,fs20st,fs20st2,fs20str,fs20su,fs20sv,fs20tc1,fs20tc6,fs20tfk,fs20tk,fs20ue1,fs20usr,fs20uts,fs20ws1,fs20ze
> onOffDevice eventMap or use attr global userattr icon Unknown attribute
> icon, choose one of room comment alias disable:0,1 logtype nrarchive
> archivedir archivecmd onOffDevice eventMap or use attr global userattr icon
> Unknown attribute icon, choose one of room comment alias IODev
> follow-on-for-timer:1,0 follow-on-timer do_not_notify:1,0 ignore:1,0
> dummy:1,0 showtime:1,0 loglevel:0,1,2,3,4,5,6
> model:dummyDimmer,dummySender,dummySimple,fs20as1,fs20as4,fs20bf,fs20bs,fs20di,fs20di10,fs20du,fs20fms,fs20hgs,fs20irl,fs20kse,fs20ls,fs20ms2,fs20pira,fs20piri,fs20piru,fs20rgbsa,fs20rst,fs20rsu,fs20s16,fs20s20,fs20s4,fs20s4a,fs20s4m,fs20s4u,fs20s4ub,fs20s8,fs20s8m,fs20sa,fs20sd,fs20sig,fs20sm4,fs20sm8,fs20sn,fs20sr,fs20ss,fs20st,fs20st2,fs20str,fs20su,fs20sv,fs20tc1,fs20tc6,fs20tfk,fs20tk,fs20ue1,fs20usr,fs20uts,fs20ws1,fs20ze
> onOffDevice eventMap or use attr global userattr icon Unknown attribute
> icon, choose one of room comment alias disable:0,1 logtype nrarchive
> archivedir archivecmd onOffDevice eventMap or use attr global userattr icon
> Unknown attribute icon, choose one of room comment alias IODev
> do_not_notify:1,0 ignore:0,1 showtime:1,0 loglevel:0,1,2,3,4,5,6
> onOffDevice eventMap or use attr global userattr icon Unknown attribute
> icon, choose one of room comment alias IODev do_not_notify:1,0 ignore:0,1
> showtime:1,0 loglevel:0,1,2,3,4,5,6 onOffDevice eventMap or use attr global
> userattr icon
>
> Kann mir jemand weiterhelfen, damit ich auf meinem Android-Handy zwei
> Buttons sehe: Einfahren und Ausfahren? Vorab herzlichen Dank!
>
> *PS: die ersten Zeilen der fhem.cfg lauten
> *attr global autoload_undefined_devices 1
> attr global logfile /var/log/fhem/fhem-%Y-%m.log
> attr global modpath /usr/share/fhem
> attr global port 7072 global
> attr global statefile /var/log/fhem/fhem.save
> attr global userattr icon
> attr global verbose 3
>
>  
>

--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com