Gan2020
(Gan2020)
February 14, 2020, 9:24pm
1
Hi! I can’t run notify for Webos LG
ERROR (MainThread) [homeassistant.components.notify] Failed to initialize notification service webostv
Home Assistant 0.105.2
media_player:
platform: webostv
host: 192.168.1.38
name: livingroom_tv
filename: webostv.conf
timeout: 5
turn_on_action:
service: wake_on_lan.send_magic_packet
data:
mac: “14:C9:13:8F:AF:A2”
turn_on_action:
service: persistent_notification.create
message: “Turn on action”
notify:
platform: webostv
name: livingroom_tv
filename: webostv.c
Vasco
February 15, 2020, 7:52am
2
Gan2020
(Gan2020)
February 15, 2020, 8:19am
3
Vasco
February 15, 2020, 8:23am
4
No, you no longer use platform: webostv
But it should be:
webostv:
host: 192.168.1.38
turn_on_action:
service: wake_on_lan.send_magic_packet
data:
mac: "14:C9:13:8F:AF:A2"
Etc…
Gan2020
(Gan2020)
February 15, 2020, 8:33am
5
Why don’t I use it? I have works on\off. :), notify does not work
Sorry that I don’t quite understand you: (, I will be grateful for a more detailed answer
Vasco
February 15, 2020, 11:12am
6
I haven’t seen that way of notifying before. The notify: is referring to html5 notification, not webostv
Read: https://www.home-assistant.io/integrations/html5/
So that wont work. Best way to send notifications to your TV is using https://www.home-assistant.io/integrations/notify/
And I have automations sending me certain notifications to my lg tv. So when someone rings the bell, or when there’s an update available, alarm is triggered etc etc.
Then you send a notification using notify.YOURLGTVNAME
With a specific title and message
Gan2020
(Gan2020)
February 15, 2020, 11:30am
7
Thanks for the answers. Can you send me an example of your config? [email protected]
ashscott
(Ash)
February 15, 2020, 12:05pm
8
All I have is this:
In configuration.yaml:
webostv:
host: 10.0.1.165
name: lounge_tv
Then I call the notify service wherever I need it:
- service: notify.lounge_tv
data_template:
message: "{{ message }}"
Gan2020
(Gan2020)
February 15, 2020, 6:14pm
9
Thank you very much! I was able to run messages. I wonder if photos can be sent in messages?
erik7
(Erik)
May 2, 2020, 5:28pm
10
Can you or someone else post the code?
I’m trying to figure out, how to send a message to my LG TV when sunset.
erik7
(Erik)
May 4, 2020, 12:44pm
11
Yesterday I got it working somehow, right now (I guess after restart) it can’t find the service anymore:
- service: notify.lounge_tv
Is there anyone who can guide me to the right direction? Perhaps because the TV is off?