FWIW - I never have the schedule directly control a device. I find it is too confusing and hard to track down what is going on.
After adding a schedule item, I just pick some device at random and let it get created. I then delete all of the children of the new item. Then, I right click and select New|PropertyChange. Then I select the SceneState Play property from the dialog that pops up and hit OK. This will create a child under the schedule item called "OnChangePlay".
This lets me put a script in it. I put a script for it this like this. It just detects that the schedule item is starting and calls another script. For example, this is what I put in the schedule to run my "OnSunset" script.
if sysevent.newVal = true then
Then, in my scripts I have this sub defined.
modules.Default.Variables.Nighttime = true
if home.WiringCloset.DisableAutoLightToday.PowerState = false then
home.Entry.Chandelier.Brightness = .60
home.Entry.Hallway.PowerState = true
home.Living.Art.PowerState = true
home.Living.TableLamp.Brightness = .60
home.Living.FloorLamp.Brightness = .60
home.Jim_Office.DeskLamp.Brightness = .60