This project is read-only.
1
Vote

Implement CommandClass Events

description

Implement events from command classes.
 
This includes level changes in sensors, but more important for switch'es, alarms and motion detectors.
 
Either a generic overrideable solution in the GenericCommandClass, possibly called CommandClassEventHappened where the eventargs are unique to the CommandClass, or each command class that needs events implement them specifically.
 
Such as CommandClass Alarm:
 
event AlarmTriggered()

comments

pobel35 wrote May 18, 2011 at 7:29 PM

I have tried creating a sample event in SwitchToggleBinary specific to the command class. I feel this is better than having an event on the Generic Command Class, since there are command classes that does not need events.

HornerG wrote Nov 18, 2011 at 5:25 PM

It may be an option to create an abstract class like GenericCommandClass<TCommandClassEvent> : GenericCommandClass; where the TCommandClassEvent is a class which contains the events for the given implementation

pobel wrote Nov 21, 2011 at 9:05 PM

That might not be a bad idea. I cannot see any immediate problems?

wrote Feb 14, 2013 at 2:26 AM