From e3bb49d738cc060a4e01c47bcb5722aaaef2aaa6 Mon Sep 17 00:00:00 2001 From: Thomas Juerges <4-jurges@users.noreply.git.astron.nl> Date: Fri, 6 Nov 2020 18:59:18 +0100 Subject: [PATCH] Add state functions --- RCUSCC/RCUSCC/RCUSCC.py | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/RCUSCC/RCUSCC/RCUSCC.py b/RCUSCC/RCUSCC/RCUSCC.py index b5982e132..54c0d0226 100644 --- a/RCUSCC/RCUSCC/RCUSCC.py +++ b/RCUSCC/RCUSCC/RCUSCC.py @@ -778,6 +778,42 @@ class RCUSCC(Device): # Commands # -------- + @command( + ) + @DebugIt() + def On(self): + # PROTECTED REGION ID(RCUSCC.On) ENABLED START # + """ + + :return:None + """ + self.set_state(DevState.ON) + # PROTECTED REGION END # // RCUSCC..On + + @command( + ) + @DebugIt() + def Off(self): + # PROTECTED REGION ID(RCUSCC.Off) ENABLED START # + """ + + :return:None + """ + self.set_state(DevState.OFF) + # PROTECTED REGION END # // RCUSCC.Off + + @command( + ) + @DebugIt() + def Init(self): + # PROTECTED REGION ID(RCUSCC.Init) ENABLED START # + """ + + :return:None + """ + self.set_state(DevState.INIT) + # PROTECTED REGION END # // RCUSCC.Init + # ---------- # Run server # ---------- -- GitLab