Try this but put it in an external file, not an embedded file.
It will give you the 30 Minutes fade in required and you are right 540 seconds is the max but this script will get round that.
30 Nov 2018, 21:18:00
Action Group new action group
Sent Hue Lights "Conservatory Light" off at ramp rate 0.0 sec.
Sent Hue Lights "Conservatory Light" on to 17 at ramp rate 540.0 sec.
30 Nov 2018, 21:18:36
Updated "Conservatory Light" on to 2
30 Nov 2018, 21:19:39
Updated "Conservatory Light" on to 3
30 Nov 2018, 21:20:00
Updated "Conservatory Light" on to 4
30 Nov 2018, 21:20:53
Updated "Conservatory Light" on to 5
30 Nov 2018, 21:21:35
Updated "Conservatory Light" on to 7
30 Nov 2018, 21:22:00
Updated "Conservatory Light" on to 8
30 Nov 2018, 21:22:59
Updated "Conservatory Light" on to 9
Cut out the next 20 minutes of log!!
30 Nov 2018, 21:41:00
Updated "Conservatory Light" on to 43
30 Nov 2018, 21:41:54
Updated "Conservatory Light" on to 44
30 Nov 2018, 21:42:26
Updated "Conservatory Light" on to 45
30 Nov 2018, 21:43:29
Updated "Conservatory Light" on to 47
30 Nov 2018, 21:44:00
Updated "Conservatory Light" on to 48
30 Nov 2018, 21:44:18
Updated "Conservatory Light" on to 49
30 Nov 2018, 21:45:37
Updated "Conservatory Light" on to 50
- Code: Select all
import time
plug = indigo.server.getPlugin("com.nathansheldon.indigoplugin.HueLights")
rate = 540
if plug.isEnabled():
plug.executeAction("setBrightness", indigo.devices["Conservatory Light"].id, props={"brightness":00, "rate":0})
time.sleep(2)
plug.executeAction("setBrightness", indigo.devices["Conservatory Light"].id, props={"brightness":17, "rate":rate})
time.sleep(rate)
plug.executeAction("setBrightness", indigo.devices["Conservatory Light"].id, props={"brightness":34, "rate":rate})
time.sleep(rate)
plug.executeAction("setBrightness", indigo.devices["Conservatory Light"].id, props={"brightness":50, "rate":rate})