Implement CommandClass Events


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()


pobel35 wrote May 18, 2011 at 6: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 4: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 8:05 PM

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

wrote Feb 14, 2013 at 1:26 AM