Hallo!
Ich nutze die runde Fernbedienung der Living Colors (Trick 17: Philips Hue mit LivingColors 2 verbinden - PCtipp.ch) um auch die anderen Hues zu steuern.
Dazu habe ich mir auf den 2 Szenenknöpfen der Fernsteuerung:
Über die Bridge und das Hue Binding bekomme ich wie vorgesehen die Meldungen was die Hues treiben --> somit auch die Info wenn ich über die Fernbedienung was mache (leider etwas zeitverzögert).
Dh. ich lese dann die Werte aus und steuere noch andere Lampen damit via Zwave. Hier das Beispiel:
Nun wollte ich auch die Möglichkeit nutzen über die Living Colors auch meine Stehlampe zu dimmen - hier das Beispiel:
Hoffe es hilft Interessierten hier - so habe ich mit der Remote von Philips eine Steuerung für das Wohnzimmerlicht gebastelt.
Mfg
Herbert
Ich nutze die runde Fernbedienung der Living Colors (Trick 17: Philips Hue mit LivingColors 2 verbinden - PCtipp.ch) um auch die anderen Hues zu steuern.
Dazu habe ich mir auf den 2 Szenenknöpfen der Fernsteuerung:
- auf Button 1 die normalen Hues mit normalem Licht (wie beim Einschalten)
- auf Button 2 die Living Colors Lampe mit einer Farbe und voll gedimmt eingestellt.
Über die Bridge und das Hue Binding bekomme ich wie vorgesehen die Meldungen was die Hues treiben --> somit auch die Info wenn ich über die Fernbedienung was mache (leider etwas zeitverzögert).
Dh. ich lese dann die Werte aus und steuere noch andere Lampen damit via Zwave. Hier das Beispiel:
Code:
[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055] [LEFT]rule[/LEFT][/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT][/LEFT][/COLOR][LEFT][/LEFT][/SIZE][LEFT][/LEFT][/COLOR][LEFT][/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#000000] [/COLOR][/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"[U]Erkenne[/U] Hue [U]Fernbedienung[/U] [U]Szene[/U] TV"[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff] [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [LEFT][/LEFT] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055] [LEFT]when[/LEFT] [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [LEFT][/LEFT][/SIZE][LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]Item[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] Hue_Toggle3 [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]changed[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]from[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] OFF [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]to[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ON[/SIZE][/LEFT][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055] [LEFT]then[/LEFT] [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [LEFT][I]sendCommand[/I](LedKuecheR,[/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]255[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])[/SIZE][/LEFT][SIZE=2] [LEFT][I]sendCommand[/I](LedKuecheG,[/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]165[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])[/SIZE][/LEFT][SIZE=2] [LEFT][I]sendCommand[/I](LedKuecheB,[/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])[/SIZE][/LEFT][SIZE=2] [LEFT][I]sendCommand[/I](LedKuecheW,[/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])[/SIZE][/LEFT][SIZE=2] [LEFT][I]sendCommand[/I](LedKueche,[/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])[/SIZE][/LEFT][SIZE=2] [LEFT][I]sendCommand[/I](Licht_Stehlampe,[/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]10[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])[/SIZE][/LEFT][SIZE=2] [LEFT]Szenen.state == [/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]1[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d] [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [LEFT][/LEFT] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055] [LEFT]end[/LEFT] [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [LEFT][/LEFT] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055] [LEFT]rule[/LEFT][/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT][/LEFT][/COLOR][LEFT][/LEFT][/SIZE][LEFT][/LEFT][/COLOR][LEFT][/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#000000] [/COLOR][/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"[U]Erkenne[/U] Hue [U]Fernbedienung[/U] [U]Szene[/U] [U]aus[/U]"[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff] [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [LEFT][/LEFT] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055] [LEFT]when[/LEFT] [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [LEFT][/LEFT][/SIZE][LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]Item[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] Hue_Toggle3 [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]changed[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]from[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ON [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]to[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] OFF[/SIZE][/LEFT][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055] [LEFT]then[/LEFT] [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [LEFT][/LEFT] [LEFT][I]sendCommand[/I](LedKueche,[/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])[/SIZE][/LEFT][SIZE=2] [LEFT][I]sendCommand[/I](Licht_Stehlampe,[/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])[/SIZE][/LEFT][SIZE=2] [LEFT]Szenen.state == [/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]0[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d] [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [LEFT][/LEFT] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055] end [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE]
Code:
[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055] [LEFT]var[/LEFT][/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT][/LEFT][/COLOR][LEFT][/LEFT][/SIZE][LEFT][/LEFT][/COLOR][LEFT][/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#000000] HSBType Irishsb[/COLOR][/SIZE][/LEFT][SIZE=2] [LEFT][/LEFT] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055] var[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] [/COLOR][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]int[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] IntIrisDimmer[/COLOR] [/SIZE] [B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055] [LEFT]rule[/LEFT][/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT][/LEFT][/COLOR][LEFT][/LEFT][/SIZE][LEFT][/LEFT][/COLOR][LEFT][/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#000000] [/COLOR][/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"[U]mit[/U] HUE [U]Fernbedienung[/U] [U]Stehlampe[/U] Dimmer [U]steuern[/U]"[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff] [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [LEFT][/LEFT] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055] [LEFT]when[/LEFT][/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT][/LEFT][/COLOR][LEFT][/LEFT][/SIZE][LEFT][/LEFT][/COLOR][LEFT][/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#000000] [/COLOR][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]Item[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] Hue_Dimm3 [/COLOR][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]changed[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] [/COLOR][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]then[/COLOR][/SIZE][/COLOR][/SIZE][/B][/LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055] [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [LEFT][/LEFT] [LEFT][/LEFT][/SIZE][LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]if[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (Hue_Toggle3.state == ON) {[/SIZE][/LEFT][SIZE=2] [LEFT][I]logInfo[/I]([/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"HUE [U]Fernbedienung[/U] Dimmer"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2],[/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"Change [U]erkannt[/U]"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])[/SIZE][/LEFT][SIZE=2] [LEFT][/LEFT] [LEFT]IntIrisDimmer=[/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]0[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d] [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [LEFT][/LEFT] [LEFT]Irishsb = Hue_Color3.state [/LEFT][/SIZE][LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]as[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] HSBType[/SIZE][/LEFT][SIZE=2] [LEFT][/LEFT] [LEFT]IntIrisDimmer = Irishsb.brightness.intValue[/LEFT] [LEFT][/LEFT] [LEFT][I]logInfo[/I]([/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"HUE [U]Fernbedienung[/U] Dimmer"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2],IntIrisDimmer.toString)[/SIZE][/LEFT][SIZE=2] [LEFT][/LEFT][/SIZE][LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]if[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (IntIrisDimmer < [/SIZE][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]11[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]) {[/SIZE][/LEFT][SIZE=2] [LEFT][/LEFT][/SIZE][LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]if[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (IntIrisDimmer > [/SIZE][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]) {[/SIZE][/LEFT][SIZE=2] [LEFT][/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]//[U]Mindestlichtstärke[/U][/COLOR][/SIZE][/COLOR][/SIZE][/LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f][U] [/U][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [LEFT][I]sendCommand[/I](Licht_Stehlampe,[/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]10[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])[/SIZE][/LEFT][SIZE=2] [LEFT][I]logInfo[/I]([/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"HUE [U]Fernbedienung[/U] Dimmer"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2],[/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"Iris Dimmer [U]ist[/U] [U]größer[/U] 0"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])}}[/SIZE][/LEFT][SIZE=2] [LEFT][/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]//[U]wenn[/U] [U]über[/U] [U]Mindestlichtstärke[/U] [U]für[/U] [U]Stehlampe[/U], [U]dann[/U] [U]mittdimmen[/U][/COLOR][/SIZE][/COLOR][/SIZE][/LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f][U] [/U][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [LEFT][/LEFT] [LEFT][/LEFT][/SIZE][LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]if[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (IntIrisDimmer >[/SIZE][SIZE=2][COLOR=#7d7d7d][SIZE=2][COLOR=#7d7d7d]10[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]) {[/SIZE][/LEFT][SIZE=2] [LEFT][I]sendCommand[/I](Licht_Stehlampe,IntIrisDimmer)[/LEFT] [LEFT][I]logInfo[/I]([/LEFT][/SIZE][LEFT][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"HUE [U]Fernbedienung[/U] Dimmer"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2],[/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"Iris Dimmer [U]ist[/U] >10"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])}[/SIZE][/LEFT][SIZE=2] [LEFT]}[/LEFT] [LEFT][/LEFT] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055] end [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE]
Mfg
Herbert