Ejemplo n.º 1
0
        private IOBrokerJSONGet getResult(string iobrokertag)
        {
            IOBrokerJSONGet ioJson = new IOBrokerJSONGet();

            IOBrokerClusterConnector wc = new IOBrokerClusterConnector();

            ioJson = wc.GetIOBrokerValue("zigbee.0.00158d00045c0c7c.temperature");



            return(ioJson);
        }
Ejemplo n.º 2
0
        public void TestGetValue()
        {
            try
            {
                IOBrokerJSONGet          ioJson = new IOBrokerJSONGet();
                IOBrokerClusterConnector wc     = new IOBrokerClusterConnector();
                ioJson = wc.GetIOBrokerValue("zwave2.0.Node_003.Basic.currentValue");
            }

            catch (Exception ex)
            {
                Console.WriteLine("Fehler beim lesen von IOBroker", ex);
                //throw;
            }
        }
Ejemplo n.º 3
0
        public void TestSetClusterValue()
        {
            try
            {
                IOBrokerJSONSet          ioJson = new IOBrokerJSONSet();
                IOBrokerClusterConnector wc     = new IOBrokerClusterConnector();
                ioJson = wc.SetIOBrokerValue("shelly.0.SHSW-25#D8BFC01A2B2A#1.Relay0.Switch", false);
            }

            catch (Exception ex)
            {
                Console.WriteLine("Fehler beim setzen von IOBroker", ex);
                //throw;
            }
        }
Ejemplo n.º 4
0
        public void TestSetValue()
        {
            try
            {
                IOBrokerJSONSet          ioJson = new IOBrokerJSONSet();
                IOBrokerClusterConnector wc     = new IOBrokerClusterConnector();
                ioJson = wc.SetIOBrokerValue("zwave2.0.Node_031.Binary_Switch.targetValue", true);
            }

            catch (Exception ex)
            {
                Console.WriteLine("Fehler beim lesen von IOBroker", ex);
                //throw;
            }
        }