Frage zu dem Wifilight und der Farbeinstellung

Begonnen von moonsorrox, 12 Juli 2018, 13:25:11

Vorheriges Thema - Nächstes Thema

moonsorrox

Ich nutze dieses Wifilight Modul für einen LED Streifen was auch funktioniert. Nun habe ich mir ein PopUp für FTUI gebaut welches alle Einstellungen beinhaltet.

Eine reine Farbeinstellung funktioniert mit RGB sowohl auch mit HSV problemlos, nun habe ich mir aber diese Volume Regler eingebaut diese funktionieren bis auf die Helligkeit nicht.

Was ich nicht hinbekomme ist praktisch die Regler für Color und die Sättigung data-get usw.
Hier mal mein Beispiel welches ich nutze.

<div class="card" style="margin-left:0px !important; margin-top:5px !important; margin-right:0px !important;">
<div data-type="popup" data-height="600px" data-width="450px" data-return-time="90" data-draggable="false">
<div style="margin-top:5px; margin-left:0px;" data-type="symbol" data-device="du_Modus_WZ_" data-states='["FHEM","Urlaub","Aus"]' data-colors='["lightgreen","#4169e1","yellow"]' data-background-colors='["lightgreen","#4169e1","yellow"]' data-background-icon="fa-square-o" data-icons='["fs-hue_filled_white_and_color_e27_b22","oa-user_away","oa-time_manual_mode"]'></div>
<div style="margin-top:5px !important; font-size:100%" data-type="label">- Modus LED-Streifen Küche -</div>
<div class="dialog bg-darkgray">
<header style="background-color:#1f222e;">
<div class="sheet">
<div class="left" style="margin-left:15px; margin-top:10px; margin-bottom:10px; font-size:18px; color:royalblue">Modus - LED-Streifen - Küche -</div>
<div data-type="link" data-color="white" data-icon-left="fa-times" class="right big" style="margin-top:5px;" onclick="$('.dialog-close').trigger('click');"></div>
</div>
</header>
<div class="card grow-2" >
<div class="hbox bg-darkgray">
<div>
<div class="cell">
<div class="darkorange" style="margin-top:5px !important; font-size:150%" data-type="label">LED - Streifen Küche</div>
</div>
<div class="cell">
<div class="inline"><div class="big" data-type="push" data-device="du_Modus_" data-get="state" data-background-icon="none" data-get-on="FHEM" data-get-off="!on" data-on-color="lightgreen" data-off-color="white" data-icon="fs-hue_filled_lightstrip" data-set-on="FHEM"></div>
<div style="margin-top:-10px !important; font-size:90%" data-type="label">FHEM</div>
</div>
<div class="inline"><div class="big" data-type="push" data-device="" data-get="state" data-background-icon="none" data-get-on="Urlaub" data-get-off="!on" data-on-color="#4169e1" data-off-color="white" data-icon="oa-user_away" data-set-on="Urlaub"></div>
<div style="margin-top:-10px !important; font-size:100%" data-type="label">Urlaub</div>
</div>
<div class="inline"><div class="big" data-type="push" data-device="du_Modus_" data-get="state" data-background-icon="none" data-get-on="Aus" data-get-off="!on" data-on-color="yellow"  data-off-color="white" data-icon="oa-time_manual_mode" data-set-on="Aus"></div>
<div style="margin-top:-10px !important; font-size:100%" data-type="label">Aus / Hand</div>
</div>
</div>
<div class="cell">
<div class="top-narrow-2x">
<div class="centered inline">
<div data-type="volume" data-device="SZ_WifiLight" data-min="0" data-max="65353" data-get="hue" data-set="RGB" class="hue-tick small top-space-3x"></div>
<div data-type="label" class="narrow">Color</div>
<div data-type="volume" data-device="SZ_WifiLight" data-min="0" data-max="100" data-get="saturation" data-set="HSV" data-tickstep='3' class="dim-tick small top-space-3x"></div>
<div data-type="label" class="narrow">Sättigung</div>
<div data-type="volume" data-device="SZ_WifiLight" data-min="0" data-max="100" data-get="brightness" data-set="dim" data-tickstep='1' class="dim-tick small top-space-3x"></div>
<div data-type="label" class="narrow">Helligkeit</div>
</div>
<div class="right inline top-space-3x">
<div>
<div data-type="push" data-device="SZ_WifiLight" data-icon="fa-lightbulb-o" data-set="HSV" data-set-on="240,100,100" data-off-background-color="#0000FF" data-off-color="#0000FF" class="inline"></div>
<div data-type="label" class="narrow w2x left-align inline">RoyalBlue</div>
</div>
<div>
<div data-type="push" data-device="SZ_WifiLight" data-icon="fa-lightbulb-o" data-set="RGB" data-set-on="00FF9D" data-off-background-color="#00FF9D" data-off-color="#00FF9D" class="inline"></div>
<div data-type="label" class="narrow w2x left-align inline">MediumSpringGreen</div>
</div>
<div>
<div data-type="push" data-device="SZ_WifiLight" data-icon="fa-lightbulb-o" data-set="RGB" data-set-on="FF4500" data-off-background-color="#DC143C" data-off-color="#DC143C" class="inline"></div>
<div data-type="label" class="narrow w2x left-align inline">Crimson</div>
</div>
<div>
<div data-type="push" data-device="SZ_WifiLight" data-icon="fa-lightbulb-o" data-set="RGB" data-set-on="96FFF8" data-off-background-color="#96FFF8" data-off-color="#96FFF8" class="inline"></div>
<div data-type="label" class="narrow w2x left-align inline">Türkis</div>
</div>
<div>
<div data-type="push" data-device="SZ_WifiLight" data-icon="fa-lightbulb-o" data-set="RGB" data-set-on="FF03EA" data-off-background-color="#FF03EA" data-off-color="#FF03EA" class="inline"></div>
<div data-type="label" class="narrow w2x left-align inline">Lila</div>
</div>
<div>
<div data-type="push" data-device="SZ_WifiLight" data-icon="fa-lightbulb-o" data-set="RGB" data-set-on="7F7F7F" data-off-background-color="#7F7F7F" data-off-color="#7F7F7F" class="inline"></div>
<div data-type="label" class="narrow w2x left-align inline">Weiß 50%</div>
</div>
<div>
<div data-type="push" data-device="SZ_WifiLight" data-icon="fa-lightbulb-o" data-set="RGB" data-set-on="ffffff" data-off-background-color="#ffffff" data-off-color="#ffffff" class="inline"></div>
<div data-type="label" class="narrow w2x left-align inline">Weiß 100%</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
Intel-NUC i5: FHEM-Server 6.1 :: Perl v5.18.2

Homematic: HM-USB-CFG2,HM-CFG-LAN Adapter, HM-LC-BL1-FM, HM-LC-Sw1PBU-FM, HM-LC-Sw1-PI-2, HM-WDS10-TH-O, HM-CC-TC, HM-LC-SW2-FM

moonsorrox

niemand so etwas im Einsatz, keiner eine Idee..?
Intel-NUC i5: FHEM-Server 6.1 :: Perl v5.18.2

Homematic: HM-USB-CFG2,HM-CFG-LAN Adapter, HM-LC-BL1-FM, HM-LC-Sw1PBU-FM, HM-LC-Sw1-PI-2, HM-WDS10-TH-O, HM-CC-TC, HM-LC-SW2-FM

Eisix

Hallo,

habe gestern meine LED's auf meiner Terrasse installiert.

Ansteuerung momentan so:


<body>
<div class="container">
        <header>
              Licht Markise
        </header>
<center>
<table border="0px" width="100%">
<tr>
        <td class="A1" width="85%">
                <center>
                        <div data-type="colorwheel"
                                data-device="Terrasse.Licht"
                                data-get="RGB"
                                data-set="RGB"
                                class="roundIndicator big cell">
                        </div>
                        <div class="top-narrow"><small>Farbe</small></div>
                </center>
        </td>
        <td class="B1" width="15%">
                <center>
                        <div data-type="dimmer"
                                data-device="Terrasse.Licht"
                                data-set-on="on"
                                data-set-off="off"
                                data-set-value="$v"
                                data-dim='dim'
                                data-get='state'
                                data-get-on="[1-9]\d?"
                                data-get-off="set_off"
                                class="right large cell">
                        </div>
                        <div><small>Helligkeit</small></div>
                </center>
        </td>
</tr>
</table>
</center>
</div>
</body>



Sieht aber so aus als würde ich so nicht die volle Helligkeit/Einstellungen kriegen im vergleich zu der original App des Herstellers (RGBW LD382A). Muss ich mir noch anschauen.

Gruß
Eisix

moonsorrox

OK wäre eine Maßnahme, dies so zu machen.
Was mir dabei so gar nicht gefällt ist die Dimm Geschichte, finde ich persönlich sehr fummelig..

Hab das jetzt mal eingebaut und das mit der Helligkeit ist bei mir OK, wenn ich auf meinen eigentlichen Dimmer gehe bekomme ich das genau so hell als wenn ich Weiß 100% nehme...! Der Schieber ist dabei ganz unten und zeigt aber 25 an..!!

Das Colorwheel kann ich ja in meinem PopUp benutzen, nur der "roundIndicator" verschiebt mir da so einiges im PopUp.
Intel-NUC i5: FHEM-Server 6.1 :: Perl v5.18.2

Homematic: HM-USB-CFG2,HM-CFG-LAN Adapter, HM-LC-BL1-FM, HM-LC-Sw1PBU-FM, HM-LC-Sw1-PI-2, HM-WDS10-TH-O, HM-CC-TC, HM-LC-SW2-FM