Kein Icon Update ohne Refresh

Begonnen von keo26, 14 April 2015, 12:58:21

Vorheriges Thema - Nächstes Thema

keo26

Hallo zusammen,

ich würde im Floorplan gerne nur Icons verwenden um etwa Schalter zu betätigen oder Rollladen zu steuern. Das funktioniert soweit auch. Leider wechselt der Zustand des Icon nicht ohne Refresh im Browser. Ich habe schon IE, Chrome und FF ausprobiert. Nach einem Refresh ist der Button im neuen Zustand und ich kann zurückschalten. Das beschriebene Verhalten tritt aber nur auf, wenn ich versuche über das Icon zu schalten (was auch das Ziel ist) wenn ich die Commands einblende und darüber schalte wird die Seite neu geladen.


Würde mich über jeden Hinweis freuen, da ich nicht weiß, wo ich noch suchen kann.

Vielen Dank vorab!



Hier meine fhem.cfg


attr global userattr devStateIcon devStateStyle fp_eg icon sortby webCmd widgetOverride
attr global autoload_undefined_devices 1
attr global logfile ./log/fhem-%Y-%m.log
attr global modpath .
attr global motd SecurityCheck:\
\
WEB,WEBphone,WEBtablet has no basicAuth attribute.\
telnetPort has no password/globalpassword attribute.\
\
Restart FHEM for a new check if the problem is fixed,\
or set the global attribute motd to none to supress this message.\

attr global statefile ./log/fhem.save
attr global updateInBackground 1
attr global verbose 3

define telnetPort telnet 7072 global

define WEB FHEMWEB 8083 global
attr WEB stylesheetPrefix lcars

define WEBphone FHEMWEB 8084 global
attr WEBphone stylesheetPrefix smallscreen

define WEBtablet FHEMWEB 8085 global
attr WEBtablet stylesheetPrefix touchpad

# Fake FileLog entry, to access the fhem log from FHEMWEB
define Logfile FileLog ./log/fhem-%Y-%m.log fakelog

define autocreate autocreate
attr autocreate filelog ./log/%NAME-%Y.log

define eventTypes eventTypes ./log/eventTypes.txt

# Disable this to avoid looking for new USB devices on startup
define initialUsbCheck notify global:INITIALIZED usb create


define eg FLOORPLAN
attr eg fp_arrange 1
attr eg fp_default 1


define MyWeather Weather 656385 3600 de
define MyWeatherWebLink weblink htmlCode { WeatherAsHtmlD("MyWeather") }
attr MyWeatherWebLink fp_eg 525,125,0,
attr MyWeatherWebLink htmlattr width_"900" height="500" frameborder="0" marginheight="0" marginwidth="0"
attr MyWeatherWebLink room Outside,Licht
define FL_MyWeather FileLog ./log/wetter-%Y-%m.log MyWeather
attr FL_MyWeather logtype text
attr FL_MyWeather room System


define sw1 dummy
attr sw1 devStateIcon .*off:coffee@FFCC9A:on on:coffee@CC6699:off
attr sw1 event-on-change-reading .*
attr sw1 event-on-update-reading .*
attr sw1 fp_eg 375,360,1,
attr sw1 setList off on
attr sw1 webCmd :
define a notify sw1:on {system('sudo /usr/local/bin/fhem-gpio.sh 21 1 &')}
define b notify sw1:off {system('sudo /usr/local/bin/fhem-gpio.sh 21 0 &')}

define coffee dummy
attr coffee devStateIcon on*:coffee@FFCC9A:on off*:coffee@CC6699:off
attr coffee setList on off
define sw_co_off notify coffee:off set coffee off
define sw_co_on notify coffee:on set coffee on


define schalter dummy
attr schalter fp_eg 50,100,2,
attr schalter room hidden
attr schalter setList on off