forked from rospogrigio/localtuya
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add an events to ha Fire an events in HA when something happen to the device * typo event name * Adjust: moves event handler to TuyaDevice instance Calling the event in entity instance will trigger the same event as many entitles we have * Optimize events to trigger correctly. Check for `old_states` because if it doesn't exists that mean the device is Initializing we can use this when devices initialized if we want, * device triggered event will fire even if states change. * fix device_triggered event * Add dp trigger event * store dispatched dp to trigger an event. * change the returns of returns of dp_triggered * check if dps in payload before add [safety] * Update README.md * add templates guide to readme * check interface before detect dispatched dps
- Loading branch information
Showing
3 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters