To support higher level of intelligence in real-time applications, the real-time active database (RTADB) should have powerful reasoning capability to solve complicated problems, especially the problems with temporal properties. This consequently requires the event-condition-action (ECA) rules in RTADB to have strong expressiveness for complicated temporal information in the system. However, traditional ECA rules cannot meet this requirement since they only describe basic temporal elements such as quantitative temporal constraints. To solve this problem, we present visual ECA rules with a set of novel temporal events to describe complicated quantitative temporal information. Furthermore, smart home applications are used to validate the proposed rule.