Beispiel #1
0
        device = getDeviceFromName("Bridge_AZMichael", devices)
        arlo.Disarm(device)
        device = getDeviceFromName("Bridge_AZSabine", devices)
        arlo.Disarm(device)

    elif command == 'aktiviert':
        device = getDeviceFromName("Home", devices)
        arlo.Arm(device)
        device = getDeviceFromName("Bridge_AZMichael", devices)
        arlo.Arm(device)
        device = getDeviceFromName("Bridge_AZSabine", devices)
        arlo.Arm(device)

    elif command == 'garten':
        device = getDeviceFromName("Home", devices)
        arlo.CustomMode(device, "mode5")  # Garten_Alle
        device = getDeviceFromName("Bridge_AZMichael", devices)
        arlo.CustomMode(device, "mode4")  # Garten
        device = getDeviceFromName("Bridge_AZSabine", devices)
        arlo.Arm(device)

    elif command == 'garten_hinten':
        device = getDeviceFromName("Home", devices)
        arlo.CustomMode(device, "mode4")  # Garten_2
        device = getDeviceFromName("Bridge_AZMichael", devices)
        arlo.Disarm(device)
        device = getDeviceFromName("Bridge_AZSabine", devices)
        arlo.Arm(device)

except Exception as e:
    print(e)
Beispiel #2
0
        device = getDeviceFromName("Bridge_AZMichael", devices)
        arlo.Disarm(device)
        device = getDeviceFromName("Bridge_AZSabine", devices)
        arlo.Disarm(device)

    elif command == 'set-mode' and mode == 'aktiviert':
        device = getDeviceFromName("Home", devices)
        arlo.Arm(device)
        device = getDeviceFromName("Bridge_AZMichael", devices)
        arlo.Arm(device)
        device = getDeviceFromName("Bridge_AZSabine", devices)
        arlo.Arm(device)

    elif command == 'set-mode' and mode == 'aktiviert_tag':
        device = getDeviceFromName("Home", devices)
        arlo.CustomMode(device, "mode6")  # Aktiviert_Tag
        device = getDeviceFromName("Bridge_AZMichael", devices)
        arlo.CustomMode(device, "mode8")  # Aktiviert_Tag
        device = getDeviceFromName("Bridge_AZSabine", devices)
        arlo.CustomMode(device, "mode2")  # Aktiviert_Tag

    elif command == 'set-mode' and mode == 'aktiviert_ohne_terrasse':
        device = getDeviceFromName("Home", devices)
        arlo.CustomMode(device, "mode5")  # Garten_Alle
        device = getDeviceFromName("Bridge_AZMichael", devices)
        arlo.CustomMode(device, "mode6")  # OhneTerrasse
        device = getDeviceFromName("Bridge_AZSabine", devices)
        arlo.Arm(device)

    elif command == 'set-mode' and mode == 'garten':
        device = getDeviceFromName("Home", devices)