public async Task SetStateLAN(string state)
        {
            dynamic data = new ExpandoObject();

            ExpandoHelpers.AddProperty(data, channelName, state);

            await ZeroConfUpdateDevice(data);
        }
Example #2
0
        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);
        }
Example #4
0
        public void SetChannelsLAN(OutletState[] states)
        {
            dynamic data = new ExpandoObject();

            ExpandoHelpers.AddProperty(data, channelName, states);

            ZeroConfUpdateDevice(data);
        }
Example #5
0
        public void TransmitChannel(int channel)
        {
            dynamic data = new ExpandoObject();

            ExpandoHelpers.AddProperty(data, $"rfCh{channel}", 0);
            data.cmd = "transmit";

            UpdateDevice(data);
        }