/// <summary> /// send on/off command to a room/device /// </summary> /// <param name="Room">room number </param> /// <param name="state">state 1 = on 0 = off</param> /// <param name="message">message to display on wifilink</param> /// <returns>String "OK" otherwise error message</returns> public static string HeatOnOff(int room, State state, string message = "") { string text = nextind + ",!R" + room + @"DhF" + StateStrings.GetStateString(state) + @"|" + message; return(sendRaw(text).Replace(ind + ",", "")); }
/// <summary> /// Switch on/off the hot water /// </summary> /// <param name="state">0=off 1=on</param> /// <param name="message">mesage to display on wifilink</param> /// <returns></returns> public static string HotWaterOnOff(State state, string message = "") { string text = nextind + ",!R16D2F" + StateStrings.GetStateString(state) + @"|" + message; return(sendRaw(text).Replace(ind + ",", "")); }
/// <summary> /// send on/off command to a room/device /// </summary> /// <param name="Room">room number </param> /// <param name="Device">device number</param> /// <param name="state">state (0 or 1)</param> /// <returns>String "OK" otherwise error message</returns> public static string DeviceOnOff(int room, int device, State state) { string text = nextind + ",!R" + room + @"D" + device + @"F" + StateStrings.GetStateString(state) + @"|"; return(sendRaw(text).Replace(ind + ",", "")); }