The eventual goal is to build a model of a house in some sort of DOM
and be able to interact with it like a webpage using standard CSS and
JS libraries.
Imagine the following with jQuery:
// When motion is detected in the living room, turn all lights to 75%
intensity
$(".living-room").delegate(".motion-sensor", "activate", function(){
$(".living-room .lights").css("intensity", 0.75);
});
Any interest? :)