OH3 Color light bulb and Google Assistant

  • Platform information:
    • Hardware: Raspi4
    • OS: Openhabian
    • Java Runtime Environment: which java platform is used and what version
    • openHAB version: OH 3.1

Hi There,

i have installed two Shelly Bulb duo. I want to expose them to Google Assistant but i dont get it to work.
I configured a new item group with the items described in documentation:



First of all the OH GUI did not suggest a Google tag named “lightPower”. So i used just the Light tag.

In Google there is only a light bulb with white spectrum visible but no color configuration.
image

I have also an internal group “all_lights” which is not exposed to google. To realize this i created two items for the shelly bulb.
But these items are not synchronized:

I think this is really complicated for just a color bulb…

I dont get it… Any help is very apreciated!

br

Anyone an idea?

There has been an update release so that also a separate Color item can be configured: Google Assistant | openHAB

Thus, I would suggest to replace the lightColorTemperature with lightColor.

The power item needs to have the lightPower metadata set.
As this might not be selectable yet with the UI, you have to manually assign it.

Only the group item should have the light metadata assigned.

@michikrug Nice one for clearing this up re assistant and “specialcolorlight”, do you know if there is a function within GA to invert the colour temperature function when taking it as a %?
Currently, by default GA 0%=COOL 100%=WARM the bulbs I have are the opposite 0%=WARM 100%=COOL. This makes more sense in my head as the warmer the colour temper the lower the number.
I wanted to see if this is something I can get GA to output before I go down the rabbit hole of converting in OH.
Thanks in advance!

Currently there is no option to do so.

Google internally always uses Kelvin for color temperatures, which also explains the percentage conversion you observed.
See Cloud-to-cloud  |  Google Home

I got it to run as follows:

  • Group with MetaData SpecialColorItem
  • Control member with MetaData lightPower
  • Color member (not color temperature) with MetraData lightColor (not lightColorTemperature)
  • Brightness member with MetaData ´lightBrightness´

Not all of them are selectable in the UI. You have to select a random one, and then switch to the Code tab and enter it manually.

In the doc, there is also a way described how you can add a pattern with sub-groups to control multiple lights at once.