seamapi / public-tracker

0 stars 0 forks source link

[Igloo] Igloo throws an error if creating an access code with a start_time < current_time #69

Closed sybohy closed 7 months ago

sybohy commented 7 months ago

Description

Igloo throws an error when creating an access code with a start time < current time. This is a constraint enforced by Igloo and is similar to this issue we fixed on Kwikset

Steps to Reproduce

  1. Connect a real Igloo device
  2. Create an access code with a starts_at timestamp sometime in the past
  3. Seam API raises an error: Invalid access code time range, start time must be a value greater than the current time

Expected behavior: Seam API accepts the code with starts_at timestamp in the past and automatically adjusts it to present time to avoid encountering an error.

Actual behavior: Error is raised

Additional Information

Original Seam internal Slack thread

panzerchris commented 7 months ago

This should be resolved for online access codes which is what we currently support for IglooHome through the console.