grusso
(giuseppe)
1
how can i add tags for google home
sameone can help me?
this is my configuration but dosnt’ work
Switch LG_TV0_Power “TV Sala” [“Lighting”] { autoupdate=“false”, channel=“lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:power” }
Switch LG_TV0_Mute “TV Mute” { channel=“lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:mute”}
Dimmer LG_TV0_Volume “Volume [%S]” { channel=“lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:volume” }
Number LG_TV0_VolDummy “VolumeUpDown”
Number LG_TV0_ChannelNo “Channel [%d]” { channel=“lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:channel” }
Number LG_TV0_ChannelDummy “ChannelUpDown”
String LG_TV0_Channel “Channel [%S]” { channel=“lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:channelName”}
String LG_TV0_Toast { channel=“lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:toast”}
Switch LG_TV0_Stop “Stop” { autoupdate=“false”, channel=“lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:mediaStop” }
String LG_TV0_Application “Application [%s]” { channel=“lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:appLauncher”}
Player LG_TV0_Player { channel=“lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:mediaPlayer”}
Please use code fence.
What happen when you tell Google to “turn on TV Sala” ?
Perhaps you should use [“Switchable”] tag insted. Like this:
Switch LG_TV0_Power “TV Sala” [“Switchable”] { autoupdate=“false”, channel=“lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:power” }
Remember du syncronise your devices afterwards.
grusso
(giuseppe)
3
tanx for reply,
this is the only that work … there is a way to configure channel and volume too?
Switch LG_TV0_Power "TV Sala" <television> ["Switchable"] { autoupdate="false", channel="lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:power" }
Switch LG_TV0_Mute "TV Mute" ["Switchable"] { channel="lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:mute"}
Dimmer LG_TV0_Volume "Volume [%S]" { channel="lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:volume" }
Number LG_TV0_VolDummy "VolumeUpDown"
Number LG_TV0_ChannelNo "Channel [%d]" { channel="lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:channel" }
Number LG_TV0_ChannelDummy "ChannelUpDown"
String LG_TV0_Channel "Channel [%S]" { channel="lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:channelName"}
String LG_TV0_Toast { channel="lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:toast"}
Switch LG_TV0_Stop "Stop" { autoupdate="false", channel="lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:mediaStop" }
String LG_TV0_Application "Application [%s]" { channel="lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:appLauncher"}
Player LG_TV0_Player { channel="lgwebos:WebOSTV:c49b6cd5-67e0-4706-8287-1b6ba1b8f913:mediaPlayer"}
For Volume, which is a dimmer, you just use [“Lighting”] and speak to Google as if was a Dimmer for light.
For channels, I cant think of anything right now… Perhaps it will work as [“Lighting”] as well.
H102
(CM6.5 H102)
5
If [“Lighting”] for channels does not work maybe try [“Scene”].
Here’s a link that shows all the supported tags with a few examples. https://github.com/openhab/openhab-google-assistant#testing–usage-on-google-app