--- title: Limit a Link’nX scenario to a daily time range description: Allow a Link’nX scenario only between two times, for example 8 am to 6 pm or 10 pm to 6 am across midnight, with the Time range condition. canonical: https://wiki.can-nx.com/en/guides/link-condition-time/ language: en product: Link’nX audience: - administrateur - installateur context: "Link’nX web: Time range condition, selected in the scenario’s Time condition field" --- # Limit a Link’nX scenario to a daily time range Context: Link’nX web: Time range condition, selected in the scenario’s Time condition field The **Time range** condition in Link’nX checks whether the installation’s time falls within a range, for example from 08:00 to 18:00, or from 22:00 to 06:00 across midnight. It is evaluated when the scenario receives a trigger. Intended for administrators and installers. To cause an event at a given time, use the [Timed trigger](https://wiki.can-nx.com/en/guides/link-trigger-time/) instead, then add the necessary conditions to the scenario. ## Create the time range 1. In **Conditions**, click **Add**, then choose **Time range** in **Select a condition type**. 2. Fill in **Name**, for example “Reception hours” as a fictitious example. 3. Click in **From - Start time**, choose the hours, then the minutes in 24-hour format and confirm with **OK**. 4. Do the same in **To - End time**. **CANCEL** closes a dial without confirming its choice. Review both times in the form. 5. Click the floppy disk at the bottom right, then follow the [save confirmations](https://wiki.can-nx.com/en/guides/link-condition-edit/). 6. In the scenario, choose this condition in **Time condition**, then save the scenario. ## Understand the range bounds The start and end minutes are part of the range. | Start | End | Range covered (fictitious examples) | | --- | --- | --- | | **08:00** | **18:00** | During the day, from 08:00 to 18:00 | | **22:00** | **06:00** | From the evening to the next morning, across midnight | | Identical time | Identical time | The condition does not limit the scenario to that single minute: use different bounds to define a limited range | The condition does not automatically start the scenario at the beginning of the range and does not, on its own, stop actions already requested at its end. [Delays and interruptions](https://wiki.can-nx.com/en/guides/link-scenario-sequence/) are configured separately. ## Check the result Reopen the condition and review both saved times. After the scenario has been triggered, check the time of the event in [the history](https://wiki.can-nx.com/en/guides/link-history/) and compare it with the range. ## Troubleshooting - **Issue with field 'Start time' or 'End time'. It requires a value.**: reopen both dials and confirm each time. - The behavior remains unexpected: check the saved range, any midnight crossing, the condition chosen in the scenario and the time of the event in the history. - A time offset is observed: do not change several ranges to compensate for an offset that has not been established. For a time zone difference or an effect that remains unexplained, contact support@can-nx.com with the date, the configured times, the expected time and the checks already made.