Hi there,
i’m new on OH and on this forum so I hope i’m not making any mistake creating this post!
I use OH3 running into a Docker Container inside a Synology Nas.
I’m trying to use keypad widget to create a text var, then i check if it matches the Alarm code;
If so, the rule should send a http request to the local server that switch Home Mode.
I made a rule that switch on and off the Home mode in my Synology Surveillance Station via webhook provided by Surveillance station itself.
I know the “if” part is working fine except for the “sendHttpGetRequest”
var AlarmCode, InsAlarmCode;
AlarmCode = ‘XXXX’;
InsAlarmCode = itemRegistry.getItem(‘CodiceInserito’).getState();
if (InsAlarmCode == AlarmCode) {
sendHttpGetRequest(“GET”,“http://192.168.1.75:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Webhook&method=“Incoming”&version=1&token=XXXX”)
}
If i simply open the URL from a web browser it works fine but I would like to achieve the same result using an OH3 rule.
Thanks in advance for your help!!