Video shows the UI in action. Keeping with the idea of automatically searching the devices, I started with an empty database. Once the software is started (around 30 seconds or so, feel free to skip there), the 1-Wire bus is scanned for devices. After this, I push the rocker switch and it's added automatically (both channels). After that, comes the magnetic contact.
After the devices are found, the rest shows the basic functionalities. Rocker and magnetic switches are handled as inputs, so no controls are given to them. The video shows me toggling the buttons via the switches supplied with the Sensor Kit. The devices on the 1-Wire bus are outputs, so they can be controlled. To notify the user that the command has been sent to the server, the button is set active. Once the server responds, the button returns to normal state.
All communication between the Pi and browser are done as event based, no data is transfered if there's nothing to do.
Now I'm off to do temperature sensors. Final (one or two) posts will follow tomorrow.