0
Beantwoord
GC 100-12 Sensor ?
Yeliz Tarhan 8 jaar geleden
in Products / AV & Custom Systems
•
bijgewerkt door anonymous 8 jaar geleden •
3
Hello,
I have a project. GC-10012 used. 5.Sensor
I did button type trigger. Value 0-1
Programming
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.:(
Customer support service by UserEcho
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