Done lots of reading and still can’t come right…
I am using a 2 Way LightSwitch, so it is NB for me to determine status of the input of the IO device.
I use the following URL to determine item state: http://IP:port/sinput0.html
This would give ON or OFF inside a webpage.
Then I can use http://IP:Port/index.html?O1=1
Which would turn the device on http://IP:Port/index.html?O1=0
Would turn the device off.
How do I query the state of the item upon startup?
How do I make a decision to turn ON or OFF based on the input status of the IO?
Thanking you very much for your assistance!
I have tried and received no success. I am not a programmer but trying my best to pick things up…
I am able to toggle the output but am not able to read the input state and make a decision based on that…