I am trying to create a simple away button on a KPL. The button is set to non-toggle mode with LED off. When you press the button I want it to check if it's daytime or night time and set the appropriate scene. Problem is, whenever it's sunset, it always sets the Away Night scene. 
  
If 
  
        Control 'L-KPL C - Goodbye' is switched Off 
  
    And From    Sunrise 
  
        To      Sunset  (same day) 
  
  
  
Then 
  
        Set Scene 'Away Day' On 
  
  
  
Else 
  
        Set Scene 'Away Night' On