public async Task SetStateLAN(string state) { dynamic data = new ExpandoObject(); ExpandoHelpers.AddProperty(data, channelName, state); await ZeroConfUpdateDevice(data); }
public void SetClose(int percent) { dynamic data = new ExpandoObject(); ExpandoHelpers.AddProperty(data, "setClose", percent); UpdateDevice(data); }
public void SetState(string state) { dynamic data = new ExpandoObject(); ExpandoHelpers.AddProperty(data, channelName, state); UpdateDevice(data); }
public void SetChannelsLAN(OutletState[] states) { dynamic data = new ExpandoObject(); ExpandoHelpers.AddProperty(data, channelName, states); ZeroConfUpdateDevice(data); }
public void TransmitChannel(int channel) { dynamic data = new ExpandoObject(); ExpandoHelpers.AddProperty(data, $"rfCh{channel}", 0); data.cmd = "transmit"; UpdateDevice(data); }