Hello all. I’ve got notifications working perfectly, with my webOS, however, when I try to add the icon: component, it fails. I’m using the exact example here:
The notification simply won’t display on the TV when a picture is attempted to be used.
My install is Docker on the Synology and my image path is actually /config/www which I understand maps to the above /local/ space. This is certainly true for the other images I put in this location and they work fine.
I have also tried using a known-to-be-working in HA elsewhere image at that path with the same result.
I have tried .png and .jpg files. Does the webOS notification have any restriction on image size/type that I should be paying attention to?
Mine is working without the icon, but the message last only few seconds on the TV screen. I think the message must remain on the screen until the OK button is pressed on the remote.
Maybe not what you all are looking for, but in case you want to display a message on your LG TV that doesn’t disappear like a toast you might consider using an alert.
service: webostv.command
data:
entity_id: media_player.lg_webos_tv
command: system.notifications/createAlert
payload:
message: This is an alert.
buttons:
- label: OK
I found this topic because I also cannot send the icon in notification as the others. I playing little bit and found it is possible to have an icon if you send alert instead of toast notification (thanks for the hint @lgespee ), but sorry guys, this would be possible on rooted TV, because you need to have your icon locally on TV. Yes, I am aware that most of the people didn’t rooted their TV’s, I rooted my because of Hyperion-NG screen capturing and because of YT without ads
This is just addition to previous post, below path of the icon is local path on the TV, transferred via SFTP. My TV is rooted, but it shouldn’t be mandatory.
service: webostv.command
data:
entity_id: media_player.lg_tv
command: system.notifications/createAlert
payload:
message: It is working on rooted TV!
buttons:
- label: not OK
iconUrl: "/home/root/gas-mask-100x100.png"
How could you achieve this on non rooted TV? Simply put your icons on USB stick or external HDD/SSD. I noticed that firstly mounted external USB storage will always appear in /tmp/usb/sda/sda1/ on TV. The next one will appear in /tmp/usb/sdb/sdb1/ , etc. So in this case, iconUrl would be something like:
Regarding Toast notifications and icons, as per LG documentation, icons should be 80x80 and in .png format, but I had no success to display it in toast, even if I resized it to 80x80 in .png and trensferred it to TV.
I just wanted to thank you for posting this. I was able to get the image to display on a non-rooted LG TV from a usb. I liked the alert much more than the toast. I couldn’t have got it working without your instructions. Thanks again!
I wonder if some WIFI-enabled SD card works as image pool to load images (from door camera for example): Image from camera could be loaded to SD and then displayed on TV for some time
I like your idea, but didn’t dig such a deep. Maybe will look into it when I catch some free time. This and this are some useful links I am aware of.
I don’t think so this is possible (but, on the other hand, cannot be sure ATM). I mean, I would be able to do this by transferring photo from WiFi SD card to TV via SSH, then handle it locally on TV, but as I said before, I rooted my TV, so I’m SSH’ing into it. Off topic: I even edited Custom Screensaver app for WebOS (root needed for app to work), so I can set custom images from HA UI.