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


(m3ta) #1

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


(SiHui) #2

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


(m3ta) #3

Hello sihu,

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


(SiHui) #4

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

(m3ta) #5

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


(SiHui) #6

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!


(m3ta) #7

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.


(SiHui) #8

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


(m3ta) #9

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"}

(SiHui) #10

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:


(m3ta) #11

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:


(SiHui) #12

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


(m3ta) #13

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


(SiHui) #14

(m3ta) #15

Hello sihui,

thanks for searching this example and thanks for helping me !