Hi,
in OH1 I was used to define a play item
Switch sq_bad_play "Play" { squeeze="bad:play" }
and started a player with a rule like this (maybe when the presence detector recognises someone)
sendCommand(sq_bad_play, ON)
I miss this play action in OH2. As far as I understand the control action I get a player in my sitemap, but that’s not what I’m looking for. How can I start a squeezebox player from a rule? Could you please provide a example? Thanks!
This doesn’t work:
Switch sq_bad_play "Play" { channel="squeezebox:squeezeboxplayer:bebaee7f:00042017448d:play" }
Volume and power control works fine.
Kind regards
Michael
Edit:
Further tests doesn’t work, too.
Switch sq_bad_play "Play" { channel="squeezebox:squeezeboxplayer:bebaee7f:00042017448d:control:play" }
or this
Switch sq_bad_play "Play" { channel="squeezebox:squeezeboxplayer:bebaee7f:00042017448d:control" }
with a call like
sq_bad_play.sendCommand("play")
Hope, I’ll find some advice here.