FHEM Forum

FHEM => Mobile Devices => Thema gestartet von: hermanski.k am 11 Juli 2017, 12:48:37

Titel: Fhem Smartphone colorpicker
Beitrag von: hermanski.k am 11 Juli 2017, 12:48:37
Hallo, ich habe für meinen Led Controller in fhem einen colorpicker mit vor definierten Farben definiert. Wenn ich diesen über das Smartphone auf die Werbefläche über die mobile Ansicht auf das Webinterface zugreife sehe ich keinen colorpicker. Gibt es hierfür eine Abhilfe. Besten Dank im voraus. SG Kamilo

Gesendet von meinem SM-A310F mit Tapatalk

Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: justme1968 am 11 Juli 2017, 12:59:28
im portrait mode werden dir webcmd ausgeblendet. dreh mal auf landscape.

es gibt ein attribut im WEB device um das umzustellen.
Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: hermanski.k am 11 Juli 2017, 13:13:39
OK wie heißt das Attribut? Heute gerne einen colorpicker im Portrait Mode. Ist das möglich?

Gesendet von meinem SM-A310F mit Tapatalk

Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: rudolfkoenig am 11 Juli 2017, 14:33:11
ZitatOK wie heißt das Attribut?
https://fhem.de/commandref.html#smallscreenCommands
Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: hermanski.k am 12 Juli 2017, 12:42:45
Danke.

Gesendet von meinem SM-A310F mit Tapatalk

Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: hermanski.k am 18 Juli 2017, 12:49:19
Hallo,
ich habe den ESP LED Controller hier aus dem Forum wie folgt angelegt.
1. mal angelegt:

define LED_Wo LedController 192.168.178.71
attr LED_Wo colorTemp 2700
attr LED_Wo defaultColor 0,10,80
attr LED_Wo defaultRamp 6000
attr LED_Wo room 1.2_Wohnzimmer
attr LED_Wo verbose 5
attr LED_Wo webCmd rgb:rgb ABB584:rgb ffdb4a:rgb ff0000:rgb 80eeff:rgb 00ff00:rgb 0000ff:rgb ffffff:rgb 000000
attr LED_Wo widgetOverride rgb:colorpicker,rgb

2. mal angelegt als

define LED LedController 192.168.178.71
attr LED colorTemp 2700
attr LED defaultColor 0,10,80
attr LED defaultRamp 6000


Es ging mir einfach darum Über das Webinterface direkt licht einzuschalten bzw. eine vordefinierte Farbauswahl zu haben.

Mein Problem ist aktuell, dass ich über die mobile ansicht (8085)  keine Auswahl der vordefinierten Farben habe.
Der Colorpicker ist über das smartphone nicht sichtbar.

Für tips wäre ich dankbar.

Gruß,
Kamilo
Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: justme1968 am 18 Juli 2017, 12:53:42
mobile devices zeigen im portrait mode keine webCmd an. dreh dein handy auf landacape oder aktive die anzeige per attribut im fhemweb device.
Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: hermanski.k am 18 Juli 2017, 16:27:05
https://fhem.de/commandref.html#smallscreenCommands

Gesendet von meinem SM-A310F mit Tapatalk

Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: hermanski.k am 18 Juli 2017, 17:56:27
mit dem von mir gepostetem attr. hat es nicht funktioniert.
Ich sehe nichts im landscape modus.
Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: hermanski.k am 18 Juli 2017, 18:03:33
anbei ein bild vom smartphone und eines vom rechner
Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: justme1968 am 18 Juli 2017, 18:37:03
ich sehe diverse colorpicker auf dem landscape bild.

was fehlt dir denn?
Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: hermanski.k am 18 Juli 2017, 22:25:56
Ich möchte den colorpicker auch vom Smartphone aufrufen können. siehe oberes bild. Zu sehen ist nur die Statusleuchte.
Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: justme1968 am 18 Juli 2017, 22:33:56
geht es mit dem standard oder dark style?

wo hast du das smallscreenCommands attribut gesetzt?
Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: hermanski.k am 19 Juli 2017, 00:01:31
Geht bei den anderen Theme auch nicht.  Gesetzt ist es bei webphone

Gesendet von meinem SM-A310F mit Tapatalk

Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: rudolfkoenig am 19 Juli 2017, 07:42:01
Kannst du bitte nochmal kontrollieren, dass smallscreenCommands gesetzt ist?

Falls ja:
-Geht es mit fhem.cfg.demo? Da muss vorher auch "attr WEBphone smallscreenCommands" gesetzt werden.
-kannst du bitte zusaetzlich die komplette Definition (siehe Raw definition oder list -r) von dem betroffenen FHEMWEB Instanz hier anhaengen?
Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: hermanski.k am 19 Juli 2017, 16:53:43
auszug aus der list -r
define WEBphone FHEMWEB 8084 global
attr WEBphone CssFiles hausautomatisierung-com/styles.css
attr WEBphone HTTPS 1
attr WEBphone longpoll 1
attr WEBphone smallscreenCommands 1
attr WEBphone sslVersion !TLSv1:!TLSv1_1:TLSv1_2:!SSLv23:!SSLv3:!SSLv2
attr WEBphone stylesheetPrefix hausautomatisierung_com


fhem.cfg.demo sagt mir leider nichts?
Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: rudolfkoenig am 19 Juli 2017, 21:41:17
Zitatattr WEBphone stylesheetPrefix hausautomatisierung_com
Damit ein Style als "smallscreen" eingestuft wird (und damit die Seite anders aufgebaut wird, und smallscreenCommands "wirkt"), muss der Style "smallscreen" im Namen haben.
Das ist hier nicht der Fall. Ich habe dein Fall mit einem dummy nachgebaut, und mit den 3 mir bekannten smallscreen-Styles ausprobiert: ich sehe kein Problem. Siehe Anhang.
Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: hermanski.k am 20 Juli 2017, 08:14:37
Mh. Mit den folgenden Einstellungen klappt es bei mir immer noch nicht
define WEBphone FHEMWEB 8084 global
attr WEBphone HTTPS 1
attr WEBphone longpoll 1
attr WEBphone smallscreenCommands 1
attr WEBphone sslVersion !TLSv1:!TLSv1_1:TLSv1_2:!SSLv23:!SSLv3:!SSLv2
attr WEBphone stylesheetPrefix ios7smallscreen

Gesendet von meinem SM-A310F mit Tapatalk

Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: rudolfkoenig am 20 Juli 2017, 08:28:44
Auch auf dem Desktop nicht?
Mobilseite aufrufen, und darauf achten, dass Bildschirm breiter ist als hoch.
Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: hermanski.k am 20 Juli 2017, 12:09:36
Ja richtig. Wenn ich die Mobile Seite auf dem Desktop Aufrufe wird es nicht dargestellt

Gesendet von meinem SM-A310F mit Tapatalk

Titel: Antw:Fhem Smartphone colorpicker
Beitrag von: rudolfkoenig am 20 Juli 2017, 12:36:04
Dann bin ich ratlos.