According to the description on the Sitemap wiki page there is no way to do this in the Sitemap itself. It does an OR and there is no support for AND.
However, you can do this with a rule and a third item.
New Item:
Switch KodiPlayListVisibility
Rule:
rule "Set KodiPlayListVisibility Flag"
when
Item SceneRoom updated or
Item KodiMedia updated
then
if(SceneRoom.state == 6 && KodiMedia.state == "music") KodiPlayListVisibility.sendCommand(ON)
else KodiPlayListVisibility.sendCommand(OFF)
end
Sitemap:
Switch item=KodiPlaylist visibility=[KodiPlayListVisibility=="ON"]