Set startsettings or change current settings for Items (Color, brightness) with command

Hello guys,

i’m looking for a way to setup startsettings for my milight/wifilight Items but i dont know how to setup.

Beside that, i would like to change settings(Color, brightniss) with a command and i don’t know how to do this. Where can i find these informations?

best regards

m3tatai

Try the docs:

1.x binding: http://docs.openhab.org/addons/bindings/milight1/readme.html
2.x binding: http://docs.openhab.org/addons/bindings/milight/readme.html

Hello sihu,

thanks for your fast answer! So i have to use rules to set another color/brightness ?

Not necessarily,

for colors:

Color Light_Party {channel="milight:rgbLed:ACCF23A6C0B4:5:rgb"}# Colorpicker for rgb bulbs

for brightness:

Dimmer RGBW_LivingroomB {channel="milight:rgbLed:ACCF23A6C0B4:7:ledbrightness"} # Dimmer changing brightness for RGBW bulb1

then display it on your sitemap:

Colorpicker item=Light_Party
Slider item=RGBW_LivingroomB

I would like to say “green” (over Alexa) and the light should be set to green .

And when i want to dim the bulb, i have to group them ?
Otherwise every item got a seperate name and i have to say “Dim LivingRoom_Brightness to 50%”

Switch LivingRoomRGB

Dimmer LivingRoomRGB_Brightness

Color LivingRoomRGB_Color

You may use Proxy (virtual) items which are not bound directly to the hardware, but are tagged for Alexa. Then you use a rule to update the item which is bond to your hardware.
You can create as many items as you want with different labels to have Alexa recognize those.

To use the new Alexa skill you need to setup your items the same way as Homekit items are set up:

http://docs.openhab.org/addons/io/homekit/readme.html and
Official Openhab skill for Alexa amazon echo available!

These are my items:

Number Light_scene		
	"Scenes"

Color Light_scene_ColorSelect
"Scene Selector"
[ "Color" ] 
{ channel="milight:rgbwLed:F0FE6B2DC252:1:ledcolor"}

Switch Wohnzimmerlicht
"Wohnzimmerlicht" 
[ "Lighting" ] 
{ channel="milight:rgbwLed:F0FE6B2DC252:1:ledbrightness"}

But with this config, i 'm only able to switch the light on and off via alexa. Switch Wohnzimmerlicht is the only item i can find via alexa.

Color is not a valid tag, use Lighting instead:

http://docs.openhab.org/addons/io/homekit/readme.html

and for a switch ON/OFF you may use Switchable

Hello sihui,

i tried your advice but the new devices do not appear in alexa. Only Wohnzimmerlicht is available

Number Light_scene		
"Scenes"
[ "Lighting" ]

Color Light_scene_ColorSelect
"Scene Selector"
[ "Lighting" ] 
{ channel="milight:rgbwLed:F0FE6B2DC252:1:ledcolor"}

Switch Wohnzimmerlicht
"Wohnzimmerlicht" 
[ "Lighting" ] 
{ channel="milight:rgbwLed:F0FE6B2DC252:1:ledbrightness"}

Your items definition looks correct, although you cannot use Number with Lighting:
http://docs.openhab.org/addons/io/homekit/readme.html

Did you forget to search for new devices via Alexa or Alexa App or Alexa browser login?

Edit: or maybe you can use Number with Lighting, don’t know, haven’t used it yet:

Mh okay. So we have to wait for more items getting supported.

BTW I can’t find any commands for wifilight to change the color .

Thank you very much for helping me ! :slight_smile:

Whatever binding you are using for that, you should be able to find examples on the bindings pages:

http://docs.openhab.org/addons/bindings.html

Wifi LED???
http://docs.openhab.org/addons/bindings/wifiled/readme.html

There are just example for items, but i cant find a way to set color/brightness/saturation by command.

Hello sihui,

thanks for searching this example and thanks for helping me !