Problems webostv notify

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

It moved to it’s own component. https://www.home-assistant.io/integrations/webostv/

Thank you for your interest in the topic. Do I need to update a component? https://github.com/home-assistant/home-assistant/tree/dev/homeassistant/components/webostv

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…

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

image

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

Thanks for the answers. Can you send me an example of your config? [email protected]

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 }}"

Thank you very much! I was able to run messages. I wonder if photos can be sent in messages?

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.

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?