# Integrar Smart TV LG no HA

**URL:** <https://forum.cpha.pt/t/integrar-smart-tv-lg-no-ha/7913>\
**Category:** Dúvidas\
**Created:** [28 Maio , 2021 18:53 UTC](https://forum.cpha.pt/t/integrar-smart-tv-lg-no-ha/7913 "2021-05-28T18:53:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manuel\_Domingues\_Barreto](https://forum.cpha.pt/user_avatar/forum.cpha.pt/manuel_domingues_barreto/32/5060_2.png) [@Manuel\_Domingues\_Barreto](https://forum.cpha.pt/u/Manuel_Domingues_Barreto)\
**Post date:** [28 Maio , 2021 18:53 UTC](https://forum.cpha.pt/t/integrar-smart-tv-lg-no-ha/7913/1 "2021-05-28T18:53:07Z")

</div>

Boa tarde,  
Alguém que possa dar uma ajuda com uma TV LG.  
Estou a tentar integrar no HA mas só consigo colocar a TV a desligar através do HA não a consigo liga mas tenho a opção ativa na TV.  
Com a App da LG consigo ligar e desligar sem qualquer problema.

---

<div class="post-metadata">

**Author:** ![francisco](https://forum.cpha.pt/user_avatar/forum.cpha.pt/francisco/32/5552_2.png) [@francisco](https://forum.cpha.pt/u/francisco)\
**Post date:** [29 Maio , 2021 18:25 UTC](https://forum.cpha.pt/t/integrar-smart-tv-lg-no-ha/7913/2 "2021-05-29T18:25:42Z")

</div>

A integração para fazer o power ON e OFF é algo tricky…eu tenho estas linhas à parte.

## 

# Example configuration.yaml entry

webostv:  
host: 10.0.0.xx (teu IP da tv)  
name: o nome da tua TV  
customize:  
sources:  
- livetv  
- youtube  
- makotv  
- netflix  
- HDMI 1  
- HDMI 2  
- HDMI 3  
- LG Content Store  
- Spotify

media\_player:

- platform: webostv  
name: o nome da tua tv  
host: 10.0.0.xx ( o Ip da TV)

---

<div class="post-metadata">

**Author:** ![Virgo](https://forum.cpha.pt/letter_avatar_proxy/v4/letter/v/f05b48/32.png) [@Virgo](https://forum.cpha.pt/u/Virgo)\
**Post date:** [31 Maio , 2021 23:59 UTC](https://forum.cpha.pt/t/integrar-smart-tv-lg-no-ha/7913/3 "2021-05-31T23:59:59Z")

</div>

webostv:  
host: 192.168.xxx.xxx  
#other settings  
turn\_on\_action:  
service: wake\_on\_lan.send\_magic\_packet  
data:  
mac: !secret mac\_lg

---

<div class="post-metadata">

**Author:** ![Manuel\_Domingues\_Barreto](https://forum.cpha.pt/user_avatar/forum.cpha.pt/manuel_domingues_barreto/32/5060_2.png) [@Manuel\_Domingues\_Barreto](https://forum.cpha.pt/u/Manuel_Domingues_Barreto)\
**Post date:** [4 Junho , 2021 18:06 UTC](https://forum.cpha.pt/t/integrar-smart-tv-lg-no-ha/7913/4 "2021-06-04T18:06:06Z")

</div>

Boa tarde,  
Já está a funcionar!  
Alguém consegue também mudar de canal?

---

<div class="post-metadata">

**Author:** ![jovanotti25](https://forum.cpha.pt/user_avatar/forum.cpha.pt/jovanotti25/32/9138_2.png) [@jovanotti25](https://forum.cpha.pt/u/jovanotti25)\
**Post date:** [7 Junho , 2021 22:41 UTC](https://forum.cpha.pt/t/integrar-smart-tv-lg-no-ha/7913/5 "2021-06-07T22:41:40Z")

</div>

Por acaso nao consigo como meteste o teu código?

---

<div class="post-metadata">

**Author:** ![Virgo](https://forum.cpha.pt/letter_avatar_proxy/v4/letter/v/f05b48/32.png) [@Virgo](https://forum.cpha.pt/u/Virgo)\
**Post date:** [20 Junho , 2021 10:30 UTC](https://forum.cpha.pt/t/integrar-smart-tv-lg-no-ha/7913/6 "2021-06-20T10:30:33Z")

</div>

Não muda de canal.  
No HACS tens o comando:  
[https://github.com/madmicio/LG-WebOS-Remote-Control](https://github.com/madmicio/LG-WebOS-Remote-Control)

---

<div class="post-metadata">

**Author:** ![Manuel\_Domingues\_Barreto](https://forum.cpha.pt/user_avatar/forum.cpha.pt/manuel_domingues_barreto/32/5060_2.png) [@Manuel\_Domingues\_Barreto](https://forum.cpha.pt/u/Manuel_Domingues_Barreto)\
**Post date:** [29 Junho , 2021 11:37 UTC](https://forum.cpha.pt/t/integrar-smart-tv-lg-no-ha/7913/7 "2021-06-29T11:37:22Z")

</div>

#Tv LG

wake\_on\_lan: enables wake\_on\_lan integration  
webostv:  
host: 192.168.1.199  
#other settings  
turn\_on\_action:  
service: wake\_on\_lan.send\_magic\_packet  
data:  
mac: AC:F1:08:xx:xx:xx  
broadcast\_address: 192.168.1.255
