0
Answered

GC 100-12 Sensor ?

Yeliz Tarhan 8 years ago in Products / AV & Custom Systems updated by anonymous 8 years ago 3

Hello,


I have a project. GC-10012 used. 5.Sensor


Image 13127




I did button type trigger. Value 0-1

Image 13128



ProgrammingImage 13132



Did I do the right???

Thanks.


Device 'Digiturk satellite' Power Toggle. Currently the program runs, open, says open . Close does not come off with the control information.:(


Answered

Please try to setup ensor like on this image:



Make sure that the sensor seted up on GC side as "Sensor with auto-notify"

Some usefull script for your task for devices that have only Power Toggle command on IR remote controller

=================================================================

var CheckPowerStatus_SAT = new CheckPowerStatus("GC-100-12");

function CheckPowerStatus(Dev)
{
var device = IR.GetDevice(Dev);
IR.AddListener(IR.EVENT_ITEM_PRESS,IR.GetItem("Page").GetItem("Power on button"),function()
{
var PowerStatus = IR.GetVariable("Drivers."+Dev+".Sensor Notify 6");
if(PowerStatus == 0)
{
device.Set("SAT_Power toggle", "");
}
});

IR.AddListener(IR.EVENT_ITEM_PRESS,IR.GetItem("Page").GetItem("Power off button"),function()
{
var PowerStatus = IR.GetVariable("Drivers."+Dev+".Sensor Notify 6");
if(PowerStatus == 1)
{
device.Set("SAT_Power toggle", "");
}
});
}

In this case you have cirtain control method