I have used this for a long while now, easy setup etc.
withe this rule
rule "Desktop OFF"
when
Item Desktop changed from ON to OFF
then
sendHttpGetRequest("http://192.168.*.*:5001")
end
Just thought I would add this to this thread as it may be useful to some.