X-300 Script Simulator unofficial

Learn X-300 scripting

Each lesson adds one idea. Lessons 1–4 build one script up step by step; lessons 5–7 start again from the plain thermostat so each new idea stands alone, and the case study shows them all combined. Every lesson's script is a real file that this site's test suite runs, so what a page says the script does is what the simulator does.

  1. A time schedule: the loop every script lives in, time, and turning a relay on and off.
  2. A thermostat: reading a sensor, a setpoint and a swing, and why a thermostat needs two thresholds.
  3. Day and night: choosing a setpoint by time of day.
  4. Weekdays: working out the day of the week from date.
  5. Timers: keeping the heat off for at least five minutes once it goes off.
  6. Data from outside: letting another device push the outside temperature in, and not trusting it once it goes quiet.
  7. Seasons: the day of the year from date, and an override switch on the control page.

Before you start

The reference lists every statement and variable in one place, and Rules & checklist collects the limits.