Skip to content

Implement a current actor state check

Acceptance Criteria

  • If a actor state check is configured, check the current state first before sending actions to the actor
  • If the configured state is off and the current actor state is on, we do nothing
  • If the configured state is off and the current actor state is off, we go further
  • The actor state check will be performed after a motion was detected and the light check was performed (when configured)
  • The timeout for a failed check should be configurable

Tasks

  • Add a new configuration parameter (enum: UNKNOWN, ON, OFF): desired_actor_state
  • Add a new configuration parameter (int): desired_actor_state_missmatch_timeout
  • Implement the logic into the avm-motion-triggerd business logic loop