Autor Thema: Frage zu dem Wifilight und der Farbeinstellung  (Gelesen 88 mal)

Offline moonsorrox

  • Hero Member
  • *****
  • Beiträge: 2887
  • Online
Frage zu dem Wifilight und der Farbeinstellung
« am: 12 Juli 2018, 13:25:11 »
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 i3: FHEM-Server 5.8 :: 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

Offline moonsorrox

  • Hero Member
  • *****
  • Beiträge: 2887
  • Online
Antw:Frage zu dem Wifilight und der Farbeinstellung
« Antwort #1 am: Heute um 16:06:15 »
niemand so etwas im Einsatz, keiner eine Idee..?
Intel-NUC i3: FHEM-Server 5.8 :: 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

 

decade-submarginal