Hi Guys
These rules were created by someone else and throw an error when refreshing as the ‘val resp’ isn’t defined anywhere
I cant work out what its used for.
Any thoughts and how can I remove the error?
Thanks
rule "Spotify run script"
when
Item spotify_forceupadte received update
then
val resp = executeCommandLine("/usr/bin/python /etc/openhab2/scripts/spotify.py", 5000)
// logInfo("Spotify", resp)
end
rule "Spotify Action"
when
Item spotify_action received update
then
val resp = executeCommandLine("/usr/bin/python /etc/openhab2/scripts/spotify.py " + spotify_action.state.toString, 5000)
// logInfo("Spotify", resp)
end
Im thinking its to have things logged from memory, just not sure to define at the start of the rule