The key to successfully doing complex automation tasks like this is to fully/thoroughly describe what you want to happen. So you have to think through all of your scenarios and describe them. Your description is missing some key details:
colinpartridge wrote:The action of this trigger should be to turn on the light at 15% brightness for 3mins. If I ignore the 15% brightness then its very easy, just set the action to turn on the light and then auto off after 3mins.
But the light is already on (at 15%) - so what exactly do you want to happen if you "ignore" it? And when you say "ignore" what exactly does that mean?
colinpartridge wrote:But what if I want the light to always come on at 15% brightness no matter what its level was previously?
Under what conditions would you want the light to behave this way (differently than above)? You have to be able to clearly define the conditions so that you can formulate a solution.
colinpartridge wrote:Also Ideally I would like to control the time from eg 23.00 to 30 mins after sunrise but I cant get my head around the logic to do this, probably because I'm new to this.
Just add the "If dark" condition to your conditions and expand the time range to ensure that the end of the range is during the day:
- Code: Select all
"All" "of the following rules are true"
"If current time" "is between" "23:01:00" "and" "10:00:00"
"If dark"
So, basically, what this condition says is that in order for the actions to fire the time must be between 11:01pm and 10:00am AND it must be dark. We know that it will always be dark at 11:01pm, but at, say, 7:00am it may or may not be dark so we add the "If dark" condition that Indigo automatically sets based on your location. If it's dark and the trigger fires, it will run the actions - but if it's already daylight it won't.
If you're new to Indigo and Home Automation, then you might want to tackle some more basic scenarios first. There is a curve to learning how home automation logic works and what functionality Indigo provides to accomplish that logic. Your scenario is a fairly complex scenario and there will undoubtedly be multiple ways to accomplish it (and I'm positive it can be done, whatever it may be). Trying some easier scenarios first might help you become more confident before tackling a complex problem. Too often we see people get frustrated because they choose to start with complex tasks first - then they become disenchanted with Indigo and home automation without ever actually getting over the initial learning curve.