Setting up a TV with Google Assistant Integration

Not for now.
Would you mind adding a feature request here: Issues · openhab/openhab-google-assistant · GitHub
Thanks

1 Like

I think we will soon deploy. I am waiting to make the announcement. Maybe we do it without @michikrug ?

2 Likes

@MARZIMA was there a deployment? I am not sure for me it looks like the new TV item is still not there

Why is it necessary to wait for something?
Just let people here know that there will be a new version on a date of your choice and tell them the impact and do it! :slight_smile:

1 Like

@MARZIMA are there any news?

Now that the new release was announced, is the tv working for anyone? I tried with the simplest setup (just the group and tvPower) and i am not able to turn it on or off

Same for me. No tv for the moment in my google home app

@MARZIMA @michikrug should it already be available?

I tried the latest snaphot. Seems that it is still not included.

No. We had multiple appointments in the last weeks to bring all this stuff live, but Marzima seemed to have time issues…

3 Likes

We are patient, no problem. Google integration works very well with all new traits. I remember the 2019 conversations what were very unpolite for some reason when new traits were introduced an GH integration was redesigened by you at the end.

@michikrug
It looks like it is now available. But I have a question:

availableChannels
I tried to control my tv by saying: Put on ARD on LG
My availableChannels are setup like this:
1=Kanal1=ARD,2=Kanal2=ZDF
But google says he doesn’t know ARD. If I say Put on channel1 this is working.
So i changed it to ARD=ARD=ARD but also nothing happens. Is it only possible to use numbers to control the channels?

First, cool to see that it basically works!

Unfortunately, I can not answer your question. The code and tests look properly and also the names should be usable in the commands.
I will do a manual test in my setup in the next days to find out more about the behavior.

Could you please try: 1=ARD=ARD

This is working. Thank you for your support.

2021-05-11 20:56:24.438 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘TV_LG_Channel’ received command 3

2021-05-11 20:56:24.439 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘TV_LG_Channel’ changed from 1 to 3

So the first value is the value the item channel will receive. The second is the value for google assistant. But what is the 3rd parameter for?

I use it with new Sony TV binding. On/Off, volume, mute works fine. My next one will be input selector and channels.

channelNumber=channelCode=channelName

The channelNumber can be used in commands and is the one that is always send to openHAB.

The channelCode is required by Google as a unique identifier.

The channelName should be a human friendly name to be used.

So I am a bit unsure why the code is used and not the name…

See Actions on Google Smart Home  |  Google Developers and Actions on Google Smart Home  |  Google Developers

Hey thanks for reporting. I am also using the Sony Binding.
How does volume mute work for you? Is it actually activating the mute switch or is it incrementally decreasing the volume to zero? At my setup it is the latter which is quite annoying. It takes quite a lot of time and it “misses” some volume down steps so that it ends at volume 5 or 6…

It is activation the mute switch:

Group    gTV       "Sony TV Zsombor"     <television>  (gFirstroom) ["Television"] { ga="TV" [ volumeDefaultPercentage="20", levelStepSize="10", volumeMaxLevel="100", transportControlSupportedCommands="NEXT,PREVIOUS,PAUSE,RESUME", availableInputs="hdmi1=xbox,hdmi2=settopbox", availableChannels="1=Channel1=NBC,2=Channel2=CBS", roomHint="Zsombor room" ] }
Switch              SONYKD49XH9505AudioMuteSpeaker                                 "Mute speaker"      (gTV)  ["Switch"]                {channel="sony:scalar:d43a2af79a30:audio#mute-speaker", ga="tvMute" }

Hey Eric,

since you are obviously german could you tell me what you’re saying to your assistant to put on a tv channel in german? Mine always says it can not help me or starts playing videos of “ARD” on youtube. I tried various availableChannels definitions. Everything else like tvApplications is working fine though…

Thanks in advance.