Hauptmenü

Dummy Icon in Floorplans

Begonnen von Michael, 12 Februar 2013, 17:52:02

Vorheriges Thema - Nächstes Thema

Michael

Moin

Brauche schon wieder eure Hilfe.

Ich möchte gern die Schaltzustände (on/off) als Icon im Floorplans ausgeben.
Was bei FS20 und Weblink klappt.
Nur bei den Dummy's bekomme ich im Floorplans Platzhalter angezeigt.

(siehe Anhang / see attachement)

Im Web (8083) sind sie vorhanden.

(siehe Anhang / see attachement)


Bitte gebt mir einen Tip.
Was ich da schon wieder falsch mache.

Gruß, Michael
Gruß, Michael

FHEM 6.0 auf RPi 3
CUL V3 868 Mhz | JeeLink LaCrosse & PCA301 | CCU3
BMP085(180) | 14x TX29DTH-IT | 5x PCA 301 | SMA Peripheries | MobileAlerts MA-10(100,120PRO,200,251,410,650,660,800) | HM IP

Sturi2011

Hi,

wie hast du die Dummys definiert?

bei mir sieht das z.B. so aus:
#FLOORPLANDUMMYS
define AQDM dummy
attr AQDM fp_Erdgeschoss 285,495,0,
attr AQDM room hidden
attr AQDM setList on off
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


Gruß Andreas

Michael

Hi

Ich habe es so gemacht.

define 00_Chef_PC at +*00:01:00 trigger 0_DeviceChefPC
attr 00_Chef_PC room 03 Anwesend

define 0_DeviceChefPC notify 0_DeviceChefPC  {my $aa="";;\
  $aa=qx(/usr/bin/ctlmgr_ctl r landevice settings/landevice0/active );;\
  $aa=$aa * 1;;\
  fhem "set Chef_PC $aa";;}

define Chef_PC dummy
attr Chef_PC eventMap on:1 off:0
attr Chef_PC fp_Erdgeschoss 200,650
attr Chef_PC fp_image images/default/Chef_PC.{state}.png
attr Chef_PC room 03 Anwesend


So ganz sehe ich nicht wo du die Icon's her holst.

Gruß, Michael
Gruß, Michael

FHEM 6.0 auf RPi 3
CUL V3 868 Mhz | JeeLink LaCrosse & PCA301 | CCU3
BMP085(180) | 14x TX29DTH-IT | 5x PCA 301 | SMA Peripheries | MobileAlerts MA-10(100,120PRO,200,251,410,650,660,800) | HM IP

Sturi2011

Hi,

ersetze mal die eventmap durch Setlist

Gruß Andreas

Michael

Hi,

ne, leider kein Erfolg.

Dann bekomme ich weder im Fhemweb noch im Floorplan das Icon.
Es wird nur der Zustand (1 od. 0) angezeigt.

Gruß Michael
Gruß, Michael

FHEM 6.0 auf RPi 3
CUL V3 868 Mhz | JeeLink LaCrosse & PCA301 | CCU3
BMP085(180) | 14x TX29DTH-IT | 5x PCA 301 | SMA Peripheries | MobileAlerts MA-10(100,120PRO,200,251,410,650,660,800) | HM IP

Sturi2011

Hi,

logischer Weise da ->
define 0_DeviceChefPC notify 0_DeviceChefPC  {my $aa="";;\
  $aa=qx(/usr/bin/ctlmgr_ctl r landevice settings/landevice0/active );;\
  $aa=$aa * 1;;\
  fhem "set Chef_PC $aa";;}


nur einen nummerischen Wert ergeben kann.

define 0_DeviceChefPC notify 0_DeviceChefPC  {my $aa="";;\
  $aa=qx(/usr/bin/ctlmgr_ctl r landevice settings/landevice0/active );;\
  $aa=$aa * 1;;\
  if ($aa == 1) { \
        fhem("set Chef_PC on") \
    } \
    else { \
        fhem("set Chef_PC off") \
    } \


Gruß Andreas

Michael

Hi

Vielen Dank !!!

Da wäre ich nicht drauf gekommen.
Bin wohl doch zu Blond ;-)

Gruß, Michael
Gruß, Michael

FHEM 6.0 auf RPi 3
CUL V3 868 Mhz | JeeLink LaCrosse & PCA301 | CCU3
BMP085(180) | 14x TX29DTH-IT | 5x PCA 301 | SMA Peripheries | MobileAlerts MA-10(100,120PRO,200,251,410,650,660,800) | HM IP

Michael

Hi

Zu früh gefreut!

Anzeige ist IO.
Aber im Logfile bekomme ich folgendes :
ZitatUnknown command if, try help
Unknown command $aa=, try help
Unknown command $aa=qx(/usr/bin/ctlmgr_ctl, try help
, try help
2013.02.16 14:23:31 3: DeviceChefPC return value: Unknown command {\

Das ist der Code dazu.
define DeviceChefPC notify DeviceChefPC  {\
  my $aa="";;\
     $aa=qx(/usr/bin/ctlmgr_ctl r landevice settings/landevice0/active );;\
     $aa= $aa * 1};;\
  if ($aa == 1){\
        fhem("set Chef_PC on")\
    }\
    else {\
        fhem("set Chef_PC off")\
    }\


Bin schon durcheinander.
Geändert {}, ;;, \,

Finde einfach den Fehler nicht.

Gruß, Michael
Gruß, Michael

FHEM 6.0 auf RPi 3
CUL V3 868 Mhz | JeeLink LaCrosse & PCA301 | CCU3
BMP085(180) | 14x TX29DTH-IT | 5x PCA 301 | SMA Peripheries | MobileAlerts MA-10(100,120PRO,200,251,410,650,660,800) | HM IP