Тёмный

Home Assistant How To - Push text and control your LG webOS Smart TV 

BeardedTinker
Подписаться 36 тыс.
Просмотров 39 тыс.
50% 1

BREAKING CHANGE 0.104.x and upwards:
Integration changed and we now use "webostv:" and not "media_player" to call integration.
##########
Today we will configure LG webOS Smart TV component
www.home-assis...
01:17 - First thing we have to do is prepare LG Smart TV to allow "LGconnect apps".
02:01 - Next step is to configure integration inside Home Assistant - please adapt to your own setup: (this step was changed according to new integration configuration from 0.104 and up)
webostv:
host: 192.168.0.10 # match with IP address of your TV
name: LG TV
turn_on_action:
service: persistent_notification.create
data:
message: "Turn on action"
customize:
sources:
- LiveTV
- SmartShare
- PS4
- Netflix
If you don't have any other media player in your setup add following line too:
media_player:
04:01 - After restart we need to finish LG webOS integration by initiating paring request in Home Assistant and confirming it on TV.
07:00 - Use following guide to see what sources are available in your setup, but remember that you have to finish first previous steps and restart HA to see this list.
08:51 - Don't forget to maximise use of this component by enabling notifications in Home Assistant (this configuration changed in 0.104.x):
If you don't have any other notification configured (such as Telegram, Signal etc) add following line:
notify:
After you save your configuration, don't forget to Check your configuration and Restart Home Assistant.
12:18 - And just a quick idea how you can use notifications on TV
This should be it and you should have both Media Player and notifications enabled in Home Assistant for LG webOS Smart TV.
Please leave a comment if you would like to see more component configuration videos.
Of course, subscribe if you still haven't and I'll see you next time!
Have fun!
BeardedTinker

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 106   
@thebaldfox
@thebaldfox 4 года назад
Brilliant. Had this up and running in next to no time. I also adapted the notify component to work straight in Node-red, as I find it simpler to create more complex notifications there.
@michieldepauw7006
@michieldepauw7006 4 года назад
How did you do that. I dont find It in node Red.
@thebaldfox
@thebaldfox 4 года назад
@@michieldepauw7006I use home-assistant notify method in Node-red i.e. link the two together for sending messages, else i also use node-red-contrib-lgtv for outright control of the tv itself (think normal remote control buttons).
@ShrikantNimbalkarD
@ShrikantNimbalkarD 4 года назад
great tutorial however I dont have any lg tv in my home but thanks anyway for other videos in this series :)
@shaggeeee1
@shaggeeee1 4 года назад
Great video, looking at TV options, will probably go for an LG :)
@BeardedTinker
@BeardedTinker 4 года назад
I was quite surprised with it. Did a bit of research but it ended up better then expected 😁
@vTeb9PticyKidal
@vTeb9PticyKidal 3 года назад
Друг ты лучший!!!
@BeardedTinker
@BeardedTinker 3 года назад
Спасибо Дмитрий!
@mkomarac
@mkomarac 4 года назад
Is there any chance to get a camera picture on a LG WebOSTV with notification, like on Telegram or Kodi?
@BeardedTinker
@BeardedTinker 4 года назад
Pozdrav Marko! Answer is both yes and no. No, you can't send image like that as notification - AFAIK only thing that comes close to that is pushing icon for notification. What I did (while testing) was pushing image or stream, but using Chromecast (to show stream from camera, on motion alert), or opening web page in TV browser with static image. But of course this all depends on what is your scenario.
@FabioCleoBachata
@FabioCleoBachata 4 года назад
Thanks. But wake LAN works only for LAN Cable? For Wifi? With Homebridge u could ping through WiFi connection.
@BeardedTinker
@BeardedTinker 4 года назад
Wake-on-LAN should work on both Ethernet and WiFi. But that's protocol. It depends if the TV is keeping WiFi on when TV is in standby or not. You should test with cable first and of it works, you can try WiFi.
@FabioCleoBachata
@FabioCleoBachata 4 года назад
@@BeardedTinker Do you know how to integrate TV on Homekit?
@BeardedTinker
@BeardedTinker 4 года назад
@@FabioCleoBachata Unfortunately no - I don't have any Apple devices - you can call me Apple free, so I can't test it or help you with it. I was planning on getting some used iPhone, but didn't manage.
@vijaynaru
@vijaynaru 3 года назад
Great tutorial , but unable to get it implemented, pls help me. While server controls checking configuration file ...it shows error----- media_player required key not provided @data [plateform]
@BeardedTinker
@BeardedTinker 3 года назад
You have an error in configuratio.yaml file. As I can't see it, I presume that something after media_player: is wrong. It's very hard to debug as I can't see your file - but check spacing - media_player: should start at new line, without any space in front of it.
@stanislavvartanyan9430
@stanislavvartanyan9430 4 года назад
Hi! Thank you for the video! The problem I have with setting up my LG WebOS tv is I can't figure out how to turn it ON from OFF state. When it's ON, everything works fine. What should be the turn_on service?
@BeardedTinker
@BeardedTinker 4 года назад
I don't have that option myself. It depends on whether your TV has wake-on-LAN option or not. My LG TV is older type and doesn't support that. When in standby WebOS is turned off and it can't react to any external command unless it supports that feature.
@dfgb2411
@dfgb2411 4 года назад
If you have a newer LG TV you can try the WakeOnLan feature to turn on your TV. A short description can be found here: www.home-assistant.io/integrations/webostv/#turn-on-action
@carlosmarintravel
@carlosmarintravel 4 года назад
I had the same issue. I solved it with this code webostv: host: 192.168.0.10 #other settings turn_on_action: service: wake_on_lan.send_magic_packet data: mac: AA-BB-CC-DD-EE-FF
@FlemmingWiltonHansen
@FlemmingWiltonHansen 3 года назад
Hi, thanks for your fine video. Can you help me with config, so that I can turn on/off the TV, just by saying it to my Google home ?
@BeardedTinker
@BeardedTinker 3 года назад
Hi Flemming! Well, it is simple but not that simple :D First you need to make sure that your LG OS webOS version supports Power On over WiFI/Ethernet. Not all modes have it. Then you'll need to create power on/off switch in HA that would map that switch to media_player.turn_off. After that, if you have working Google Home/Assistant integration, it's just matter of re-syncing - by saying "Hey Google Sync my devices".
@FlemmingWiltonHansen
@FlemmingWiltonHansen 3 года назад
@@BeardedTinker Thanks for your FAST reply. I have a working Google Home/Assistant integration and my LG TV is WEBos 3.3.xxx and Power on over wifi/Eth is turned on. I am pretty neew to all this (started sunday) I can power TV on/off from my phone/UI in HA , but cant figure out to add switch in HA. This is what I have in conf.yaml wake_on_lan: # enables `wake_on_lan` domain webostv: host: 192.168.1.140 name: Television turn_on_action: service: wake_on_lan.send_magic_packet data: mac: "14-c9-13-54-xx-xx" broadcast_address: 192.168.1.255
@FlemmingWiltonHansen
@FlemmingWiltonHansen 3 года назад
I found this, but the thing with the script, where to put it I dont know. community.home-assistant.io/t/create-a-toggle-switch/110794/10
@eclecticlife
@eclecticlife 4 года назад
Thanks for the video. Two questions: What do you do with the filename: webostv.conf parameter? What's in that file? The second question is regarding the notification entry. You set the info for an IP Address, host: 192.168.0.112, what's that IP Address from? That's not the same IP Address you used for the TV entry. Again, thanks for your videos.
@BeardedTinker
@BeardedTinker 4 года назад
webos.conf file is used to save data from integration configuration. You do not have to do anything, just need to specify what name to use. 192.168.0.112 is just random address I typed, you should substitute it with your TV IP address. I'll add that comment to the description, thank you for spotting this.
@almcpherson233
@almcpherson233 3 года назад
8
@pirania1
@pirania1 4 года назад
Did you figure out how to include icons of the notifications? I tried with png, svg and all other files (also with MDI), and the notifications aren't shown if icon is included. I used for example, in developer tools -> Services, service: notify.lg_tv following: message: "Movement detected: Front Door" data: icon: "/config/www/keep-door-closed.png" I use docker, so this is the full path to a file 80x80 pix. Removing the data and icon lines, allows to show notifications.
@BeardedTinker
@BeardedTinker 4 года назад
To be honest, I haven't played with icons. That's on my very long to do list. But you got me thinking a bit about what could be issue. One of the possible problems I see is size of the icon. webostv.developer.lge.com/design/style/icon/ Checked here and also: webostv.developer.lge.com/design/webos-tv-system-ui/notifications/ I haven't found for notification, but for other icons there is size limit of 115x115 pixels. Did you try something small? Also, did you try to play with folder names? If something doesn't go wrong today, I'll try to play with it this evening.
@pirania1
@pirania1 4 года назад
@@BeardedTinker I tried the 115x115 and 140x350 px and still no go. In the docs of HA integration there is nothing about what is really required.
@BeardedTinker
@BeardedTinker 4 года назад
@@pirania1 I've just checked and there is currently open issue on github in regard to this: github.com/home-assistant/home-assistant/issues/25935
@Novation681
@Novation681 4 года назад
Another great video :-) It turns out that i also have a LG tv. Any chance you could use this to cast video from motioneye/facebox to TV when it detects a face and/or someone push (video) doorbell. Or should you use chrome cast for this instead? Cheers
@BeardedTinker
@BeardedTinker 4 года назад
Thank you :) Should be possible, if TV is on, if not only calling chromecast could probably do it. Will try it over the weekend.
@BeardedTinker
@BeardedTinker 4 года назад
OK, tried following and it fails... alias: Stream camera on motion trigger: - entity_id: binary_sensor.living_room_motion_occupancy # My Xiaomi Motion Sensor platform: state to: 'on' condition: [] action: - data: entity_id: camera.balcony # This camera should have streaming option compatible with HA media_player: media_player.lg_tv # My TV, tried with Chromecast too service: camera.play_stream Running this with LG TV does nothing. But no error is received. Changing to Chromecast at least has some feedback it changes to Chromecast on TV, but screen is blank/black. After first try it gives some kind of timeout. Not sure, but I think that changing stream type or tweaking format should make it work.
@Novation681
@Novation681 4 года назад
@@BeardedTinker Ok, thanks for trying:-) Still on vacation and cannot try myself yet.
@Novation681
@Novation681 4 года назад
I could not get the cameras to work out as well...not really any big surprise! Anyhow the notification is great! I do now get Notifications when the washing mashine and dryer is ready, great! I have the laundry in the basement and i do not hear when the machines are ready.
@BeardedTinker
@BeardedTinker 4 года назад
@@Novation681 ​ In theory Home Assistant cast could be used to that, but I didn't end up playing with it. Now I have one camera stream forwarded to my Google Home Hub or whatever it is called now, based on automation. But second camera doesn't want to stream there no matter what. Hopefully this will be solved in future updates of home assistant.
@xrust
@xrust 4 года назад
I repeated absolutely everything but could not see the message on the screen. By the way, for some reason, you also didn’t take it off, although before that you constantly showed the TV screen. Doesn't work =)?
@BeardedTinker
@BeardedTinker 4 года назад
Do you have on your LG TV - LG Connect Apps enabled? It should be in Network menu?
@xrust
@xrust 4 года назад
BeardedTinker Yes, I chose LG connect apps. I went through pairing. Now I can turn the TV on and off. I can choose the source RU-vid, MEGOGO, hdmi, life tv. I even registered customization of media_player -> device_class: tv and added it to homekit. but my notify.lgwebostv function still doesn’t work for me
@BeardedTinker
@BeardedTinker 4 года назад
Integration is now called webostv - but I presume that you have sent hat update. And did you try to send message using service call in developer tools? Select notify for your TV integration and then just type "message: test"
@xrust
@xrust 4 года назад
BeardedTinker message: “test” Through the service, to receive a message on the TV was reflected. Now you need to understand why it does not work in the script :-(
@BeardedTinker
@BeardedTinker 4 года назад
Did you get any error in the log file? Can you copy script here?
@MuhammadAli22931
@MuhammadAli22931 Год назад
How do I turn on "LG Connect Apps" on the oled?
@remcopoulus
@remcopoulus 3 года назад
thank you for al the great videos about home assistant. what version of webos do you have on your tv? mine is webos1.4.0 and the turn on feature is not working with persistent_notification.create and I dont know how to confige wake_on_lan.send_magic_packet
@BeardedTinker
@BeardedTinker 3 года назад
It's not working for me on webos 2.2.3-171 too. To be honest, I never really bothered to try and play with it.
@raddii3
@raddii3 3 года назад
R.J. Poulus have you solved this problem? I have the same problem and I don't know how to solve it :-(
@remcopoulus
@remcopoulus 3 года назад
@@raddii3 Never solved it. Not a priority, since I also have a Logitech harmony to controll the tv. If you get it to work I am interested :)
@BeardedTinker
@BeardedTinker 3 года назад
@@raddii3 you can check documentation - it's common to work for webOS version 3 or higher. Also WiFI can be a problem even then. www.home-assistant.io/integrations/webostv/#turn-on-action On my 2.2.3 version, it's not working, but I didn't bother with it that much as I can wake it up by using chromecast device that's connected to it.
@raddii3
@raddii3 3 года назад
@@BeardedTinker in the meantime, I managed to solve the problem ;-) but thanks for the answer.
@xrust
@xrust 4 года назад
Home Assistent 0.104 or later dont work
@BeardedTinker
@BeardedTinker 4 года назад
Hi Vadim! Thanks for the comment. Yes, since 0.104.0, domain of the component changed from media_player: to webostv: I've updated description of the video to reflect changes. Also setting notify: for webOS is much simpler too. Other then that, integration still works great!
@GrimSpec
@GrimSpec 4 года назад
Would anything similar work with Samsung Smart TV ?
@BeardedTinker
@BeardedTinker 4 года назад
Samsung has different integration then LG - I don't think that build-in Samsung integration has notifications for example. But you will be able to change TV programs with it.
@GrimSpec
@GrimSpec 4 года назад
@@BeardedTinker Yea I've done my research in this too after I place this question here : ) I think it might be time to change brand to LG or TLC fully Android TV.
@miketree7715
@miketree7715 4 года назад
It would be good if the time of the last test could be shown.
@BeardedTinker
@BeardedTinker 4 года назад
Can you explain a bit, don't understand 😀
@miketree7715
@miketree7715 4 года назад
BeardedTinker it would be good to know when the test was run. If it is tested every 60 minutes, was the speed shown taken 59 minutes ago, or 1 minute ago.
@BeardedTinker
@BeardedTinker 4 года назад
Oh, ok I get it. Let me check something.
@BeardedTinker
@BeardedTinker 4 года назад
If you are talking about fast.com sensor - unfortunately, sensor itself doesn't provide data when was test done. BUT you can always create automation that would be triggered when state of sensor.fast_com_download changes, and record that time. So while not out of the box, there still is a solution to this.
@nowdays1824
@nowdays1824 4 года назад
have the issue in notification 'Failed to call service script/test_tv_notify. Unable to find service notify/living_room_tv' what did I do wrong?
@BeardedTinker
@BeardedTinker 4 года назад
Can you copy any yaml code you have for this notification service?
@user-yn1gl7gg7o
@user-yn1gl7gg7o 3 года назад
Hi friends, I can shut off the tv, but I didn't can turn on the tv. please help!
@BeardedTinker
@BeardedTinker 3 года назад
Hi! Also also can't start it - it depends on the webOS version of the TV etc. You can check here - this may help you: community.home-assistant.io/t/power-on-webos-tv/4756/58
@user-yn1gl7gg7o
@user-yn1gl7gg7o 3 года назад
@@BeardedTinker Thanks a lot for your reply! After i was read your link, please tell me, what it is MAC? Broad_cast_ Address? How and where can i find them?
@BeardedTinker
@BeardedTinker 3 года назад
MAC address is usually found on TV - each port (WIFI and/or ethernet cable) has MAC address - it's combination of numbers and letters 11:2A:03:B4:91. Broadcast address is usually last IP address in your netowrk - for example if your network is 192.168.1.x - then broadcast address is 192.168.1.255
@user-yn1gl7gg7o
@user-yn1gl7gg7o 3 года назад
@@BeardedTinker Thanks a lot friend!!
@BeardedTinker
@BeardedTinker 3 года назад
No problem! Have fun!!!
@michieldepauw7006
@michieldepauw7006 4 года назад
Hello I seek for a method. When the tv go's out of standby that a lamp go's on. Any body that can help me?
@BeardedTinker
@BeardedTinker 4 года назад
Hi Michiel, well you could do automation that would trigger after your media_player.lg_tv status changes from 'off' to something else. This should work BUT status change can have delay. I've just tested and turning TV off changed status to off instantly, but turning it on had delay of close to 1 minute.
@michieldepauw7006
@michieldepauw7006 4 года назад
@@BeardedTinker thanks. I found It. And It works. Nice. But I cant find the entity media.Player. Lgtv not in node Red. Any idea for that. Thanks a lot
@BeardedTinker
@BeardedTinker 4 года назад
+Michiel De Pauw I'm not using NodeRED that much, so can't help with this. But if you are using home assistant palette it should be visible (I think).
@BeardedTinker
@BeardedTinker 4 года назад
@@michieldepauw7006 just check in my setup - in NodeRED there is entity_id called media_player.lg_tv - this is standard name if you didn't change it in your setup.
@michieldepauw7006
@michieldepauw7006 4 года назад
@@BeardedTinker thanks that worked
Далее
Use Your Home PC from ANYWHERE???
25:35
Просмотров 1,4 млн
Самое неинтересное видео
00:32
Просмотров 1,2 млн
NEVER install these programs on your PC... EVER!!!
19:26
Home Assistant LG WebOS TV Integration - Buttons
7:56
YAML Basics // Level Up Your Home Assistant Skills
22:58
We built the Biggest iPhone in the World.
23:30
Просмотров 3,1 млн
15 Home Assistant Tips You MUST Do
14:28
Просмотров 375 тыс.
Incredible Dangers in Browsers (Affects all of them)
21:02