function WinLIRC_ReceiveData_Variable($VariableId, $Value) { if ($Value == "") { return; } $Button = $Value; $InstanceId = IPS_GetParent($VariableId); $ChildrenIds = IPS_GetChildrenIDs($InstanceId); foreach ($ChildrenIds as $Id) { if ($Id <> $VariableId) { $RemoteControl = GetValue($Id); } } IPSLogger_Com(__file__, "Received Data from WinLIRC-Variable, Control='$RemoteControl', Command='$Button'"); $MessageType = get_MessageTypeByControl($RemoteControl); WinLIRC_ReceiveData($RemoteControl, $Button, $MessageType); }
function WinLIRC_ReceiveData_Webfront($RemoteControl, $Button) { IPSLogger_Com(__file__, "Received Data from WinLIRC-Webfront, Control='$RemoteControl', Command='$Button'"); WinLIRC_ReceiveData($RemoteControl, $Button, c_MessageType_Action); }