mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-29 12:34:21 +02:00
Correct rules examples (#21075)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
This commit is contained in:
@@ -632,7 +632,8 @@ when
|
|||||||
Item music_Music_Album received update
|
Item music_Music_Album received update
|
||||||
then
|
then
|
||||||
if (music_Music_Album.state.toString() != "") {
|
if (music_Music_Album.state.toString() != "") {
|
||||||
sendCommand(nuvo_system_sendcmd, source + "DISPLINES0,0,0,\"\",\"" + music_Music_Album.state.toString + "\",\"" + artistName + "\",\"" + trackName + "\"")
|
albumName = music_Music_Album.state.toString
|
||||||
|
sendCommand(nuvo_system_sendcmd, source + "DISPLINES0,0,0,\"\",\"" + albumName + "\",\"" + artistName + "\",\"" + trackName + "\"")
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -641,7 +642,8 @@ when
|
|||||||
Item music_Music_Artist received update
|
Item music_Music_Artist received update
|
||||||
then
|
then
|
||||||
if (music_Music_Artist.state.toString() != "") {
|
if (music_Music_Artist.state.toString() != "") {
|
||||||
sendCommand(nuvo_system_sendcmd, source + "DISPLINES0,0,0,\"\",\"" + music_Music_Artist.state.toString + "\",\"" + artistName + "\",\"" + trackName + "\"")
|
artistName = music_Music_Artist.state.toString
|
||||||
|
sendCommand(nuvo_system_sendcmd, source + "DISPLINES0,0,0,\"\",\"" + albumName + "\",\"" + artistName + "\",\"" + trackName + "\"")
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -650,7 +652,8 @@ when
|
|||||||
Item music_Music_Track received update
|
Item music_Music_Track received update
|
||||||
then
|
then
|
||||||
if (music_Music_Track.state.toString() != "") {
|
if (music_Music_Track.state.toString() != "") {
|
||||||
sendCommand(nuvo_system_sendcmd, source + "DISPLINES0,0,0,\"\",\"" + music_Music_Track.state.toString + "\",\"" + artistName + "\",\"" + trackName + "\"")
|
trackName = music_Music_Track.state.toString
|
||||||
|
sendCommand(nuvo_system_sendcmd, source + "DISPLINES0,0,0,\"\",\"" + albumName + "\",\"" + artistName + "\",\"" + trackName + "\"")
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user