code: def set_zones_device_assignment(self, internal_devices, external_devices) -> dict:
          
          internal = [x.id for x in internal_devices]
          external = [x.id for x in external_devices]
          data = {"zonesDeviceAssignment": {"INTERNAL": internal, "EXTERNAL": external}}
          return self._restCall(
              "home/security/setZonesDeviceAssignment", body=json.dumps(data)
          )
docs: sets the devices for the security zones
          Args:
              internal_devices(List[Device]): the devices which should be used for the internal zone
              external_devices(List[Device]):  the devices which should be used for the external(hull) zone
          
          Returns:
              the result of _restCall