Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Set sensor occupancy upon alarm #36

Merged
merged 1 commit into from
Aug 27, 2024

Commits on Aug 27, 2024

  1. feat: Set sensor occupancy upon alarm

    * Upon receiving alarm from the device (either via device notifications,
      or simulated from history) invoke the sensor activity callback to set
      the sensor occupancy - it helps when device notifications on
      triggerring sensor's activity aren't receveid by a reason.
      The occupancy is set only if sensor is known (i.e. alert references
      the sensor could be found in the list of those retrieved from the
      device in a cached manner), but only if the state isn't already set
      (e.g. by another callback).
    
      Please note the change might result in multiple callback invocations
      for same event - the handlers should be idempotent
    hostcc committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    eac2c85 View commit details
    Browse the repository at this point in the history