Kodi Notifications Not Working


#1

1) Give a description of the problem
Notifications are not showing up in Kodi

2) What is the expected behavior?
Trying to flash notifications from SmartThings onto television with Kodi

3) What is happening/not happening?
Notifications not showing - not sure if using correct command

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)

2/17/2018, 9:23:44 PM +882ms
+2ms ╔Received event [Stove Light].switch = on with a delay of 81ms
+132ms ║RunTime Analysis CS > 27ms > PS > 90ms > PE > 16ms > CE
+134ms ║Runtime (38107 bytes) successfully initialized in 90ms (v0.2.102.20180116) (132ms)
+135ms ║╔Execution stage started
+144ms ║║Comparison (enum) on changes = true (0ms)
+145ms ║║Condition #4 evaluated true (4ms)
+146ms ║║Condition group #1 evaluated true (state did not change) (5ms)
+148ms ║║Cancelling statement #2’s schedules…
+201ms ║║Executed physical command [Kodi].showNotification([Stove Light Changed!]) (46ms)
+202ms ║║Executed [Kodi].showNotification (48ms)
+204ms ║╚Execution stage complete. (69ms)
+205ms ╚Event processed successfully (205ms)
2/17/2018, 9:23:38 PM +558ms
+1ms ╔Received event [Stove Light].switch = off with a delay of 58ms
+94ms ║RunTime Analysis CS > 14ms > PS > 68ms > PE > 12ms > CE
+96ms ║Runtime (38106 bytes) successfully initialized in 68ms (v0.2.102.20180116) (94ms)
+97ms ║╔Execution stage started
+106ms ║║Comparison (enum) off changes = true (1ms)
+107ms ║║Condition #4 evaluated true (4ms)
+108ms ║║Condition group #1 evaluated true (state did not change) (5ms)
+110ms ║║Cancelling statement #2’s schedules…
+1019ms ║║Executed physical command [Kodi].showNotification([Stove Light Changed!]) (903ms)
+1020ms ║║Executed [Kodi].showNotification (905ms)
+1023ms ║╚Execution stage complete. (926ms)
+1024ms ╚Event processed successfully (1024ms)


#2

Ok I got help in the main SmartThings community and figured how to get it working but wondering if anyone can help me simplify the coding for notifications. Is there a way to use a variable that would list all devices and use events? I know there’s variables such as $currentDevice and $currentEvent I think - could you use it so it went like:

If $currenteventdevice changes
Then shownotification(‘SmartThings’,’$currentdevice $currentevent’)


#3

BOTTOM STATEMENT

This is working for showing device and status but wondering how I can simplify the if portion so it shows all devices. Is there a variable that will cover all devices? Should I select all devices in the list and then select status in the next option?


#4

Something like this… I don’t have kodi set up to receive notifications so you’ll have to modify that part.


#5

Thanks for the help. Just wondering if it’s a problem that it shows the piston isn’t subscribed to any events?

Here’s what I’m using.


#6

It should say {deviceList}'s switch changes


#7

Yeah I saw how yours says switch in it but wondering why mine doesn’t. There’s no option for switch. Do I need to break my devices down into like groups - motion sensors with motion sensors, switches with switches, etc.?


#9

Not sure why mine didn’t work but ended up importing yours. Thanks!


#10

Yes, break down devices by function.


#11

I see what I did wrong and why I didn’t see switch changes before. Instead of selecting physical device and scrolling down until the variable I chose variable itself.


#12

Here’s what I came up with - let me know if there’s anything you see that should be changed. Thanks again for your help!


#13

Looks good to me.