Skip to content

List of possible Event Listeners #1555

Closed Answered by lauckhart
smezger123 asked this question in Q&A
Discussion options

You must be logged in to vote

The full set of events for a behavior is:

  • attr$Changing and attr$Changed for for enabled attribute in the corresponding cluster definition
  • event for each enabled event in the cluster
  • additional events defined in the server implementation

We have plans to generate proper documentation. Unfortunately there aren't tools that will do it automatically so it will take a bit of work.

Regarding "onOff$Always", as you note the attribute events only trigger when attributes mutate. If you want to detect "on" or "off" commands regardless of current state then you probably want to extend OnOffServer, then override on and/or off to add your custom logic.

If you are looking for a generic way to do thi…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Apollon77
Comment options

Answer selected by smezger123
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants