If a gateway stops sending for 10 or more seconds assume the light switch has been turned off. When it comes back detect this and emit a new 'bulbreconnect' event.