openhab-scripters / openhab-helper-libraries

Scripts and modules for use with openHAB
Eclipse Public License 1.0
88 stars 69 forks source link

Add thing status triggers #209

Closed 5iver closed 4 years ago

5iver commented 4 years ago
  1. added ThingStatusUpdateTrigger and ThingStatusChangeTrigger to core.triggers and core.triggers.when decorator (https://github.com/openhab/openhab-core/pull/911)
  2. removed event_type and trigger_name parameters from core.triggers.when
  3. Removed reference to the simple when decorator formats. They should work now, but let's not promote them so that they can be removed in the future.
  4. DirectoryEventTrigger, ItemAddedTrigger, ItemRemovedTrigger and ItemUpdatedTrigger have not worked for a long time and I'm close, but more work needs to be done to OSGIEventTrigger for them to work properly. This PR adds them to the core.triggers.when decorator.
  5. Made some fixes to core.utils.validate_uid and changed core.triggers to use it in all of the trigger classes for generating the trigger name. Previously, it was possible that the trigger names were not unique, but that should no longer be possible.

Fixes #180, #187, #189

Signed-off-by: Scott Rushworth openhab@5iver.com