I’m also using this channel now and it’s working perfect. I was wondering if it’s possible to send extra arguments with it, like the title of the messagebox, a custom icon.
I’m also using some shell scripts on my Kodi pi, and here I use curl to show notifications:
Yes, it is. According to the docs the shownorification channel type has three configuration parameters. Note: the icon parameter accepts one of the openHAB icons (as listed here).
What is your preferred way of configuration? This is a short how-to in Paper UI:
But I am afraid there is no dynamic way to change the configuration during runtime. If you need different types of notification you rather have different kinds of notifications that you want to process and with the current solution you can nicely define one channel for each notification type. IIRC this in only possible in textual configuration.
I will add a small update to the documentation to clarify how it is working.
sorry for hijacking this thread. But the topic is related.
At the moment I am using XBMC Action 1.x to send on screen messages to my Kodi boxes. This works great, but I am looking into my configuration to remove as many 1.x actions and bindings and replace these with 2.x stuff.
Along other parameters I have three content paramenters for the XBMC Action 1.x: title, message, image. So I can send a message with a custom title and also display a custom image (which need so be available through http).
After reading this thread this does not seem to be possible with the Kodi Binding 2.x, is that correct? I understood that I only have a message and can display a standard image from openHAB, no custom image. Or did I miss something?
It is not possible to dynamically set title and icon with Kodi binding.
It is possible to have a number of pre-defined channels, each with different title and icon, where you can send arbitrary message text to the linked Item.
Sorry, I was not aware that I can use own icons as well as the default icons from the icon set. I am aware now.
Tried to add a notification channel and then another one. I do not see the channels in Paper UI, but the channels are there in the jsondb things file. Restarting and clearing the cache did not work. Any idea? Also about deleting these channels again?
/EDIT: “Show more” did it. Did not notice it before. Sorry…
I tried to use a custom icon (svg file in the openhab config icon/classic folder but the notification that comes through doesn’t show the custom icon. The item associated with the channel does show the icon correctly but the notification doesn’t. I configured the channel and added the icon name but it just doesn’t show.
When I switch to say the “time” icon it does show it. It just not taking my custom icon for some reason…