# \[SOLVED\] How to use “kodi:kodi:myKodi:shownotification” channel?

**URL:** <https://community.openhab.org/t/solved-how-to-use-kodimykodi-shownotification-channel/61173>\
**Category:** Bindings\
**Tags:** kodi, channels, sendnotification\
**Created:** [December 26, 2018, 2:31pm UTC](https://community.openhab.org/t/solved-how-to-use-kodimykodi-shownotification-channel/61173 "2018-12-26T14:31:45Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![micware](https://community.openhab.org/user_avatar/community.openhab.org/micware/32/61497_2.png) [@micware](https://community.openhab.org/u/micware)\
**Post date:** [December 26, 2018, 2:31pm UTC](https://community.openhab.org/t/solved-how-to-use-kodimykodi-shownotification-channel/61173/1 "2018-12-26T14:31:45Z")

</div>

Hi  
The Kodi binding / thing has a “kodi:kodi:myKodi: **shownotification**" **channel**

I’m I correct in assuming that OpenHAB can send text messages to Kodi while watching a movie?  
For instants doorbell ring, washing machine ready?

Anybody know how to use this /example

The only thing I found so far is this post [Sitemap Questions First try - #6 by Sharpy](https://community.openhab.org/t/sitemap-questions-first-try/46513/6)

---

<div class="post-metadata">

**Author:** ![curlyel](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/71e660/32.png) [@curlyel](https://community.openhab.org/u/curlyel)\
**Post date:** [December 26, 2018, 3:56pm UTC](https://community.openhab.org/t/solved-how-to-use-kodimykodi-shownotification-channel/61173/2 "2018-12-26T15:56:00Z")

</div>

Haven’t tried by myself. But I would expect, that you just have to write your message on the String item bound to that channel…

---

<div class="post-metadata">

**Author:** ![cweitkamp](https://community.openhab.org/user_avatar/community.openhab.org/cweitkamp/32/56864_2.png) [@cweitkamp](https://community.openhab.org/u/cweitkamp)\
**Post date:** [December 26, 2018, 3:58pm UTC](https://community.openhab.org/t/solved-how-to-use-kodimykodi-shownotification-channel/61173/3 "2018-12-26T15:58:32Z")

</div>

Hi Michiel,

You can send commands (Strings) to the channel which will be shown in Kodi UI. It should work like this:

demo.items:

```csv
String kodiLivingRoomShowNotification "Show Notification" { channel="kodi:kodi:myKodi:shownotification" }

```

demo.rules:

```php
rule "My Notification"
when
     ...
then
    kodiLivingRoomShowNotification.sendCommand("Hi there")
end

```

---

<div class="post-metadata">

**Author:** ![micware](https://community.openhab.org/user_avatar/community.openhab.org/micware/32/61497_2.png) [@micware](https://community.openhab.org/u/micware)\
**Post date:** [December 26, 2018, 4:10pm UTC](https://community.openhab.org/t/solved-how-to-use-kodimykodi-shownotification-channel/61173/4 "2018-12-26T16:10:49Z")

</div>

Hi curlyel, cweitkamp  
Thanks for your response

@cweitkamp  
That sounds easy, I will try that

---

<div class="post-metadata">

**Author:** ![micware](https://community.openhab.org/user_avatar/community.openhab.org/micware/32/61497_2.png) [@micware](https://community.openhab.org/u/micware)\
**Post date:** [December 26, 2018, 9:27pm UTC](https://community.openhab.org/t/solved-how-to-use-kodimykodi-shownotification-channel/61173/5 "2018-12-26T21:27:11Z")

</div>

it works like a charm Christoph,

Your the best!!

o yes, for the sake of clarity I have used the item instead of the channel name

If I use the channel, I get errors in my rule because there is **:** in my channel names and that the rule engine apparently doesn’t like it.

---

<div class="post-metadata">

**Author:** ![wars](https://community.openhab.org/letter_avatar_proxy/v4/letter/w/f475e1/32.png) [@wars](https://community.openhab.org/u/wars)\
**Post date:** [November 16, 2019, 7:54pm UTC](https://community.openhab.org/t/solved-how-to-use-kodimykodi-shownotification-channel/61173/6 "2019-11-16T19:54:34Z")

</div>

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:

> curl -v -H “Accept: application/json” -H “Content-type: application/json” POST -d ‘{“id”:1,“jsonrpc”:“2.0”,“method”:“GUI.ShowNotification”,“params”:{“title”:“Hyperion”,“message”:“‘enabled’ config”,“image”:“/storage/.kodi/userdata/scripts/hyperion.png”}}’ [http://aaa:aaa@127.0.0.1:8080/jsonrpc](http://aaa:aaa@127.0.0.1:8080/jsonrpc) 2\> /dev/null

---

<div class="post-metadata">

**Author:** ![cweitkamp](https://community.openhab.org/user_avatar/community.openhab.org/cweitkamp/32/56864_2.png) [@cweitkamp](https://community.openhab.org/u/cweitkamp)\
**Post date:** [November 17, 2019, 2:18pm UTC](https://community.openhab.org/t/solved-how-to-use-kodimykodi-shownotification-channel/61173/7 "2019-11-17T14:18:17Z")

</div>

Yes, it is. According to the [docs](https://www.openhab.org/addons/bindings/kodi/#channel-configuration) the `shownorification` channel type has three configuration parameters. Note: the `icon` parameter accepts one of the openHAB icons (as listed [here](https://www.openhab.org/docs/configuration/iconsets/classic/)).

What is your preferred way of configuration? This is a short how-to in Paper UI:

1. Click on “Show more” button
2. Link an item to the Channel

 ![grafik](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/1/5/15bfc872b592fb25849b141ac263cc3b6af08f4f.png)

1. Click on the top “Edit” button (pencil)

 ![grafik](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/9/d/9d016de0ec08fc02390afa5e8cf4f660fc85f56b.png)

1. Change the configuration for your needs.

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.

---

<div class="post-metadata">

**Author:** ![wars](https://community.openhab.org/letter_avatar_proxy/v4/letter/w/f475e1/32.png) [@wars](https://community.openhab.org/u/wars)\
**Post date:** [November 17, 2019, 2:46pm UTC](https://community.openhab.org/t/solved-how-to-use-kodimykodi-shownotification-channel/61173/8 "2019-11-17T14:46:56Z")

</div>

hi

thanks for the reply. I missed that part in the docs, sorry.  
I do everything in textual config, so I will figure it out this evening.

---

<div class="post-metadata">

**Author:** ![cweitkamp](https://community.openhab.org/user_avatar/community.openhab.org/cweitkamp/32/56864_2.png) [@cweitkamp](https://community.openhab.org/u/cweitkamp)\
**Post date:** [November 17, 2019, 3:34pm UTC](https://community.openhab.org/t/solved-how-to-use-kodimykodi-shownotification-channel/61173/9 "2019-11-17T15:34:27Z")

</div>

Here you an find some help:

[https://github.com/openhab/openhab2-addons/pull/6409](https://github.com/openhab/openhab2-addons/pull/6409)

---

<div class="post-metadata">

**Author:** ![wars](https://community.openhab.org/letter_avatar_proxy/v4/letter/w/f475e1/32.png) [@wars](https://community.openhab.org/u/wars)\
**Post date:** [November 17, 2019, 4:29pm UTC](https://community.openhab.org/t/solved-how-to-use-kodimykodi-shownotification-channel/61173/10 "2019-11-17T16:29:46Z")

</div>

thanks for the extra info. It’s already working 🙂

---

<div class="post-metadata">

**Author:** ![Roi](https://community.openhab.org/user_avatar/community.openhab.org/roi/32/70766_2.png) [@Roi](https://community.openhab.org/u/Roi)\
**Post date:** [August 10, 2020, 1:29pm UTC](https://community.openhab.org/t/solved-how-to-use-kodimykodi-shownotification-channel/61173/11 "2020-08-10T13:29:56Z")

</div>

Hello,

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?

Thank you and regards,  
Roi

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [August 10, 2020, 2:02pm UTC](https://community.openhab.org/t/solved-how-to-use-kodimykodi-shownotification-channel/61173/12 "2020-08-10T14:02:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Roi](https://community.openhab.org/user_avatar/community.openhab.org/roi/32/70766_2.png) [@Roi](https://community.openhab.org/u/Roi)\
**Post date:** [August 10, 2020, 2:39pm UTC](https://community.openhab.org/t/solved-how-to-use-kodimykodi-shownotification-channel/61173/13 "2020-08-10T14:39:50Z")

</div>

Thank you. Sounds ok for me. And can I somehow use custom images in these channels?

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [August 10, 2020, 2:46pm UTC](https://community.openhab.org/t/solved-how-to-use-kodimykodi-shownotification-channel/61173/14 "2020-08-10T14:46:05Z")

</div>

Use images in what way? Is there some part you don’t understand about use of the channel"s  
`icon` parameter?

---

<div class="post-metadata">

**Author:** ![Roi](https://community.openhab.org/user_avatar/community.openhab.org/roi/32/70766_2.png) [@Roi](https://community.openhab.org/u/Roi)\
**Post date:** [August 10, 2020, 3:29pm UTC](https://community.openhab.org/t/solved-how-to-use-kodimykodi-shownotification-channel/61173/15 "2020-08-10T15:29:38Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![ltai0001](https://community.openhab.org/user_avatar/community.openhab.org/ltai0001/32/90086_2.png) [@ltai0001](https://community.openhab.org/u/ltai0001)\
**Post date:** [November 28, 2023, 6:19pm UTC](https://community.openhab.org/t/solved-how-to-use-kodimykodi-shownotification-channel/61173/16 "2023-11-28T18:19:54Z")

</div>

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…
