diff --git a/Audio/audio_automation_server.py b/Audio/audio_automation_server.py index 80ac23f..7b93a15 100644 --- a/Audio/audio_automation_server.py +++ b/Audio/audio_automation_server.py @@ -71,6 +71,10 @@ def checkPC(): if powerState['swhpamp'] == "ON": publ.single("cmnd/swhpamp/POWER", "off", hostname=broker, port=port, auth={'username':username,'password':password}) except Exception as e: print(e) + try: + if powerState['swmicamp'] == "ON": + publ.single("cmnd/swmicamp/POWER", "off", hostname=broker, port=port, auth={'username':username,'password':password}) + except Exception as e: print(e) if __name__ == "__main__": sub=threading.Thread(target=subscribe_state)