Hello. How can I send arguments with spaces?
my rule
val send_sms = "/usr/bin/python3 /home/orange/scripts/send_sms.py"
rule "дверь прихожая"
when Member of gdoors changed to OPEN
then
var mes = "Открыта дверь."
var sms = "Открыта дверь."
if (triggeringItem.getGroupNames.contains("ghallway")){
if(scenes.state=='away' || scenes.state=='night_safe'){
ghallway_icon.sendCommand(ON)
alarm.sendCommand(ON)
executeCommandLine(send_sms+' "' + sms+ ' прихожая"')
if(telegram.state==ON){
sendTelegram("bot1", mes+" * прихожая* ")
}
if(push.state==ON){
sendNotification("***@***",mes,"uhallway-on","alarm")
}
}
}
end
in log I have
executed commandLine '/usr/bin/python3 /home/orange/scripts/send_sms.py "Обнаружено движение. прихожая"'
but in sms I have "Обнаружено