The following attempts to explain how to send temperature information from a
CAi WebControl board to a
Universal Devices ISY 994i home automation system.
1. Ensure you have these three main ingredients:
........
START
SET RAM1 0
SETLED 0
LOOP:
SET RAM2 T1
ADD RAM2 5 RAM2
DIV RAM2 10 RAM2
TSTEQ RAM1 RAM2
GOTO LOOP
SETLED 1
SET RAM1 RAM2
WEBSET URL1 RAM1
DELAY 1000
SETLED 0
GOTO LOOP
END
b. Click the Send button and stand back in case you did something wrong because one bad character can cause the WebControl to explode. OK, that last part was a joke. Worst case, it simply won’t work.
c. This code constantly polls the temperature sensor looking for changes. Whenever the temperature changes by 1 degree or more, it sends the new temperature to the ISY device and flashes the WebControl’s green LED.
7. Verify that it’s all working
a. Go back to your ISY’s admin console and navigate back to the Programs->Variables->State screen where you created the MyTemp (or whatever you called it) variable to see if it has changed to something resembling a reasonable temperature.
b. Again, feel free to hyperventilate a bit by “fogging” the sensor with your hot breath and/or blowing on it to see if you can get the temperature to move up and down.
8. If it works, think nice thoughts about me. If it doesn’t, please let us know where you think it’s going wrong.
Please note that your WebControl talks to your ISY device via your local area network (LAN) so both must remain connected to your LAN for this to work.
If anything is going awry, it's probably because there is an error in the Notify Setup data described in section 5.a. It must be entered exactly right and, because everyone's setup is potentially unique, what's right for you won't be right for most other people. Any mistake here will cause the ISY to ignore you.
Please reply with any additions or corrections you might have and I'll do my best to keep this initial post up to date.
Good luck,
-Randy