def shade_screen_in_thread(): global shade_screen_in_time, shade_screen_in_state roof_run_and_stop(shade_screen_in_time, shade_screen_in_state)
def thermal_screen_thread(): global thermal_time, thermal_screen_state roof_run_and_stop(thermal_time, thermal_screen_state)
def roof_vent_thread(): global roof_open_time, roof_state roof_run_and_stop(roof_open_time, roof_state)