#NEWLINE# @ track_time_change ( hour = 7 , minute = 0 , second = 0 ) #NEWLINE# def wake_up( hass , now ) : #NEWLINE# #INDENT# 'Turn light on in the morning.\n\n    Turn the light on at 7 AM if there are people home and it is not already\n    on.\n    ' #NEWLINE# if ( not TARGET_ID ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( device_tracker . is_on ( hass ) and ( not core . is_on ( hass , TARGET_ID ) ) ) : #NEWLINE# #INDENT# _LOGGER . info ( 'People home at 7AM, turning it on' ) #NEWLINE# core . turn_on ( now , TARGET_ID )