Hi-
I would like a separate status timestamp for when the last time a light's state was changed, keeping separate through another variable if the state change came from Indigo or not. I'd also like this information available within the Conditions for Triggers and Schedules. I think this would open up a lot of possibilities to include some more intricate behavior in our home automation actions.
Trigger: When Motion Sensor Turns off
Condition (any of the following):
- the lights in the room were last turned on manually and they were turned on more than 10 minutes ago
- the lights in the room were last turned on via indigo
Action: Turn off the lights in the room
Schedule: Every 10 minutes
Condition (All of the following):
- Lights are on
- Motion Sensor is off
- Last state change was more than 10 minutes ago
Action: Turn off the lights in the room
The above also embeds the request to be able to do date calculations within the conditions, which has also been a long time request of mine. Another example of this is when you have a timestamp in a indigo variable, and I want to calculate the difference in time between the timestamp and the current time. This is possible in a python script, but it would be great if it were possible in the Conditions tab natively.
Mike