import sys sys.path.append("..") from dialin.dg.dialysate_generator import DG from dialin.dg.uv_reactors import ReactorsStates from time import sleep dg = DG(log_level='DEBUG') dg.cmd_log_in_to_dg() sleep(1) dg.uv_reactors.cmd_start_stop_inlet_uv_reactor(state=ReactorsStates.UV_REACTOR_STATE_ON.name) while True: sleep(1) print(dg.uv_reactors.inlet_uv_reactor_state, dg.uv_reactors.inlet_uv_reactor_health)