icon fhemweb not toggle

Begonnen von Guest, 08 Mai 2012, 21:36:33

Vorheriges Thema - Nächstes Thema

Guest

Originally posted by: <email address deleted>

Hi,

I'm using an fs20rsu for my shutters, and just update fhem yesterday.
I use now floorplan, but I noticed that the shutter only did 1 action,
that is on. So the icon, doesn't work as toggle anymore. I noticed
that in default fhemweb it also not change and always set to on, with
the icon?

any ideas?

regards Richard

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

Guest

Originally posted by: <email address deleted>

It only appears when you have eventmap definied, for example

attr Garage eventMap on:Down off:Up


On May 8, 9:36 pm, kroonen wrote:
> Hi,
>
> I'm using an fs20rsu for my shutters, and just update fhem yesterday.
> I use now floorplan, but I noticed that the shutter only did 1 action,
> that is on. So the icon, doesn't work as toggle anymore. I noticed
> that in default fhemweb it also not change and always set to on, with
> the icon?
>
> any ideas?
>
> regards Richard

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

Guest

Originally posted by: <email address deleted>

Hi, ich habe das Problem mmit den Dummys auch - sowohl im Everything, als
auch im Floorplan.
 
#FLOORPLANDUMMYS
define AQDM dummy
attr AQDM eventMap on:on off:off
attr AQDM fp_Erdgeschoss 285,495,0,
attr AQDM room hidden
define AQDMOn notify AQDM.on {fhem ("set AQ K1on")}
attr AQDMOn room hidden
define AQDMOff notify AQDM.off {fhem ("set AQ K1off")}
attr AQDMOff room hidden
 
Es tritt mit definierter und ohne definierte Eventmap auf.
 
Gruß Andreas

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

rudolfkoenig

                                                   

> So the icon, doesn't work as toggle anymore.

I changed to work also if eventMap is set, although i think it did not worked
before, so it is not a fix.

I've tested it with/without eventMap, with/without webCmd, with/without
longpoll  on normal and smallScreen, and I do not see any problems, although it
was sometimes dead with longpoll, before the browser reloaded everything again.

If it still does not work, then I need a small fhem.cfg with _exact_
instructions on how to reproduce the problem.

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

Guest

Originally posted by: <email address deleted>

Hi Rudi,

bei mir besteht das Problem auch weiterhin :-(.

Hier mal meine fhem.cfg etwas abgekürzt mit Gerätebespielen, die toggle
nicht durchführen bei Klick auf das Symbol

attr global autoload_undefined_devices 1
attr global holiday2we Bremen
attr global logfile ./log/fhem-%Y-%m.log
attr global modpath .
attr global port 7072 global
attr global room System
attr global statefile ./log/fhem.save
attr global title Zu Hause
attr global userattr Wohnzimmer building fm_fav fm_groups fm_name fm_order
fp_Erdgeschoss icon structexclude webCmd
attr global verbose 3

##############################################################
## Globale Attribute und Einstellungen von FHEM             ##
##############################################################

define Logfile FileLog ./log/fhem-%Y-%m.log fakelog
attr Logfile room System
define WEB FHEMWEB 8083 global
attr WEB room System
attr WEB stylesheetPrefix dark
define WEBphone FHEMWEB 8084 global
attr WEBphone room System
attr WEBphone smallscreen 1
define WEBtablet FHEMWEB 8085 global
attr WEBtablet room System
attr WEBtablet touchpad 1
define autocreate autocreate
attr autocreate autosave 1
attr autocreate device_room NEUES_GERÄT
attr autocreate filelog ./log/%NAME-%Y.log
attr autocreate room System
attr autocreate weblink 1
attr autocreate weblink_room NEUES_GERÄT

define initialUsbCheck notify global:INITIALIZED usb create
attr initialUsbCheck room System


##############################################################
## Section für den Floorplan und eingebundene weblinks      ##
##############################################################

define Erdgeschoss FLOORPLAN
attr Erdgeschoss fp_arrange 0
attr Erdgeschoss fp_default 1
attr Erdgeschoss fp_noMenu 1
attr Erdgeschoss fp_stylesheetPrefix darkbenji
attr Erdgeschoss room System

##############################################################
## Einbindung des CUL an der Fritzbox                       ##
##############################################################

define Zentrale CUL /dev/ttyACM0@9600 430A
attr Zentrale room System

##############################################################
## Das Wohnzimmer                                           ##
##############################################################

define Fernseher FS20 12344321 10
attr Fernseher eventMap on:Ein off:Aus
attr Fernseher fm_fav 1
attr Fernseher fm_order 1
attr Fernseher fp_Erdgeschoss 680,265,1,
attr Fernseher group Steckdosen
attr Fernseher model fs20st
attr Fernseher room Wohnzimmer

define Esstisch IT 000000000F 01 10
attr Esstisch IODev Zentrale
attr Esstisch eventMap on:Ein off:Aus
attr Esstisch fm_order 1
attr Esstisch fp_Erdgeschoss 675,395,1,Lampe Esstisch
attr Esstisch group Steckdosen
attr Esstisch model itswitch
attr Esstisch room Wohnzimmer

define Wohnzimmer structure room Fernseher Esstisch Couch
attr Wohnzimmer room Wohnzimmer

##############################################################
## Section für Bedingungen, notifies und ähnliches          ##
##############################################################

define FB_Temperature_sensor dummy
attr FB_Temperature_sensor comment Fritzbox device sensor
attr FB_Temperature_sensor room System

define w_WertListe1 weblink htmlCode {doWertListe1()}
attr w_WertListe1 fp_Erdgeschoss 470,550,0,
attr w_WertListe1 room System

define CUL_HOERMANN_41C0FB1D80 CUL_HOERMANN 41C0FB1D80
attr CUL_HOERMANN_41C0FB1D80 ignore 1
attr CUL_HOERMANN_41C0FB1D80 room System
define FileLog_CUL_HOERMANN_41C0FB1D80 FileLog
./log/CUL_HOERMANN_41C0FB1D80-%Y.log CUL_HOERMANN_41C0FB1D80
attr FileLog_CUL_HOERMANN_41C0FB1D80 logtype text
attr FileLog_CUL_HOERMANN_41C0FB1D80 room System

define fht_setdate notify fht_setdate { \
  if ( $year gt 2010 ) {\
    my @@fhts=devspec2array("TYPE=FHT");; \
    foreach(@@fhts) { \
      my $cmd="set ".$_." date time";;\
      fhem $cmd;;\
      Log 4, "sent cmd ".$cmd;;\
    } \
  } else {\
      Log 1, "error setting date for fhts: year <= 2010 - date invalid?!"\
  }\
}

define t_fht_setdate at *02:00:00 trigger fht_setdate
attr t_fht_setdate group Zeitsteuerung
attr t_fht_setdate room System
define wakeup at *05:00:00 {\
   if (!$we) {\
     {fhem("set Esstisch on") }\
  }\
}
attr wakeup fp_Erdgeschoss 735,405,0,Auto-An:
attr wakeup group Zeitsteuerung
attr wakeup room Wohnzimmer

define d_FB_Temperature at +*00:20:00 "(/bin/echo -n "`date
'+%Y-%m-%d_%H:%M:%S FB_Temperature measured-temp:'`
">>./log/Fritzbox7270.log & /usr/bin/ctlmgr_ctl r power
status/act_temperature >> ./log/Fritzbox7270.log )"
attr d_FB_Temperature group Zeitsteuerung
attr d_FB_Temperature room System

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

Guest

Originally posted by: <email address deleted>

STORNO :-)

Obwohl ich 25x updatefhem gemacht habe, habe ich das ganze nun noch mal
manuell aus dem SVN eingespielt und nun geht es. Sorry für den Post.

Gruß
Benjamin


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

Guest

Originally posted by: <email address deleted>

Rudi,

It is working again, also with the evenmap. Thnx


regards Richard


On 12 mei, 13:11, Rudolf Koenig wrote:
> > So the icon, doesn't work as toggle anymore.
>
> I changed to work also if eventMap is set, although i think it did not worked
> before, so it is not a fix.
>
> I've tested it with/without eventMap, with/without webCmd, with/without
> longpoll  on normal and smallScreen, and I do not see any problems, although it
> was sometimes dead with longpoll, before the browser reloaded everything again.
>
> If it still does not work, then I need a small fhem.cfg with _exact_
> instructions on how to reproduce the problem.

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

Guest

Originally posted by: <email address deleted>

>
> Hi,


bei mir besteht das Problem immernoch.

Das Konstrukt in der fhem .cfg sieht so aus:

define schalter dummy
attr schalter eventMap on:on off:off
attr schalter fp_EG 30,500,2,
attr schalter room hidden

Damit ist der Schalter in der fhemweb.pm bis vom 9.4 klickbar. In den
aktuellen Versionen nicht mehr.

Verursacht wird dies durch erstzen von:

  if(!$webCmd) {
>
    $hasOnOff = ($allSets =~ m/\bon\b/ && $allSets =~ m/\boff\b/);
>
    my $em = AttrVal($d, "eventMap", "");
>
    if($em) {
>
      if(!$hasOnOff) {
>
        $em .= " ";
>
        $hasOnOff = ($em =~ m/:on\b/ && $em =~ m/:off\b/);
>
      } else {
>
        (undef, $state) = ReplaceEventMap($d,[$d, $state],0);
>
      }
>
    }
>
}
>

durch:

$hasOnOff = (!$webCmd && $allSets =~ m/\bon\b/ && $allSets =~ m/\boff\b/);
>

im aktuellen Update.

Dadurch findet keine Abfrage statt ob Eventmap definiert ist und der Dummy
bleibt ohne Funktion.
Sobald man webcmd on:off definiert erscheinen zwar beide Links, man kann
aber mit dem Icon nur einschalten.
Dies ist in allen 3 Varianten 8083/4/5 so und besonders störend im
Floorplan.

Gibt es hierfür eine Lösung oder die Möglichkeit im regulären Update die
Prüfung auf Eventmap wieder einzubauen?

Gruß Andreas





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

rudolfkoenig

                                                   

> define schalter dummy
> attr schalter eventMap on:on off:off

Ich empfehle "attr schalter setList on off"
eventMap sollte zum Uebersetzen, nicht zum Auflisten der Befehle dienen.

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

Guest

Originally posted by: <email address deleted>

Hallo und danke
 

> Ich empfehle "attr schalter setList on off"
>
war genau das was ich suchte. Ich hatte leider nur die Variante mit setList
state:on,off gefunden.
 
Gruß Andreas
 
 

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